From 0dc862e3eda618869c80d4e559e6be3ce7fc8c85 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Sat, 11 Oct 2025 05:57:21 +0000 Subject: [PATCH] chore: update stage0 --- stage0/stdlib/Init/Data/String/Slice.c | 16 +- stage0/stdlib/Lake/Build/Common.c | 12313 ++++---- stage0/stdlib/Lake/Build/Module.c | 10298 +++---- stage0/stdlib/Lake/Build/Package.c | 2981 +- stage0/stdlib/Lake/CLI/Help.c | 4 +- stage0/stdlib/Lake/CLI/Main.c | 34604 +++++++++++++---------- stage0/stdlib/Lake/Config/Cache.c | 2402 +- stage0/stdlib/Lake/Config/Package.c | 59 + stage0/stdlib/Lake/Load/Resolve.c | 3815 +-- stage0/stdlib/Lake/Reservoir.c | 48 +- stage0/stdlib/Lake/Util/Url.c | 797 +- stage0/stdlib/Lake/Util/Version.c | 1847 +- 12 files changed, 36989 insertions(+), 32195 deletions(-) diff --git a/stage0/stdlib/Init/Data/String/Slice.c b/stage0/stdlib/Init/Data/String/Slice.c index 429048f01b..7048c40ba9 100644 --- a/stage0/stdlib/Init/Data/String/Slice.c +++ b/stage0/stdlib/Init/Data/String/Slice.c @@ -3855,16 +3855,16 @@ block_18: { if (x_15 == 0) { -x_5 = x_14; -x_6 = x_13; +x_5 = x_13; +x_6 = x_14; goto block_12; } else { uint8_t x_16; uint8_t x_17; x_16 = 32; -x_17 = lean_uint8_add(x_13, x_16); -x_5 = x_14; +x_17 = lean_uint8_add(x_14, x_16); +x_5 = x_13; x_6 = x_17; goto block_12; } @@ -3880,8 +3880,8 @@ x_24 = 65; x_25 = lean_uint8_dec_le(x_24, x_23); if (x_25 == 0) { -x_13 = x_23; -x_14 = x_19; +x_13 = x_19; +x_14 = x_23; x_15 = x_25; goto block_18; } @@ -3890,8 +3890,8 @@ else uint8_t x_26; uint8_t x_27; x_26 = 90; x_27 = lean_uint8_dec_le(x_23, x_26); -x_13 = x_23; -x_14 = x_19; +x_13 = x_19; +x_14 = x_23; x_15 = x_27; goto block_18; } diff --git a/stage0/stdlib/Lake/Build/Common.c b/stage0/stdlib/Lake/Build/Common.c index 99d79a1f54..12ad617e6a 100644 --- a/stage0/stdlib/Lake/Build/Common.c +++ b/stage0/stdlib/Lake/Build/Common.c @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_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_Lake_SavedTrace_invalid_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_inputTextFile___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -24,13 +25,16 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_mkLinkObjArgs(lean_object*, lean_object*); lean_object* l_Lake_compileO(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ofBuild(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorIdx(uint8_t); LEAN_EXPORT lean_object* l_Lake_instToOutputJsonArtifact___lam__0(lean_object*); static lean_object* l_Lake_buildO___closed__0; static lean_object* l_Lake_buildO___lam__2___closed__0; LEAN_EXPORT lean_object* l_Lake_buildSharedLib___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___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_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_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_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_EXPORT lean_object* l_Lake_inputDir___lam__2(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_Lake_getArtifacts_x3f___at___Lake_buildArtifactUnlessUpToDate_spec__1(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*); static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__5; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_spec__0(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_getArtifacts_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_object*, lean_object*); @@ -38,19 +42,22 @@ LEAN_EXPORT lean_object* l_Prod_fromJson_x3f___at___Array_fromJson_x3f___at___Op LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___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_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildLeanO_spec__3___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate(lean_object*, lean_object*, uint8_t, lean_object*, 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_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildSharedLib___lam__3___closed__0; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_writeFileHash(lean_object*, uint64_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_inputBinFile_spec__7___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instFromJsonBuildMetadata___closed__0; LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ctorIdx___boxed(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildSharedLib___lam__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_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildMetadata_toJson___closed__7; LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_inputDir_spec__4___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildMetadata_fromJson_x3f___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanExe___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*); static lean_object* l_List_foldl___at___List_toString___at___Lake_buildLeanO_spec__0_spec__0___closed__0; LEAN_EXPORT lean_object* l_Array_toJson___at___Lake_BuildMetadata_toJson_spec__4(lean_object*); @@ -69,9 +76,8 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_BuildMetadata_ofB LEAN_EXPORT lean_object* l_List_toString___at___Lake_buildLeanO_spec__0(lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at___List_toString___at___Lake_buildLeanO_spec__0_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lake_SavedTrace_isDifferentFrom(uint64_t, 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*); -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___redArg(lean_object*); LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__4(lean_object*); static lean_object* l_Lake_buildStaticLib___closed__0; @@ -85,6 +91,7 @@ LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at___Lake_inputBinFile_spec_ LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildSharedLib_spec__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*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__10; lean_object* l_Lake_compileSharedLib(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___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*); uint64_t lean_byte_array_hash(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate___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_object*, lean_object*, lean_object*); lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); @@ -94,11 +101,15 @@ static lean_object* l_Lake_buildLeanO___lam__0___closed__1; static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__10; LEAN_EXPORT lean_object* l_List_elem___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_go_spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_inputTextFile___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_inputTextFile___redArg___lam__1(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_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_serializeInputs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lake_computeTextFileHash(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_JsonObject_getJson_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_getArtifacts_x3f(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -107,18 +118,20 @@ static lean_object* l_Lake_instMonadWorkspaceJobM___closed__14; LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_resolveArtifactOutput_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_List_elem___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_go_spec__1(lean_object*, lean_object*); lean_object* l_ReaderT_instFunctorOfMonad___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__3; LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___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_object*); lean_object* lean_io_metadata(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_addPlatformTrace___redArg(lean_object*, lean_object*); lean_object* l_Lake_Hash_ofDecimal_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_addPureTrace(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_Lake_OutputStatus_ofHashCheck(uint8_t); static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__6; static uint64_t l_Lake_platformTrace___closed__1; LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_FilePath_exeExtension; lean_object* l_Lake_Cache_writeOutputsCore(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_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_buildLeanSharedLib___lam__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_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_buildLeanO_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToOutputJson_ctorIdx(lean_object*, lean_object*); @@ -129,12 +142,14 @@ lean_object* l_Lake_EStateT_instPure___redArg___lam__0(lean_object*, lean_object LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildSharedLib_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_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__6_spec__6_spec__7(size_t, size_t, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__0; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_toCtorIdx___boxed(lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__13; LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instToOutputJsonArtifact; lean_object* l_IO_FS_DirEntry_path(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanExe(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_Lake_addPlatformTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim___redArg(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*); static lean_object* l___private_Lake_Build_Common_0__Lake_mkLinkOrder___redArg___closed__2; LEAN_EXPORT lean_object* l_Lake_ResolveOutputs_ctorIdx___boxed(lean_object*, lean_object*, lean_object*); @@ -144,8 +159,7 @@ LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildLeanO_spec__3___redArg LEAN_EXPORT lean_object* l_Lake_inputDir___lam__2___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_buildAction___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ofBuild___redArg(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__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_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2___boxed(lean_object**); uint64_t lean_string_hash(lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__4___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_inputBinFile_spec__7(lean_object*, lean_object*, lean_object*); @@ -164,14 +178,15 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_BuildMetadata_ofB lean_object* l_Lake_CacheMap_insertCore(uint64_t, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Common_0__Lake_mkLinkOrder___redArg___closed__0; uint8_t lean_string_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lake_OutputStatus_ofNat(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_isArtifactCacheEnabled___at___Lake_buildArtifactUnlessUpToDate_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildFileUnlessUpToDate_x27(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lake_EquipT_instMonad___redArg(lean_object*); lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); static lean_object* l_Lake_platformTrace___closed__7; LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ofStub(uint64_t); lean_object* l_Lake_instFromJsonLogEntry_fromJson(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildStaticLib(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_OutputStatus_outOfDate_elim(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_fetchFileHash___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Hash_hex(uint64_t); LEAN_EXPORT lean_object* l_Lake_inputDir___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -206,6 +221,7 @@ LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ofHash(uint64_t); LEAN_EXPORT lean_object* l_Lake_getArtifacts_x3f___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*); static lean_object* l_Lake_BuildMetadata_toJson___closed__3; static lean_object* l_Lake_readTraceFile___closed__0; +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Prod_fromJson_x3f___at___Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__6_spec__6_spec__6___closed__0; LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___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_Job_bindM___at___Lake_buildSharedLib_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_object*); @@ -215,17 +231,22 @@ LEAN_EXPORT lean_object* l_Lake_inputBinFile(lean_object*, lean_object*, lean_ob size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lake_instToOutputJsonArtifact___lam__0___closed__0; static lean_object* l_Lake_instMonadWorkspaceJobM___closed__2; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildStaticLib___lam__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_writeFileHash___closed__0; LEAN_EXPORT lean_object* l_Lake_buildStaticLib___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_inputBinFile___redArg___closed__1; LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lake_inputDir_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ofHashCheck___boxed(lean_object*); uint8_t lean_string_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg(uint8_t, uint8_t); static lean_object* l___private_Lake_Build_Common_0__Lake_mkLinkOrder___redArg___closed__1; +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4(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_Lake_fetchFileHash___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* lean_io_mono_ms_now(lean_object*); lean_object* lean_task_pure(lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildSharedLib_spec__0___redArg___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_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanSharedLib___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, 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_Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__0___boxed(lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg___closed__3; @@ -236,7 +257,8 @@ LEAN_EXPORT lean_object* l_Lake_addLeanTrace___redArg(lean_object*, lean_object* static lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg___closed__0; lean_object* l_Lake_createParentDirs(lean_object*, lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lake_instDecidableEqOutputStatus(uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lake_EStateT_instFunctor___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate(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_IO_withStdout___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__1___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -251,6 +273,7 @@ LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lake_ LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__11; lean_object* lean_nat_to_int(lean_object*); +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__8; extern lean_object* l_ByteArray_empty; LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildSharedLib_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -259,7 +282,6 @@ LEAN_EXPORT lean_object* l_Lake_BuildMetadata_parse(lean_object*); LEAN_EXPORT lean_object* l_Lake_inputBinFile___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_empty(lean_object*); static lean_object* l_Lake_buildAction___redArg___closed__1; -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__12; LEAN_EXPORT lean_object* l_Lake_readTraceFile(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildSharedLib___lam__3___boxed(lean_object**); @@ -267,8 +289,7 @@ static lean_object* l_Lake_buildSharedLib___lam__2___closed__0; LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_buildSharedLib_spec__1(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_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at___Lake_inputDir_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildSharedLib___lam__2(lean_object*, lean_object*, uint8_t, 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_Lake_buildArtifactUnlessUpToDate___lam__2(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, uint64_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2(uint8_t, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, uint64_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_Common_0__Lake_BuildMetadata_schemaVersion; lean_object* l_Lake_Package_isArtifactCacheEnabled___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_go_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -284,10 +305,13 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_resolveArtifactOu LEAN_EXPORT lean_object* l_Lake_buildLeanExe___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* l_ReaderT_instAlternativeOfMonad___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_buildLeanO_spec__3___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_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_removeFileIfExists(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__0(lean_object*); +static lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0; static lean_object* l_Lake_platformTrace___closed__0; lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArtifact(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_JobM_runFetchM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildStaticLib___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -325,9 +349,11 @@ lean_object* l_Lake_instAlternativeELogTOfMonad___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_buildLeanExe_spec__0___redArg___lam__1___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_Package_isArtifactCacheEnabled___at___Lake_buildArtifactUnlessUpToDate_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_JobState_merge(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lake_OutputStatus_ofMTimeCheck(uint8_t); LEAN_EXPORT lean_object* l___private_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at___Lake_inputDir_spec__2___boxed(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___Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__6_spec__6_spec__7___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Cache_readOutputs_x3f(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*); lean_object* lean_io_map_task(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at___Lake_inputDir_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_instBEqOfDecidableEq___redArg(lean_object*); @@ -335,6 +361,7 @@ LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_inputDir_spec__4___boxed(l LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f___redArg(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*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__7; static lean_object* l_Lake_inputBinFile___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___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_Lake_fetchFileHash___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_Common_0__Lake_serializeInputs(lean_object*); lean_object* l_Lake_copyFile(lean_object*, lean_object*, lean_object*); @@ -356,30 +383,30 @@ static lean_object* l_Lake_instMonadWorkspaceJobM___closed__6; lean_object* lean_string_utf8_prev(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_go_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__6(lean_object*); -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1___boxed(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_SavedTrace_replayIfUpToDate_x27_replay(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__6_spec__6(lean_object*); static lean_object* l_Lake_platformTrace___closed__4; static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__7; LEAN_EXPORT lean_object* l_Lake_buildO___lam__2(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_Lake_cacheArtifact___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_extract___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg___closed__2; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim(lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanExe___lam__2(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*); static lean_object* l_Lake_BuildMetadata_toJson___closed__4; lean_object* l_Lake_BuildTrace_nil(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg___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___Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__1_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_fetchFileTrace___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_get_set_stderr(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg___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___private_Lake_Build_Common_0__Lake_mkLinkOrder___redArg___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_EIO_toBaseIO(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanSharedLib___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* l_Lake_EquipT_instFunctor___redArg(lean_object*); static lean_object* l_Lake_buildLeanSharedLib___lam__0___closed__0; -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t); static lean_object* l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; static lean_object* l_Lake_instToJsonBuildMetadata___closed__0; LEAN_EXPORT lean_object* l_Lake_buildAction___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*); @@ -389,7 +416,6 @@ lean_object* l_Lake_ArtifactDescr_fromJson_x3f(lean_object*); static lean_object* l_Lake_BuildMetadata_fromJson_x3f___closed__2; LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_serializeInputs___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate___redArg(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*); -static lean_object* l_Lake_checkHashUpToDate___redArg___closed__0; LEAN_EXPORT lean_object* l_Lake_buildStaticLib___lam__0(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_writeBuildTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanExe___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*); @@ -401,19 +427,20 @@ static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__2; LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___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_IO_withStdout___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__1___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildLeanO___lam__0___closed__0; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanSharedLib___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_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildAction___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_object* l_StateRefT_x27_lift___boxed(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(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_QSort_Basic_0__Array_qsort_sort___at___Lake_inputDir_spec__2___redArg___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_buildSharedLib_spec__1___redArg(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_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3(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_Lake_SavedTrace_replayIfUpToDate___redArg(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 lean_object* l_Lake_platformTrace___closed__6; LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_inputDir_spec__4___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Hash_ofJsonNumber_x3f(lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__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_Lake_Job_bindM___at___Lake_inputDir_spec__4___redArg(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_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_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_mkLinkOrder_go(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildMetadata_fromJson_x3f___closed__1; LEAN_EXPORT lean_object* l_Lake_writeFileHash___boxed(lean_object*, lean_object*, lean_object*); @@ -423,7 +450,7 @@ uint8_t l_IO_FS_instOrdSystemTime_ord(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_go_spec__0___redArg(lean_object*, lean_object*); lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instToOutputJsonPUnit___lam__0(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_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 uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0(lean_object*, lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildFileAfterDep(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_Common_0__Lake_mkLinkOrder___redArg(lean_object*, lean_object*, lean_object*); @@ -445,6 +472,7 @@ LEAN_EXPORT lean_object* l_Lake_inputDir___lam__1___boxed(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Array_filterMapM___at___Lake_inputDir_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_invalid_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Package_cacheScope(lean_object*); LEAN_EXPORT lean_object* l_Lake_inputFile(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -464,6 +492,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Array_filterMapM___at___Lake_inputDir_spec__0_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildFileUnlessUpToDate_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*); lean_object* l_Lake_EquipT_lift___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint64_t l_Lake_Hash_nil; LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___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*); @@ -485,6 +514,7 @@ LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_buildSharedLib_spec__1___r LEAN_EXPORT lean_object* l_Lake_buildSharedLib(lean_object*, lean_object*, 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_object* l_ReaderT_instFunctorOfMonad___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_instDataKindDynlib; +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___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_BuildMetadata_ofBuild___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildTrace_compute___at___Lake_inputBinFile_spec__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -495,8 +525,9 @@ LEAN_EXPORT lean_object* l_Lake_BuildMetadata_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Option_toJson___at___Lake_BuildMetadata_toJson_spec__3___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___redArg___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_buildUnlessUpToDate_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_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ofNat___boxed(lean_object*); static lean_object* l_Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__1___closed__0; -LEAN_EXPORT lean_object* l_Lake_cacheArtifact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lake_cacheArtifact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t); lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_writeTraceFile___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_addPureTrace___redArg___closed__0; @@ -514,6 +545,7 @@ lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_serializeInputs_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(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_EXPORT uint8_t l_Lake_OutputStatus_isCacheable(uint8_t); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__4; LEAN_EXPORT lean_object* l_Lake_writeBuildTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lake_formatCycle___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_spec__1_spec__1(lean_object*, lean_object*); @@ -526,6 +558,8 @@ lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t lean_object* lean_get_set_stdin(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildFileAfterDep___redArg___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_Common_0__Lake_mkLinkOrder(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_instDecidableEqOutputStatus___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(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 lean_object* l_Lake_instMonadWorkspaceJobM___closed__18; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -535,12 +569,15 @@ static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_l uint8_t l_Lake_JobAction_merge(uint8_t, uint8_t); LEAN_EXPORT uint64_t l_Lake_buildO___lam__0(uint64_t, lean_object*); LEAN_EXPORT 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*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___redArg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___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_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_computeArtifact___boxed(lean_object*, lean_object*, lean_object*, 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_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_serializeInputs_spec__0(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___redArg(lean_object*); static lean_object* l_Lake_Cache_saveArtifact___closed__2; LEAN_EXPORT lean_object* l_Lake_fetchFileTrace___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); @@ -563,9 +600,11 @@ lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, LEAN_EXPORT lean_object* l_Lake_buildLeanSharedLib___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_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__20; -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_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 lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__9; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_isUpToDate___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_missing_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_toCtorIdx(uint8_t); lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); lean_object* l_Lake_compileStaticLib(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); @@ -578,19 +617,19 @@ LEAN_EXPORT lean_object* l_Lake_inputBinFile___boxed(lean_object*, lean_object*, lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildLeanO___lam__0___closed__2; lean_object* l_Lake_EStateT_instMonad___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lake_OutputStatus_isUpToDate(uint8_t); LEAN_EXPORT lean_object* l_Lake_writeTraceFile(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildSharedLib___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_string_from_utf8_unchecked(lean_object*); static lean_object* l_Lake_BuildMetadata_fromJsonObject_x3f___closed__3; LEAN_EXPORT lean_object* l_Lake_writeFetchTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lake_computeBinFileHash(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_buildO___lam__2___closed__1; static lean_object* l_Lake_BuildMetadata_toJson___closed__2; LEAN_EXPORT lean_object* l_Lake_inputTextFile___redArg___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_Lake_SavedTrace_isDifferentFrom___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim(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_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildO(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_computeArtifact___redArg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_inputBinFile___redArg___closed__0; @@ -599,39 +638,45 @@ lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_fetchFileTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__5; LEAN_EXPORT lean_object* l_Lake_inputBinFile___redArg___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_Lake_OutputStatus_ctorElim___redArg___boxed(lean_object*); static lean_object* l_Lake_Cache_saveArtifact___closed__1; lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_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_EXPORT lean_object* l_Lake_BuildMetadata_writeFile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__16; LEAN_EXPORT lean_object* l_Lake_buildFileAfterDep___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_Job_bindM___at___Lake_buildLeanExe_spec__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_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Data_Array_QSort_Basic_0__Array_qsort_sort___at___Lake_inputDir_spec__2___redArg___lam__0(lean_object*, lean_object*); static lean_object* l_Lake_instMonadWorkspaceJobM___closed__19; +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___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_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lake_addPureTrace___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_Lake_OutputStatus_isCacheable___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_instResolveOutputsArtifactOfMonadWorkspaceOfMonadLiftTBaseIOOfMonad(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_parse(lean_object*); lean_object* l_Lake_joinRelative(lean_object*, lean_object*); static lean_object* l_Lake_formatCycle___at_____private_Lake_Build_Common_0__Lake_mkLinkOrder_spec__1___closed__0; LEAN_EXPORT lean_object* l_Prod_toJson___at___Array_toJson___at___Lake_BuildMetadata_toJson_spec__0_spec__0(lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildLeanSharedLib___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_buildO___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_nat_add(lean_object*, lean_object*); lean_object* l_Lake_instDecidableEqHash___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___lam__0___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27(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* l_IO_FS_readBinFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToOutputJson_ctorIdx___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_instResolveOutputsArtifactOfMonadWorkspaceOfMonadLiftTBaseIOOfMonad___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildSharedLib___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_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___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 lean_object* l___private_Lake_Build_Common_0__Lake_resolveArtifactOutput_x3f___redArg___closed__2; LEAN_EXPORT lean_object* l_Lake_buildO___lam__2___boxed__const__1; LEAN_EXPORT lean_object* l_Lake_inputBinFile___redArg___lam__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_inputFile___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_Platform_target; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(uint64_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_BuildMetadata_fromJson_x3f___closed__3; LEAN_EXPORT lean_object* l_Lake_buildUnlessUpToDate_x3f(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_Lake_instToOutputJsonPUnit; @@ -639,7 +684,6 @@ LEAN_EXPORT lean_object* l_Lake_SavedTrace_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Lake_SavedTrace_missing_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_writeFetchTrace(lean_object*, uint64_t, lean_object*, lean_object*); lean_object* l_Lake_instToJsonLogEntry_toJson(lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_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* l_IO_setAccessRights(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_ReaderT_instMonadLift___lam__0___boxed(lean_object*, lean_object*, lean_object*); @@ -649,7 +693,9 @@ lean_object* l_Lake_instMonadLiftLakeMBuildTOfPure___redArg(lean_object*); static lean_object* l_List_toString___at___Lake_buildLeanO_spec__0___closed__2; LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, 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_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___redArg___boxed(lean_object*); static lean_object* l_Lake_platformTrace___closed__5; +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_BuildMetadata_fromJsonObject_x3f_spec__4_spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lake_inputBinFile___redArg___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_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild___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*); @@ -667,7 +713,9 @@ static lean_object* l_Option_fromJson_x3f___at___Option_fromJson_x3f___at___Lake LEAN_EXPORT lean_object* l_Lake_SavedTrace_ctorElim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_BuildMetadata_fromJson_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_buildAction___at_____private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild_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_EXPORT lean_object* l_Lake_OutputStatus_ofMTimeCheck___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_writeBuildTrace___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___redArg___boxed(lean_object*); static lean_object* _init_l_Lake_instMonadWorkspaceJobM___closed__0() { _start: { @@ -4922,7 +4970,427 @@ lean_dec_ref(x_3); return x_8; } } -static lean_object* _init_l_Lake_checkHashUpToDate___redArg___closed__0() { +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorIdx(uint8_t x_1) { +_start: +{ +switch (x_1) { +case 0: +{ +lean_object* x_2; +x_2 = lean_unsigned_to_nat(0u); +return x_2; +} +case 1: +{ +lean_object* x_3; +x_3 = lean_unsigned_to_nat(1u); +return x_3; +} +default: +{ +lean_object* x_4; +x_4 = lean_unsigned_to_nat(2u); +return x_4; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorIdx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_ctorIdx(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_toCtorIdx(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_ctorIdx(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_toCtorIdx___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_toCtorIdx(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim___redArg(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_inc(x_5); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim___redArg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_ctorElim___redArg(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_3); +x_7 = l_Lake_OutputStatus_ctorElim(x_1, x_2, x_6, x_4, x_5); +lean_dec(x_5); +lean_dec(x_2); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___redArg(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_inc(x_4); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___redArg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_outOfDate_elim___redArg(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_outOfDate_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +x_6 = l_Lake_OutputStatus_outOfDate_elim(x_1, x_5, x_3, x_4); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___redArg(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_inc(x_4); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___redArg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_mtimeUpToDate_elim___redArg(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_mtimeUpToDate_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +x_6 = l_Lake_OutputStatus_mtimeUpToDate_elim(x_1, x_5, x_3, x_4); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___redArg(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_inc(x_4); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___redArg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_hashUpToDate_elim___redArg(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_hashUpToDate_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = lean_unbox(x_2); +x_6 = l_Lake_OutputStatus_hashUpToDate_elim(x_1, x_5, x_3, x_4); +lean_dec(x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___lam__0(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg(uint8_t x_1, uint8_t x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; +x_3 = l_Lake_OutputStatus_ctorIdx(x_1); +x_4 = l_Lake_OutputStatus_ctorIdx(x_2); +x_5 = lean_nat_dec_eq(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_alloc_closure((void*)(l_Lake_OutputStatus_noConfusion___redArg___lam__0___boxed), 1, 0); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lake_OutputStatus_noConfusion___redArg(x_2, x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___lam__0___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_OutputStatus_noConfusion___redArg___lam__0(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___redArg___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; lean_object* x_5; +x_3 = lean_unbox(x_1); +x_4 = lean_unbox(x_2); +x_5 = l_Lake_OutputStatus_noConfusion___redArg(x_3, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_noConfusion___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; uint8_t x_6; lean_object* x_7; +x_5 = lean_unbox(x_2); +x_6 = lean_unbox(x_3); +x_7 = l_Lake_OutputStatus_noConfusion(x_1, x_5, x_6, x_4); +return x_7; +} +} +LEAN_EXPORT uint8_t l_Lake_OutputStatus_ofNat(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_nat_dec_le(x_1, x_2); +if (x_3 == 0) +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_unsigned_to_nat(1u); +x_5 = lean_nat_dec_le(x_1, x_4); +if (x_5 == 0) +{ +uint8_t x_6; +x_6 = 2; +return x_6; +} +else +{ +uint8_t x_7; +x_7 = 1; +return x_7; +} +} +else +{ +uint8_t x_8; +x_8 = 0; +return x_8; +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ofNat___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lake_OutputStatus_ofNat(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lake_instDecidableEqOutputStatus(uint8_t x_1, uint8_t x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; uint8_t x_5; +x_3 = l_Lake_OutputStatus_ctorIdx(x_1); +x_4 = l_Lake_OutputStatus_ctorIdx(x_2); +x_5 = lean_nat_dec_eq(x_3, x_4); +lean_dec(x_4); +lean_dec(x_3); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_instDecidableEqOutputStatus___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; +x_3 = lean_unbox(x_1); +x_4 = lean_unbox(x_2); +x_5 = l_Lake_instDecidableEqOutputStatus(x_3, x_4); +x_6 = lean_box(x_5); +return x_6; +} +} +LEAN_EXPORT uint8_t l_Lake_OutputStatus_ofHashCheck(uint8_t x_1) { +_start: +{ +if (x_1 == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = 2; +return x_3; +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ofHashCheck___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_ofHashCheck(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lake_OutputStatus_ofMTimeCheck(uint8_t x_1) { +_start: +{ +if (x_1 == 0) +{ +uint8_t x_2; +x_2 = 0; +return x_2; +} +else +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_ofMTimeCheck___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_ofMTimeCheck(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lake_OutputStatus_isUpToDate(uint8_t x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; +x_2 = 0; +x_3 = l_Lake_instDecidableEqOutputStatus(x_1, x_2); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_isUpToDate___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_isUpToDate(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_Lake_OutputStatus_isCacheable(uint8_t x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; +x_2 = 1; +x_3 = l_Lake_instDecidableEqOutputStatus(x_1, x_2); +if (x_3 == 0) +{ +uint8_t x_4; +x_4 = 1; +return x_4; +} +else +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lake_OutputStatus_isCacheable___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox(x_1); +x_3 = l_Lake_OutputStatus_isCacheable(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0() { _start: { lean_object* x_1; lean_object* x_2; @@ -4931,12 +5399,12 @@ x_2 = l_instBEqOfDecidableEq___redArg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { uint64_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; x_10 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); -x_11 = l_Lake_checkHashUpToDate___redArg___closed__0; +x_11 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0; x_12 = lean_box_uint64(x_10); x_13 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_13, 0, x_12); @@ -4949,82 +5417,340 @@ x_15 = lean_ctor_get(x_7, 0); x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*2); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_dec(x_3); lean_dec_ref(x_2); -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_8); +x_17 = 0; +x_18 = lean_box(x_17); x_19 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_9); -return x_19; -} -else -{ -lean_object* x_20; uint8_t x_21; -x_20 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_9); -x_21 = !lean_is_exclusive(x_20); -if (x_21 == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_20, 0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_8); -lean_ctor_set(x_20, 0, x_23); +lean_ctor_set(x_19, 1, x_8); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_9); return x_20; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_24 = lean_ctor_get(x_20, 0); -x_25 = lean_ctor_get(x_20, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_20); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_8); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_25); -return x_27; +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_9); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); +lean_dec(x_22); +if (x_23 == 0) +{ +uint8_t x_24; +x_24 = !lean_is_exclusive(x_21); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_21, 0); +lean_dec(x_25); +x_26 = 0; +x_27 = lean_box(x_26); +x_28 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_8); +lean_ctor_set(x_21, 0, x_28); +return x_21; +} +else +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_29 = lean_ctor_get(x_21, 1); +lean_inc(x_29); +lean_dec(x_21); +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_8); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +return x_33; +} +} +else +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_21); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_21, 0); +lean_dec(x_35); +x_36 = 1; +x_37 = lean_box(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_8); +lean_ctor_set(x_21, 0, x_38); +return x_21; +} +else +{ +lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_39 = lean_ctor_get(x_21, 1); +lean_inc(x_39); +lean_dec(x_21); +x_40 = 1; +x_41 = lean_box(x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_8); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_39); +return x_43; +} } } } else { -lean_object* x_28; uint8_t x_29; +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_dec_ref(x_2); -x_28 = lean_apply_2(x_1, x_3, x_9); -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) +x_44 = lean_apply_2(x_1, x_3, x_9); +x_45 = lean_ctor_get(x_44, 0); +lean_inc(x_45); +x_46 = lean_unbox(x_45); +lean_dec(x_45); +if (x_46 == 0) { -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_28, 0); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_8); -lean_ctor_set(x_28, 0, x_31); -return x_28; +uint8_t x_47; +x_47 = !lean_is_exclusive(x_44); +if (x_47 == 0) +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; +x_48 = lean_ctor_get(x_44, 0); +lean_dec(x_48); +x_49 = 0; +x_50 = lean_box(x_49); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_8); +lean_ctor_set(x_44, 0, x_51); +return x_44; } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_28, 0); -x_33 = lean_ctor_get(x_28, 1); +lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_52 = lean_ctor_get(x_44, 1); +lean_inc(x_52); +lean_dec(x_44); +x_53 = 0; +x_54 = lean_box(x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_8); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_52); +return x_56; +} +} +else +{ +uint8_t x_57; +x_57 = !lean_is_exclusive(x_44); +if (x_57 == 0) +{ +lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; +x_58 = lean_ctor_get(x_44, 0); +lean_dec(x_58); +x_59 = 2; +x_60 = lean_box(x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_8); +lean_ctor_set(x_44, 0, x_61); +return x_44; +} +else +{ +lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_62 = lean_ctor_get(x_44, 1); +lean_inc(x_62); +lean_dec(x_44); +x_63 = 2; +x_64 = lean_box(x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_8); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_62); +return x_66; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_4); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_10, 0); +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; +x_14 = lean_ctor_get(x_12, 0); +x_15 = 0; +x_16 = lean_unbox(x_14); +lean_dec(x_14); +x_17 = l_Lake_instDecidableEqOutputStatus(x_16, x_15); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; +x_18 = 1; +x_19 = lean_box(x_18); +lean_ctor_set(x_12, 0, x_19); +return x_10; +} +else +{ +uint8_t x_20; lean_object* x_21; +x_20 = 0; +x_21 = lean_box(x_20); +lean_ctor_set(x_12, 0, x_21); +return x_10; +} +} +else +{ +lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; +x_22 = lean_ctor_get(x_12, 0); +x_23 = lean_ctor_get(x_12, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_12); +x_24 = 0; +x_25 = lean_unbox(x_22); +lean_dec(x_22); +x_26 = l_Lake_instDecidableEqOutputStatus(x_25, x_24); +if (x_26 == 0) +{ +uint8_t x_27; lean_object* x_28; lean_object* x_29; +x_27 = 1; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_23); +lean_ctor_set(x_10, 0, x_29); +return x_10; +} +else +{ +uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_30 = 0; +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_10, 0, x_32); +return x_10; +} +} +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; +x_33 = lean_ctor_get(x_10, 0); +x_34 = lean_ctor_get(x_10, 1); +lean_inc(x_34); lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_28); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_8); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; +lean_dec(x_10); +x_35 = lean_ctor_get(x_33, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_33, 1); +lean_inc(x_36); +if (lean_is_exclusive(x_33)) { + lean_ctor_release(x_33, 0); + lean_ctor_release(x_33, 1); + x_37 = x_33; +} else { + lean_dec_ref(x_33); + x_37 = lean_box(0); +} +x_38 = 0; +x_39 = lean_unbox(x_35); +lean_dec(x_35); +x_40 = l_Lake_instDecidableEqOutputStatus(x_39, x_38); +if (x_40 == 0) +{ +uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = 1; +x_42 = lean_box(x_41); +if (lean_is_scalar(x_37)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_37; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_36); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_34); +return x_44; +} +else +{ +uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = 0; +x_46 = lean_box(x_45); +if (lean_is_scalar(x_37)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_37; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_36); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_34); +return x_48; } } } @@ -5032,10 +5758,135 @@ return x_35; LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_15; -x_15 = l_Lake_checkHashUpToDate___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14); +lean_object* x_15; uint8_t x_16; +x_15 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_13, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = 0; +x_21 = lean_unbox(x_19); +lean_dec(x_19); +x_22 = l_Lake_instDecidableEqOutputStatus(x_21, x_20); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_17, 0, x_24); return x_15; } +else +{ +uint8_t x_25; lean_object* x_26; +x_25 = 0; +x_26 = lean_box(x_25); +lean_ctor_set(x_17, 0, x_26); +return x_15; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +x_29 = 0; +x_30 = lean_unbox(x_27); +lean_dec(x_27); +x_31 = l_Lake_instDecidableEqOutputStatus(x_30, x_29); +if (x_31 == 0) +{ +uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_32 = 1; +x_33 = lean_box(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_28); +lean_ctor_set(x_15, 0, x_34); +return x_15; +} +else +{ +uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_35 = 0; +x_36 = lean_box(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_28); +lean_ctor_set(x_15, 0, x_37); +return x_15; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; +x_38 = lean_ctor_get(x_15, 0); +x_39 = lean_ctor_get(x_15, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_15); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_42 = x_38; +} else { + lean_dec_ref(x_38); + x_42 = lean_box(0); +} +x_43 = 0; +x_44 = lean_unbox(x_40); +lean_dec(x_40); +x_45 = l_Lake_instDecidableEqOutputStatus(x_44, x_43); +if (x_45 == 0) +{ +uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = 1; +x_47 = lean_box(x_46); +if (lean_is_scalar(x_42)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_42; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_41); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_39); +return x_49; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = 0; +x_51 = lean_box(x_50); +if (lean_is_scalar(x_42)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_42; +} +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_41); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_39); +return x_53; +} +} +} } LEAN_EXPORT lean_object* l_Lake_checkHashUpToDate___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: @@ -5063,1719 +5914,7 @@ lean_dec_ref(x_5); return x_15; } } -LEAN_EXPORT uint8_t l_Lake_SavedTrace_isDifferentFrom(uint64_t x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_3; uint64_t x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_5 = lean_uint64_dec_eq(x_1, x_4); -if (x_5 == 0) -{ -uint8_t x_6; -x_6 = 1; -return x_6; -} -else -{ -uint8_t x_7; -x_7 = 0; -return x_7; -} -} -else -{ -uint8_t x_8; -x_8 = 1; -return x_8; -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_isDifferentFrom___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint64_t x_3; uint8_t x_4; lean_object* x_5; -x_3 = lean_unbox_uint64(x_1); -lean_dec(x_1); -x_4 = l_Lake_SavedTrace_isDifferentFrom(x_3, x_2); -lean_dec(x_2); -x_5 = lean_box(x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_ctor_get(x_8, 0); -x_12 = lean_box(0); -x_13 = lean_array_push(x_11, x_2); -lean_ctor_set(x_8, 0, x_13); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_12); -lean_ctor_set(x_14, 1, x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_9); -return x_15; -} -else -{ -lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_16 = lean_ctor_get(x_8, 0); -x_17 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_18 = lean_ctor_get(x_8, 1); -x_19 = lean_ctor_get(x_8, 2); -lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_16); -lean_dec(x_8); -x_20 = lean_box(0); -x_21 = lean_array_push(x_16, x_2); -x_22 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_18); -lean_ctor_set(x_22, 2, x_19); -lean_ctor_set_uint8(x_22, sizeof(void*)*3, x_17); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_9); -return x_24; -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_28; uint8_t x_29; -x_28 = l_Lake_instMonadWorkspaceJobM___closed__0; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = lean_ctor_get(x_28, 0); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_32 = lean_ctor_get(x_28, 1); -x_33 = lean_ctor_get(x_30, 0); -x_34 = lean_ctor_get(x_30, 1); -x_35 = lean_ctor_get(x_30, 4); -lean_dec(x_35); -x_36 = lean_ctor_get(x_30, 3); -lean_dec(x_36); -x_37 = lean_ctor_get(x_30, 2); -lean_dec(x_37); -lean_inc(x_32); -lean_inc(x_34); -x_38 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__1), 7, 2); -lean_closure_set(x_38, 0, x_34); -lean_closure_set(x_38, 1, x_32); -lean_inc(x_32); -lean_inc(x_34); -x_39 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__3), 7, 2); -lean_closure_set(x_39, 0, x_34); -lean_closure_set(x_39, 1, x_32); -lean_inc_ref(x_38); -lean_inc(x_34); -x_40 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__5), 7, 2); -lean_closure_set(x_40, 0, x_34); -lean_closure_set(x_40, 1, x_38); -lean_inc(x_34); -lean_inc_ref(x_33); -x_41 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__9), 8, 3); -lean_closure_set(x_41, 0, x_33); -lean_closure_set(x_41, 1, x_34); -lean_closure_set(x_41, 2, x_32); -x_42 = l_Lake_EStateT_instFunctor___redArg(x_33); -x_43 = lean_alloc_closure((void*)(l_Lake_EStateT_instPure___redArg___lam__0), 4, 1); -lean_closure_set(x_43, 0, x_34); -lean_ctor_set(x_30, 4, x_39); -lean_ctor_set(x_30, 3, x_40); -lean_ctor_set(x_30, 2, x_41); -lean_ctor_set(x_30, 1, x_43); -lean_ctor_set(x_30, 0, x_42); -lean_ctor_set(x_28, 1, x_38); -x_44 = l_ReaderT_instMonad___redArg(x_28); -x_45 = l_ReaderT_instMonad___redArg(x_44); -x_46 = l_ReaderT_instMonad___redArg(x_45); -x_47 = l_ReaderT_instMonad___redArg(x_46); -switch (lean_obj_tag(x_5)) { -case 0: -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -lean_dec_ref(x_47); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_48 = lean_ctor_get(x_4, 2); -x_49 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_48, x_13); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_49, 0); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_12); -lean_ctor_set(x_49, 0, x_52); -return x_49; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_49, 0); -x_54 = lean_ctor_get(x_49, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_49); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_12); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_54); -return x_56; -} -} -case 1: -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_66; uint8_t x_67; -lean_dec_ref(x_47); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_57 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_57)) { - lean_ctor_release(x_57, 0); - lean_ctor_release(x_57, 1); - x_60 = x_57; -} else { - lean_dec_ref(x_57); - x_60 = lean_box(0); -} -x_66 = lean_ctor_get(x_11, 0); -lean_inc_ref(x_66); -lean_dec_ref(x_11); -x_67 = lean_ctor_get_uint8(x_66, sizeof(void*)*2); -lean_dec_ref(x_66); -if (x_67 == 0) -{ -lean_dec(x_58); -x_61 = x_67; -goto block_65; -} -else -{ -uint8_t x_68; -x_68 = lean_unbox(x_58); -lean_dec(x_58); -x_61 = x_68; -goto block_65; -} -block_65: -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_box(x_61); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_12); -if (lean_is_scalar(x_60)) { - x_64 = lean_alloc_ctor(0, 2, 0); -} else { - x_64 = x_60; -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_59); -return x_64; -} -} -default: -{ -uint8_t x_69; -x_69 = !lean_is_exclusive(x_5); -if (x_69 == 0) -{ -lean_object* x_70; uint64_t x_71; lean_object* x_72; uint64_t x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; -x_70 = lean_ctor_get(x_5, 0); -x_71 = lean_ctor_get_uint64(x_70, sizeof(void*)*3); -x_72 = lean_ctor_get(x_70, 2); -lean_inc_ref(x_72); -lean_dec_ref(x_70); -x_73 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); -x_74 = lean_alloc_closure((void*)(l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed), 9, 0); -x_135 = lean_box_uint64(x_71); -lean_ctor_set_tag(x_5, 1); -lean_ctor_set(x_5, 0, x_135); -x_136 = l_Lake_checkHashUpToDate___redArg___closed__0; -x_137 = lean_box_uint64(x_73); -x_138 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_138, 0, x_137); -x_139 = l_Option_instBEq_beq___redArg(x_136, x_138, x_5); -if (x_139 == 0) -{ -lean_object* x_140; uint8_t x_141; -lean_dec_ref(x_1); -x_140 = lean_ctor_get(x_11, 0); -x_141 = lean_ctor_get_uint8(x_140, sizeof(void*)*2); -if (x_141 == 0) -{ -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_47); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_3); -lean_dec_ref(x_2); -x_14 = x_141; -x_15 = x_12; -x_16 = x_13; -goto block_20; -} -else -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; -x_142 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec_ref(x_142); -x_145 = lean_unbox(x_143); -lean_dec(x_143); -x_75 = x_145; -x_76 = x_12; -x_77 = x_144; -goto block_134; -} -} -else -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -lean_dec_ref(x_2); -x_146 = lean_apply_2(x_1, x_3, x_13); -x_147 = lean_ctor_get(x_146, 0); -lean_inc(x_147); -x_148 = lean_ctor_get(x_146, 1); -lean_inc(x_148); -lean_dec_ref(x_146); -x_149 = lean_unbox(x_147); -lean_dec(x_147); -x_75 = x_149; -x_76 = x_12; -x_77 = x_148; -goto block_134; -} -block_134: -{ -if (x_75 == 0) -{ -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_47); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_14 = x_75; -x_15 = x_76; -x_16 = x_77; -goto block_20; -} -else -{ -uint8_t x_78; -x_78 = !lean_is_exclusive(x_76); -if (x_78 == 0) -{ -uint8_t x_79; lean_object* x_80; uint8_t x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; -x_79 = lean_ctor_get_uint8(x_76, sizeof(void*)*3); -x_80 = l_Lake_EquipT_instMonad___redArg(x_47); -x_81 = 1; -x_82 = l_Lake_JobAction_merge(x_79, x_81); -lean_ctor_set_uint8(x_76, sizeof(void*)*3, x_82); -x_83 = lean_unsigned_to_nat(0u); -x_84 = lean_array_get_size(x_72); -x_85 = lean_nat_dec_lt(x_83, x_84); -if (x_85 == 0) -{ -lean_dec(x_84); -lean_dec_ref(x_80); -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_75; -x_22 = x_76; -x_23 = x_77; -goto block_27; -} -else -{ -uint8_t x_86; -x_86 = lean_nat_dec_le(x_84, x_84); -if (x_86 == 0) -{ -lean_dec(x_84); -lean_dec_ref(x_80); -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_75; -x_22 = x_76; -x_23 = x_77; -goto block_27; -} -else -{ -lean_object* x_87; size_t x_88; size_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_87 = lean_box(0); -x_88 = 0; -x_89 = lean_usize_of_nat(x_84); -lean_dec(x_84); -x_90 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_80, x_74, x_72, x_88, x_89, x_87); -x_91 = lean_apply_7(x_90, x_7, x_8, x_9, x_10, x_11, x_76, x_77); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec_ref(x_92); -x_21 = x_75; -x_22 = x_94; -x_23 = x_93; -goto block_27; -} -else -{ -uint8_t x_95; -x_95 = !lean_is_exclusive(x_91); -if (x_95 == 0) -{ -lean_object* x_96; uint8_t x_97; -x_96 = lean_ctor_get(x_91, 0); -lean_dec(x_96); -x_97 = !lean_is_exclusive(x_92); -if (x_97 == 0) -{ -return x_91; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_92, 0); -x_99 = lean_ctor_get(x_92, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_92); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -lean_ctor_set(x_91, 0, x_100); -return x_91; -} -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_101 = lean_ctor_get(x_91, 1); -lean_inc(x_101); -lean_dec(x_91); -x_102 = lean_ctor_get(x_92, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_92, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - x_104 = x_92; -} else { - lean_dec_ref(x_92); - x_104 = lean_box(0); -} -if (lean_is_scalar(x_104)) { - x_105 = lean_alloc_ctor(1, 2, 0); -} else { - x_105 = x_104; -} -lean_ctor_set(x_105, 0, x_102); -lean_ctor_set(x_105, 1, x_103); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_101); -return x_106; -} -} -} -} -} -else -{ -lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_107 = lean_ctor_get(x_76, 0); -x_108 = lean_ctor_get_uint8(x_76, sizeof(void*)*3); -x_109 = lean_ctor_get(x_76, 1); -x_110 = lean_ctor_get(x_76, 2); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_107); -lean_dec(x_76); -x_111 = l_Lake_EquipT_instMonad___redArg(x_47); -x_112 = 1; -x_113 = l_Lake_JobAction_merge(x_108, x_112); -x_114 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_114, 0, x_107); -lean_ctor_set(x_114, 1, x_109); -lean_ctor_set(x_114, 2, x_110); -lean_ctor_set_uint8(x_114, sizeof(void*)*3, x_113); -x_115 = lean_unsigned_to_nat(0u); -x_116 = lean_array_get_size(x_72); -x_117 = lean_nat_dec_lt(x_115, x_116); -if (x_117 == 0) -{ -lean_dec(x_116); -lean_dec_ref(x_111); -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_75; -x_22 = x_114; -x_23 = x_77; -goto block_27; -} -else -{ -uint8_t x_118; -x_118 = lean_nat_dec_le(x_116, x_116); -if (x_118 == 0) -{ -lean_dec(x_116); -lean_dec_ref(x_111); -lean_dec_ref(x_74); -lean_dec_ref(x_72); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_75; -x_22 = x_114; -x_23 = x_77; -goto block_27; -} -else -{ -lean_object* x_119; size_t x_120; size_t x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_119 = lean_box(0); -x_120 = 0; -x_121 = lean_usize_of_nat(x_116); -lean_dec(x_116); -x_122 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_111, x_74, x_72, x_120, x_121, x_119); -x_123 = lean_apply_7(x_122, x_7, x_8, x_9, x_10, x_11, x_114, x_77); -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec_ref(x_123); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec_ref(x_124); -x_21 = x_75; -x_22 = x_126; -x_23 = x_125; -goto block_27; -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; -x_127 = lean_ctor_get(x_123, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_123)) { - lean_ctor_release(x_123, 0); - lean_ctor_release(x_123, 1); - x_128 = x_123; -} else { - lean_dec_ref(x_123); - x_128 = lean_box(0); -} -x_129 = lean_ctor_get(x_124, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_124, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_124)) { - lean_ctor_release(x_124, 0); - lean_ctor_release(x_124, 1); - x_131 = x_124; -} else { - lean_dec_ref(x_124); - x_131 = lean_box(0); -} -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); -} else { - x_132 = x_131; -} -lean_ctor_set(x_132, 0, x_129); -lean_ctor_set(x_132, 1, x_130); -if (lean_is_scalar(x_128)) { - x_133 = lean_alloc_ctor(0, 2, 0); -} else { - x_133 = x_128; -} -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_127); -return x_133; -} -} -} -} -} -} -} -else -{ -lean_object* x_150; uint64_t x_151; lean_object* x_152; uint64_t x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; uint8_t x_192; -x_150 = lean_ctor_get(x_5, 0); -lean_inc(x_150); -lean_dec(x_5); -x_151 = lean_ctor_get_uint64(x_150, sizeof(void*)*3); -x_152 = lean_ctor_get(x_150, 2); -lean_inc_ref(x_152); -lean_dec_ref(x_150); -x_153 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); -x_154 = lean_alloc_closure((void*)(l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed), 9, 0); -x_187 = lean_box_uint64(x_151); -x_188 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_188, 0, x_187); -x_189 = l_Lake_checkHashUpToDate___redArg___closed__0; -x_190 = lean_box_uint64(x_153); -x_191 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_191, 0, x_190); -x_192 = l_Option_instBEq_beq___redArg(x_189, x_191, x_188); -if (x_192 == 0) -{ -lean_object* x_193; uint8_t x_194; -lean_dec_ref(x_1); -x_193 = lean_ctor_get(x_11, 0); -x_194 = lean_ctor_get_uint8(x_193, sizeof(void*)*2); -if (x_194 == 0) -{ -lean_dec_ref(x_154); -lean_dec_ref(x_152); -lean_dec_ref(x_47); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_3); -lean_dec_ref(x_2); -x_14 = x_194; -x_15 = x_12; -x_16 = x_13; -goto block_20; -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; -x_195 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_196 = lean_ctor_get(x_195, 0); -lean_inc(x_196); -x_197 = lean_ctor_get(x_195, 1); -lean_inc(x_197); -lean_dec_ref(x_195); -x_198 = lean_unbox(x_196); -lean_dec(x_196); -x_155 = x_198; -x_156 = x_12; -x_157 = x_197; -goto block_186; -} -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -lean_dec_ref(x_2); -x_199 = lean_apply_2(x_1, x_3, x_13); -x_200 = lean_ctor_get(x_199, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 1); -lean_inc(x_201); -lean_dec_ref(x_199); -x_202 = lean_unbox(x_200); -lean_dec(x_200); -x_155 = x_202; -x_156 = x_12; -x_157 = x_201; -goto block_186; -} -block_186: -{ -if (x_155 == 0) -{ -lean_dec_ref(x_154); -lean_dec_ref(x_152); -lean_dec_ref(x_47); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_14 = x_155; -x_15 = x_156; -x_16 = x_157; -goto block_20; -} -else -{ -lean_object* x_158; uint8_t x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; uint8_t x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; -x_158 = lean_ctor_get(x_156, 0); -lean_inc_ref(x_158); -x_159 = lean_ctor_get_uint8(x_156, sizeof(void*)*3); -x_160 = lean_ctor_get(x_156, 1); -lean_inc_ref(x_160); -x_161 = lean_ctor_get(x_156, 2); -lean_inc(x_161); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - lean_ctor_release(x_156, 2); - x_162 = x_156; -} else { - lean_dec_ref(x_156); - x_162 = lean_box(0); -} -x_163 = l_Lake_EquipT_instMonad___redArg(x_47); -x_164 = 1; -x_165 = l_Lake_JobAction_merge(x_159, x_164); -if (lean_is_scalar(x_162)) { - x_166 = lean_alloc_ctor(0, 3, 1); -} else { - x_166 = x_162; -} -lean_ctor_set(x_166, 0, x_158); -lean_ctor_set(x_166, 1, x_160); -lean_ctor_set(x_166, 2, x_161); -lean_ctor_set_uint8(x_166, sizeof(void*)*3, x_165); -x_167 = lean_unsigned_to_nat(0u); -x_168 = lean_array_get_size(x_152); -x_169 = lean_nat_dec_lt(x_167, x_168); -if (x_169 == 0) -{ -lean_dec(x_168); -lean_dec_ref(x_163); -lean_dec_ref(x_154); -lean_dec_ref(x_152); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_155; -x_22 = x_166; -x_23 = x_157; -goto block_27; -} -else -{ -uint8_t x_170; -x_170 = lean_nat_dec_le(x_168, x_168); -if (x_170 == 0) -{ -lean_dec(x_168); -lean_dec_ref(x_163); -lean_dec_ref(x_154); -lean_dec_ref(x_152); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_155; -x_22 = x_166; -x_23 = x_157; -goto block_27; -} -else -{ -lean_object* x_171; size_t x_172; size_t x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_171 = lean_box(0); -x_172 = 0; -x_173 = lean_usize_of_nat(x_168); -lean_dec(x_168); -x_174 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_163, x_154, x_152, x_172, x_173, x_171); -x_175 = lean_apply_7(x_174, x_7, x_8, x_9, x_10, x_11, x_166, x_157); -x_176 = lean_ctor_get(x_175, 0); -lean_inc(x_176); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_177; lean_object* x_178; -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec_ref(x_175); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec_ref(x_176); -x_21 = x_155; -x_22 = x_178; -x_23 = x_177; -goto block_27; -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -x_179 = lean_ctor_get(x_175, 1); -lean_inc(x_179); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_180 = x_175; -} else { - lean_dec_ref(x_175); - x_180 = lean_box(0); -} -x_181 = lean_ctor_get(x_176, 0); -lean_inc(x_181); -x_182 = lean_ctor_get(x_176, 1); -lean_inc(x_182); -if (lean_is_exclusive(x_176)) { - lean_ctor_release(x_176, 0); - lean_ctor_release(x_176, 1); - x_183 = x_176; -} else { - lean_dec_ref(x_176); - x_183 = lean_box(0); -} -if (lean_is_scalar(x_183)) { - x_184 = lean_alloc_ctor(1, 2, 0); -} else { - x_184 = x_183; -} -lean_ctor_set(x_184, 0, x_181); -lean_ctor_set(x_184, 1, x_182); -if (lean_is_scalar(x_180)) { - x_185 = lean_alloc_ctor(0, 2, 0); -} else { - x_185 = x_180; -} -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_179); -return x_185; -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_203 = lean_ctor_get(x_28, 1); -x_204 = lean_ctor_get(x_30, 0); -x_205 = lean_ctor_get(x_30, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_30); -lean_inc(x_203); -lean_inc(x_205); -x_206 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__1), 7, 2); -lean_closure_set(x_206, 0, x_205); -lean_closure_set(x_206, 1, x_203); -lean_inc(x_203); -lean_inc(x_205); -x_207 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__3), 7, 2); -lean_closure_set(x_207, 0, x_205); -lean_closure_set(x_207, 1, x_203); -lean_inc_ref(x_206); -lean_inc(x_205); -x_208 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__5), 7, 2); -lean_closure_set(x_208, 0, x_205); -lean_closure_set(x_208, 1, x_206); -lean_inc(x_205); -lean_inc_ref(x_204); -x_209 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__9), 8, 3); -lean_closure_set(x_209, 0, x_204); -lean_closure_set(x_209, 1, x_205); -lean_closure_set(x_209, 2, x_203); -x_210 = l_Lake_EStateT_instFunctor___redArg(x_204); -x_211 = lean_alloc_closure((void*)(l_Lake_EStateT_instPure___redArg___lam__0), 4, 1); -lean_closure_set(x_211, 0, x_205); -x_212 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_212, 0, x_210); -lean_ctor_set(x_212, 1, x_211); -lean_ctor_set(x_212, 2, x_209); -lean_ctor_set(x_212, 3, x_208); -lean_ctor_set(x_212, 4, x_207); -lean_ctor_set(x_28, 1, x_206); -lean_ctor_set(x_28, 0, x_212); -x_213 = l_ReaderT_instMonad___redArg(x_28); -x_214 = l_ReaderT_instMonad___redArg(x_213); -x_215 = l_ReaderT_instMonad___redArg(x_214); -x_216 = l_ReaderT_instMonad___redArg(x_215); -switch (lean_obj_tag(x_5)) { -case 0: -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; -lean_dec_ref(x_216); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_217 = lean_ctor_get(x_4, 2); -x_218 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_217, x_13); -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_221 = x_218; -} else { - lean_dec_ref(x_218); - x_221 = lean_box(0); -} -x_222 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_222, 0, x_219); -lean_ctor_set(x_222, 1, x_12); -if (lean_is_scalar(x_221)) { - x_223 = lean_alloc_ctor(0, 2, 0); -} else { - x_223 = x_221; -} -lean_ctor_set(x_223, 0, x_222); -lean_ctor_set(x_223, 1, x_220); -return x_223; -} -case 1: -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; lean_object* x_233; uint8_t x_234; -lean_dec_ref(x_216); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_224 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_225 = lean_ctor_get(x_224, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); -lean_inc(x_226); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_227 = x_224; -} else { - lean_dec_ref(x_224); - x_227 = lean_box(0); -} -x_233 = lean_ctor_get(x_11, 0); -lean_inc_ref(x_233); -lean_dec_ref(x_11); -x_234 = lean_ctor_get_uint8(x_233, sizeof(void*)*2); -lean_dec_ref(x_233); -if (x_234 == 0) -{ -lean_dec(x_225); -x_228 = x_234; -goto block_232; -} -else -{ -uint8_t x_235; -x_235 = lean_unbox(x_225); -lean_dec(x_225); -x_228 = x_235; -goto block_232; -} -block_232: -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_229 = lean_box(x_228); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_12); -if (lean_is_scalar(x_227)) { - x_231 = lean_alloc_ctor(0, 2, 0); -} else { - x_231 = x_227; -} -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_231, 1, x_226); -return x_231; -} -} -default: -{ -lean_object* x_236; lean_object* x_237; uint64_t x_238; lean_object* x_239; uint64_t x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; uint8_t x_279; -x_236 = lean_ctor_get(x_5, 0); -lean_inc_ref(x_236); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - x_237 = x_5; -} else { - lean_dec_ref(x_5); - x_237 = lean_box(0); -} -x_238 = lean_ctor_get_uint64(x_236, sizeof(void*)*3); -x_239 = lean_ctor_get(x_236, 2); -lean_inc_ref(x_239); -lean_dec_ref(x_236); -x_240 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); -x_241 = lean_alloc_closure((void*)(l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed), 9, 0); -x_274 = lean_box_uint64(x_238); -if (lean_is_scalar(x_237)) { - x_275 = lean_alloc_ctor(1, 1, 0); -} else { - x_275 = x_237; - lean_ctor_set_tag(x_275, 1); -} -lean_ctor_set(x_275, 0, x_274); -x_276 = l_Lake_checkHashUpToDate___redArg___closed__0; -x_277 = lean_box_uint64(x_240); -x_278 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_278, 0, x_277); -x_279 = l_Option_instBEq_beq___redArg(x_276, x_278, x_275); -if (x_279 == 0) -{ -lean_object* x_280; uint8_t x_281; -lean_dec_ref(x_1); -x_280 = lean_ctor_get(x_11, 0); -x_281 = lean_ctor_get_uint8(x_280, sizeof(void*)*2); -if (x_281 == 0) -{ -lean_dec_ref(x_241); -lean_dec_ref(x_239); -lean_dec_ref(x_216); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_3); -lean_dec_ref(x_2); -x_14 = x_281; -x_15 = x_12; -x_16 = x_13; -goto block_20; -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; -x_282 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec_ref(x_282); -x_285 = lean_unbox(x_283); -lean_dec(x_283); -x_242 = x_285; -x_243 = x_12; -x_244 = x_284; -goto block_273; -} -} -else -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; -lean_dec_ref(x_2); -x_286 = lean_apply_2(x_1, x_3, x_13); -x_287 = lean_ctor_get(x_286, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_286, 1); -lean_inc(x_288); -lean_dec_ref(x_286); -x_289 = lean_unbox(x_287); -lean_dec(x_287); -x_242 = x_289; -x_243 = x_12; -x_244 = x_288; -goto block_273; -} -block_273: -{ -if (x_242 == 0) -{ -lean_dec_ref(x_241); -lean_dec_ref(x_239); -lean_dec_ref(x_216); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_14 = x_242; -x_15 = x_243; -x_16 = x_244; -goto block_20; -} -else -{ -lean_object* x_245; uint8_t x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; uint8_t x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; -x_245 = lean_ctor_get(x_243, 0); -lean_inc_ref(x_245); -x_246 = lean_ctor_get_uint8(x_243, sizeof(void*)*3); -x_247 = lean_ctor_get(x_243, 1); -lean_inc_ref(x_247); -x_248 = lean_ctor_get(x_243, 2); -lean_inc(x_248); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - lean_ctor_release(x_243, 2); - x_249 = x_243; -} else { - lean_dec_ref(x_243); - x_249 = lean_box(0); -} -x_250 = l_Lake_EquipT_instMonad___redArg(x_216); -x_251 = 1; -x_252 = l_Lake_JobAction_merge(x_246, x_251); -if (lean_is_scalar(x_249)) { - x_253 = lean_alloc_ctor(0, 3, 1); -} else { - x_253 = x_249; -} -lean_ctor_set(x_253, 0, x_245); -lean_ctor_set(x_253, 1, x_247); -lean_ctor_set(x_253, 2, x_248); -lean_ctor_set_uint8(x_253, sizeof(void*)*3, x_252); -x_254 = lean_unsigned_to_nat(0u); -x_255 = lean_array_get_size(x_239); -x_256 = lean_nat_dec_lt(x_254, x_255); -if (x_256 == 0) -{ -lean_dec(x_255); -lean_dec_ref(x_250); -lean_dec_ref(x_241); -lean_dec_ref(x_239); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_242; -x_22 = x_253; -x_23 = x_244; -goto block_27; -} -else -{ -uint8_t x_257; -x_257 = lean_nat_dec_le(x_255, x_255); -if (x_257 == 0) -{ -lean_dec(x_255); -lean_dec_ref(x_250); -lean_dec_ref(x_241); -lean_dec_ref(x_239); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_242; -x_22 = x_253; -x_23 = x_244; -goto block_27; -} -else -{ -lean_object* x_258; size_t x_259; size_t x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; -x_258 = lean_box(0); -x_259 = 0; -x_260 = lean_usize_of_nat(x_255); -lean_dec(x_255); -x_261 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_250, x_241, x_239, x_259, x_260, x_258); -x_262 = lean_apply_7(x_261, x_7, x_8, x_9, x_10, x_11, x_253, x_244); -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -if (lean_obj_tag(x_263) == 0) -{ -lean_object* x_264; lean_object* x_265; -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec_ref(x_262); -x_265 = lean_ctor_get(x_263, 1); -lean_inc(x_265); -lean_dec_ref(x_263); -x_21 = x_242; -x_22 = x_265; -x_23 = x_264; -goto block_27; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_266 = lean_ctor_get(x_262, 1); -lean_inc(x_266); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_267 = x_262; -} else { - lean_dec_ref(x_262); - x_267 = lean_box(0); -} -x_268 = lean_ctor_get(x_263, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_263, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_263)) { - lean_ctor_release(x_263, 0); - lean_ctor_release(x_263, 1); - x_270 = x_263; -} else { - lean_dec_ref(x_263); - x_270 = lean_box(0); -} -if (lean_is_scalar(x_270)) { - x_271 = lean_alloc_ctor(1, 2, 0); -} else { - x_271 = x_270; -} -lean_ctor_set(x_271, 0, x_268); -lean_ctor_set(x_271, 1, x_269); -if (lean_is_scalar(x_267)) { - x_272 = lean_alloc_ctor(0, 2, 0); -} else { - x_272 = x_267; -} -lean_ctor_set(x_272, 0, x_271); -lean_ctor_set(x_272, 1, x_266); -return x_272; -} -} -} -} -} -} -} -} -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_290 = lean_ctor_get(x_28, 0); -x_291 = lean_ctor_get(x_28, 1); -lean_inc(x_291); -lean_inc(x_290); -lean_dec(x_28); -x_292 = lean_ctor_get(x_290, 0); -lean_inc_ref(x_292); -x_293 = lean_ctor_get(x_290, 1); -lean_inc(x_293); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - lean_ctor_release(x_290, 2); - lean_ctor_release(x_290, 3); - lean_ctor_release(x_290, 4); - x_294 = x_290; -} else { - lean_dec_ref(x_290); - x_294 = lean_box(0); -} -lean_inc(x_291); -lean_inc(x_293); -x_295 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__1), 7, 2); -lean_closure_set(x_295, 0, x_293); -lean_closure_set(x_295, 1, x_291); -lean_inc(x_291); -lean_inc(x_293); -x_296 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__3), 7, 2); -lean_closure_set(x_296, 0, x_293); -lean_closure_set(x_296, 1, x_291); -lean_inc_ref(x_295); -lean_inc(x_293); -x_297 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__5), 7, 2); -lean_closure_set(x_297, 0, x_293); -lean_closure_set(x_297, 1, x_295); -lean_inc(x_293); -lean_inc_ref(x_292); -x_298 = lean_alloc_closure((void*)(l_Lake_EStateT_instMonad___redArg___lam__9), 8, 3); -lean_closure_set(x_298, 0, x_292); -lean_closure_set(x_298, 1, x_293); -lean_closure_set(x_298, 2, x_291); -x_299 = l_Lake_EStateT_instFunctor___redArg(x_292); -x_300 = lean_alloc_closure((void*)(l_Lake_EStateT_instPure___redArg___lam__0), 4, 1); -lean_closure_set(x_300, 0, x_293); -if (lean_is_scalar(x_294)) { - x_301 = lean_alloc_ctor(0, 5, 0); -} else { - x_301 = x_294; -} -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set(x_301, 1, x_300); -lean_ctor_set(x_301, 2, x_298); -lean_ctor_set(x_301, 3, x_297); -lean_ctor_set(x_301, 4, x_296); -x_302 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_295); -x_303 = l_ReaderT_instMonad___redArg(x_302); -x_304 = l_ReaderT_instMonad___redArg(x_303); -x_305 = l_ReaderT_instMonad___redArg(x_304); -x_306 = l_ReaderT_instMonad___redArg(x_305); -switch (lean_obj_tag(x_5)) { -case 0: -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; -lean_dec_ref(x_306); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_307 = lean_ctor_get(x_4, 2); -x_308 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_307, x_13); -x_309 = lean_ctor_get(x_308, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_308, 1); -lean_inc(x_310); -if (lean_is_exclusive(x_308)) { - lean_ctor_release(x_308, 0); - lean_ctor_release(x_308, 1); - x_311 = x_308; -} else { - lean_dec_ref(x_308); - x_311 = lean_box(0); -} -x_312 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_312, 0, x_309); -lean_ctor_set(x_312, 1, x_12); -if (lean_is_scalar(x_311)) { - x_313 = lean_alloc_ctor(0, 2, 0); -} else { - x_313 = x_311; -} -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_310); -return x_313; -} -case 1: -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; uint8_t x_318; lean_object* x_323; uint8_t x_324; -lean_dec_ref(x_306); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_1); -x_314 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -if (lean_is_exclusive(x_314)) { - lean_ctor_release(x_314, 0); - lean_ctor_release(x_314, 1); - x_317 = x_314; -} else { - lean_dec_ref(x_314); - x_317 = lean_box(0); -} -x_323 = lean_ctor_get(x_11, 0); -lean_inc_ref(x_323); -lean_dec_ref(x_11); -x_324 = lean_ctor_get_uint8(x_323, sizeof(void*)*2); -lean_dec_ref(x_323); -if (x_324 == 0) -{ -lean_dec(x_315); -x_318 = x_324; -goto block_322; -} -else -{ -uint8_t x_325; -x_325 = lean_unbox(x_315); -lean_dec(x_315); -x_318 = x_325; -goto block_322; -} -block_322: -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_box(x_318); -x_320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_12); -if (lean_is_scalar(x_317)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_317; -} -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_316); -return x_321; -} -} -default: -{ -lean_object* x_326; lean_object* x_327; uint64_t x_328; lean_object* x_329; uint64_t x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; -x_326 = lean_ctor_get(x_5, 0); -lean_inc_ref(x_326); -if (lean_is_exclusive(x_5)) { - lean_ctor_release(x_5, 0); - x_327 = x_5; -} else { - lean_dec_ref(x_5); - x_327 = lean_box(0); -} -x_328 = lean_ctor_get_uint64(x_326, sizeof(void*)*3); -x_329 = lean_ctor_get(x_326, 2); -lean_inc_ref(x_329); -lean_dec_ref(x_326); -x_330 = lean_ctor_get_uint64(x_4, sizeof(void*)*3); -x_331 = lean_alloc_closure((void*)(l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed), 9, 0); -x_364 = lean_box_uint64(x_328); -if (lean_is_scalar(x_327)) { - x_365 = lean_alloc_ctor(1, 1, 0); -} else { - x_365 = x_327; - lean_ctor_set_tag(x_365, 1); -} -lean_ctor_set(x_365, 0, x_364); -x_366 = l_Lake_checkHashUpToDate___redArg___closed__0; -x_367 = lean_box_uint64(x_330); -x_368 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_368, 0, x_367); -x_369 = l_Option_instBEq_beq___redArg(x_366, x_368, x_365); -if (x_369 == 0) -{ -lean_object* x_370; uint8_t x_371; -lean_dec_ref(x_1); -x_370 = lean_ctor_get(x_11, 0); -x_371 = lean_ctor_get_uint8(x_370, sizeof(void*)*2); -if (x_371 == 0) -{ -lean_dec_ref(x_331); -lean_dec_ref(x_329); -lean_dec_ref(x_306); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -lean_dec(x_3); -lean_dec_ref(x_2); -x_14 = x_371; -x_15 = x_12; -x_16 = x_13; -goto block_20; -} -else -{ -lean_object* x_372; lean_object* x_373; lean_object* x_374; uint8_t x_375; -x_372 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); -x_373 = lean_ctor_get(x_372, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); -lean_inc(x_374); -lean_dec_ref(x_372); -x_375 = lean_unbox(x_373); -lean_dec(x_373); -x_332 = x_375; -x_333 = x_12; -x_334 = x_374; -goto block_363; -} -} -else -{ -lean_object* x_376; lean_object* x_377; lean_object* x_378; uint8_t x_379; -lean_dec_ref(x_2); -x_376 = lean_apply_2(x_1, x_3, x_13); -x_377 = lean_ctor_get(x_376, 0); -lean_inc(x_377); -x_378 = lean_ctor_get(x_376, 1); -lean_inc(x_378); -lean_dec_ref(x_376); -x_379 = lean_unbox(x_377); -lean_dec(x_377); -x_332 = x_379; -x_333 = x_12; -x_334 = x_378; -goto block_363; -} -block_363: -{ -if (x_332 == 0) -{ -lean_dec_ref(x_331); -lean_dec_ref(x_329); -lean_dec_ref(x_306); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_14 = x_332; -x_15 = x_333; -x_16 = x_334; -goto block_20; -} -else -{ -lean_object* x_335; uint8_t x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; uint8_t x_341; uint8_t x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; -x_335 = lean_ctor_get(x_333, 0); -lean_inc_ref(x_335); -x_336 = lean_ctor_get_uint8(x_333, sizeof(void*)*3); -x_337 = lean_ctor_get(x_333, 1); -lean_inc_ref(x_337); -x_338 = lean_ctor_get(x_333, 2); -lean_inc(x_338); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - lean_ctor_release(x_333, 2); - x_339 = x_333; -} else { - lean_dec_ref(x_333); - x_339 = lean_box(0); -} -x_340 = l_Lake_EquipT_instMonad___redArg(x_306); -x_341 = 1; -x_342 = l_Lake_JobAction_merge(x_336, x_341); -if (lean_is_scalar(x_339)) { - x_343 = lean_alloc_ctor(0, 3, 1); -} else { - x_343 = x_339; -} -lean_ctor_set(x_343, 0, x_335); -lean_ctor_set(x_343, 1, x_337); -lean_ctor_set(x_343, 2, x_338); -lean_ctor_set_uint8(x_343, sizeof(void*)*3, x_342); -x_344 = lean_unsigned_to_nat(0u); -x_345 = lean_array_get_size(x_329); -x_346 = lean_nat_dec_lt(x_344, x_345); -if (x_346 == 0) -{ -lean_dec(x_345); -lean_dec_ref(x_340); -lean_dec_ref(x_331); -lean_dec_ref(x_329); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_332; -x_22 = x_343; -x_23 = x_334; -goto block_27; -} -else -{ -uint8_t x_347; -x_347 = lean_nat_dec_le(x_345, x_345); -if (x_347 == 0) -{ -lean_dec(x_345); -lean_dec_ref(x_340); -lean_dec_ref(x_331); -lean_dec_ref(x_329); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec_ref(x_7); -x_21 = x_332; -x_22 = x_343; -x_23 = x_334; -goto block_27; -} -else -{ -lean_object* x_348; size_t x_349; size_t x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_348 = lean_box(0); -x_349 = 0; -x_350 = lean_usize_of_nat(x_345); -lean_dec(x_345); -x_351 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold(lean_box(0), lean_box(0), lean_box(0), x_340, x_331, x_329, x_349, x_350, x_348); -x_352 = lean_apply_7(x_351, x_7, x_8, x_9, x_10, x_11, x_343, x_334); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -if (lean_obj_tag(x_353) == 0) -{ -lean_object* x_354; lean_object* x_355; -x_354 = lean_ctor_get(x_352, 1); -lean_inc(x_354); -lean_dec_ref(x_352); -x_355 = lean_ctor_get(x_353, 1); -lean_inc(x_355); -lean_dec_ref(x_353); -x_21 = x_332; -x_22 = x_355; -x_23 = x_354; -goto block_27; -} -else -{ -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_356 = lean_ctor_get(x_352, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_352)) { - lean_ctor_release(x_352, 0); - lean_ctor_release(x_352, 1); - x_357 = x_352; -} else { - lean_dec_ref(x_352); - x_357 = lean_box(0); -} -x_358 = lean_ctor_get(x_353, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_353, 1); -lean_inc(x_359); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - x_360 = x_353; -} else { - lean_dec_ref(x_353); - x_360 = lean_box(0); -} -if (lean_is_scalar(x_360)) { - x_361 = lean_alloc_ctor(1, 2, 0); -} else { - x_361 = x_360; -} -lean_ctor_set(x_361, 0, x_358); -lean_ctor_set(x_361, 1, x_359); -if (lean_is_scalar(x_357)) { - x_362 = lean_alloc_ctor(0, 2, 0); -} else { - x_362 = x_357; -} -lean_ctor_set(x_362, 0, x_361); -lean_ctor_set(x_362, 1, x_356); -return x_362; -} -} -} -} -} -} -} -} -block_20: -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_box(x_14); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_15); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -return x_19; -} -block_27: -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_box(x_21); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_22); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_23); -return x_26; -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; -x_15 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_15; -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lake_SavedTrace_replayIfUpToDate___redArg___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec_ref(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec_ref(x_3); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -lean_object* x_14; -x_14 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; -x_15 = l_Lake_SavedTrace_replayIfUpToDate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -return x_15; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -6838,277 +5977,63 @@ return x_28; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_1, x_2, x_3, x_4, x_10, x_11); +x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(x_1, x_2, x_3, x_4, x_10, x_11); return x_12; } } -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_32; uint64_t x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; -x_32 = lean_ctor_get(x_2, 0); -x_33 = lean_ctor_get_uint64(x_32, sizeof(void*)*3); -x_34 = lean_ctor_get(x_32, 2); -x_35 = lean_ctor_get_uint8(x_32, sizeof(void*)*3 + 8); -x_36 = lean_uint64_dec_eq(x_33, x_1); -if (x_36 == 0) -{ -x_10 = x_8; -x_11 = x_9; -goto block_31; -} -else -{ -if (x_35 == 0) -{ -goto block_76; -} -else -{ -lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_77 = lean_array_get_size(x_34); -x_78 = lean_unsigned_to_nat(0u); -x_79 = lean_nat_dec_eq(x_77, x_78); -lean_dec(x_77); -if (x_79 == 0) -{ -goto block_76; -} -else -{ -uint8_t x_80; -x_80 = !lean_is_exclusive(x_8); -if (x_80 == 0) -{ -uint8_t x_81; uint8_t x_82; uint8_t x_83; -x_81 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_82 = 2; -x_83 = l_Lake_JobAction_merge(x_81, x_82); -lean_ctor_set_uint8(x_8, sizeof(void*)*3, x_83); -x_37 = x_8; -x_38 = x_9; -goto block_42; -} -else -{ -lean_object* x_84; uint8_t x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; uint8_t x_89; lean_object* x_90; -x_84 = lean_ctor_get(x_8, 0); -x_85 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_86 = lean_ctor_get(x_8, 1); -x_87 = lean_ctor_get(x_8, 2); -lean_inc(x_87); -lean_inc(x_86); -lean_inc(x_84); -lean_dec(x_8); -x_88 = 2; -x_89 = l_Lake_JobAction_merge(x_85, x_88); -x_90 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_90, 0, x_84); -lean_ctor_set(x_90, 1, x_86); -lean_ctor_set(x_90, 2, x_87); -lean_ctor_set_uint8(x_90, sizeof(void*)*3, x_89); -x_37 = x_90; -x_38 = x_9; -goto block_42; -} -} -} -} -block_42: -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_box(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; -} -block_76: -{ -uint8_t x_43; -x_43 = !lean_is_exclusive(x_8); -if (x_43 == 0) -{ -uint8_t x_44; uint8_t x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_44 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_45 = 1; -x_46 = l_Lake_JobAction_merge(x_44, x_45); -lean_ctor_set_uint8(x_8, sizeof(void*)*3, x_46); -x_47 = lean_unsigned_to_nat(0u); -x_48 = lean_array_get_size(x_34); -x_49 = lean_nat_dec_lt(x_47, x_48); -if (x_49 == 0) -{ -lean_dec(x_48); -x_37 = x_8; -x_38 = x_9; -goto block_42; -} -else -{ -uint8_t x_50; -x_50 = lean_nat_dec_le(x_48, x_48); -if (x_50 == 0) -{ -lean_dec(x_48); -x_37 = x_8; -x_38 = x_9; -goto block_42; -} -else -{ -lean_object* x_51; size_t x_52; size_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_51 = lean_box(0); -x_52 = 0; -x_53 = lean_usize_of_nat(x_48); -lean_dec(x_48); -x_54 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_34, x_52, x_53, x_51, x_8, x_9); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec_ref(x_54); -x_57 = lean_ctor_get(x_55, 1); -lean_inc(x_57); -lean_dec(x_55); -x_37 = x_57; -x_38 = x_56; -goto block_42; -} -} -} -else -{ -lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_58 = lean_ctor_get(x_8, 0); -x_59 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_60 = lean_ctor_get(x_8, 1); -x_61 = lean_ctor_get(x_8, 2); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_58); -lean_dec(x_8); -x_62 = 1; -x_63 = l_Lake_JobAction_merge(x_59, x_62); -x_64 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_64, 0, x_58); -lean_ctor_set(x_64, 1, x_60); -lean_ctor_set(x_64, 2, x_61); -lean_ctor_set_uint8(x_64, sizeof(void*)*3, x_63); -x_65 = lean_unsigned_to_nat(0u); -x_66 = lean_array_get_size(x_34); -x_67 = lean_nat_dec_lt(x_65, x_66); -if (x_67 == 0) -{ -lean_dec(x_66); -x_37 = x_64; -x_38 = x_9; -goto block_42; -} -else -{ -uint8_t x_68; -x_68 = lean_nat_dec_le(x_66, x_66); -if (x_68 == 0) -{ -lean_dec(x_66); -x_37 = x_64; -x_38 = x_9; -goto block_42; -} -else -{ -lean_object* x_69; size_t x_70; size_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_69 = lean_box(0); -x_70 = 0; -x_71 = lean_usize_of_nat(x_66); -lean_dec(x_66); -x_72 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_34, x_70, x_71, x_69, x_64, x_9); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec_ref(x_72); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_37 = x_75; -x_38 = x_74; -goto block_42; -} -} -} -} -} -else -{ -x_10 = x_8; -x_11 = x_9; -goto block_31; -} -block_31: -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_unsigned_to_nat(0u); +x_10 = lean_array_get_size(x_1); +x_11 = lean_box(0); +x_12 = lean_nat_dec_lt(x_9, x_10); if (x_12 == 0) { -uint8_t x_13; uint8_t x_14; uint8_t x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_13 = lean_ctor_get_uint8(x_10, sizeof(void*)*3); -x_14 = 2; -x_15 = l_Lake_JobAction_merge(x_13, x_14); -lean_ctor_set_uint8(x_10, sizeof(void*)*3, x_15); -x_16 = 0; -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_10); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_11); -return x_19; +lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_11); +lean_ctor_set(x_13, 1, x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_8); +return x_14; } else { -lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_20 = lean_ctor_get(x_10, 0); -x_21 = lean_ctor_get_uint8(x_10, sizeof(void*)*3); -x_22 = lean_ctor_get(x_10, 1); -x_23 = lean_ctor_get(x_10, 2); -lean_inc(x_23); -lean_inc(x_22); -lean_inc(x_20); +uint8_t x_15; +x_15 = lean_nat_dec_le(x_10, x_10); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_dec(x_10); -x_24 = 2; -x_25 = l_Lake_JobAction_merge(x_21, x_24); -x_26 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_26, 0, x_20); -lean_ctor_set(x_26, 1, x_22); -lean_ctor_set(x_26, 2, x_23); -lean_ctor_set_uint8(x_26, sizeof(void*)*3, x_25); -x_27 = 0; -x_28 = lean_box(x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_26); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_11); -return x_30; +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_7); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_8); +return x_17; +} +else +{ +size_t x_18; size_t x_19; lean_object* x_20; +x_18 = 0; +x_19 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_20 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(x_1, x_18, x_19, x_11, x_7, x_8); +return x_20; } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -7116,12 +6041,12 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec_ref(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { size_t x_12; size_t x_13; lean_object* x_14; @@ -7129,7 +6054,7 @@ x_12 = lean_unbox_usize(x_2); lean_dec(x_2); x_13 = lean_unbox_usize(x_3); lean_dec(x_3); -x_14 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_9); lean_dec(x_8); lean_dec(x_7); @@ -7139,6 +6064,981 @@ lean_dec_ref(x_1); return x_14; } } +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec_ref(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +if (lean_obj_tag(x_5) == 2) +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_5); +if (x_14 == 0) +{ +lean_object* x_15; uint64_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_31; uint8_t x_32; uint8_t x_33; +x_15 = lean_ctor_get(x_5, 0); +x_16 = lean_ctor_get_uint64(x_15, sizeof(void*)*3); +x_17 = lean_ctor_get(x_15, 2); +lean_inc_ref(x_17); +lean_dec_ref(x_15); +x_18 = lean_box_uint64(x_16); +lean_ctor_set_tag(x_5, 1); +lean_ctor_set(x_5, 0, x_18); +x_19 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_11, x_12, x_13); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +if (lean_is_exclusive(x_19)) { + lean_ctor_release(x_19, 0); + lean_ctor_release(x_19, 1); + x_22 = x_19; +} else { + lean_dec_ref(x_19); + x_22 = lean_box(0); +} +x_23 = lean_ctor_get(x_20, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_20, 1); +lean_inc(x_24); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + x_25 = x_20; +} else { + lean_dec_ref(x_20); + x_25 = lean_box(0); +} +x_31 = 0; +x_32 = lean_unbox(x_23); +x_33 = l_Lake_instDecidableEqOutputStatus(x_32, x_31); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = !lean_is_exclusive(x_24); +if (x_34 == 0) +{ +uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_35 = lean_ctor_get_uint8(x_24, sizeof(void*)*3); +x_36 = 1; +x_37 = l_Lake_JobAction_merge(x_35, x_36); +lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_37); +x_38 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_17, x_7, x_8, x_9, x_10, x_11, x_24, x_21); +lean_dec_ref(x_17); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +lean_dec_ref(x_38); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_26 = x_41; +x_27 = x_40; +goto block_30; +} +else +{ +lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_42 = lean_ctor_get(x_24, 0); +x_43 = lean_ctor_get_uint8(x_24, sizeof(void*)*3); +x_44 = lean_ctor_get(x_24, 1); +x_45 = lean_ctor_get(x_24, 2); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_42); +lean_dec(x_24); +x_46 = 1; +x_47 = l_Lake_JobAction_merge(x_43, x_46); +x_48 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_48, 0, x_42); +lean_ctor_set(x_48, 1, x_44); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*3, x_47); +x_49 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_17, x_7, x_8, x_9, x_10, x_11, x_48, x_21); +lean_dec_ref(x_17); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec_ref(x_49); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_26 = x_52; +x_27 = x_51; +goto block_30; +} +} +else +{ +lean_dec_ref(x_17); +x_26 = x_24; +x_27 = x_21; +goto block_30; +} +block_30: +{ +lean_object* x_28; lean_object* x_29; +if (lean_is_scalar(x_25)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_25; +} +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_28, 1, x_26); +if (lean_is_scalar(x_22)) { + x_29 = lean_alloc_ctor(0, 2, 0); +} else { + x_29 = x_22; +} +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +lean_object* x_53; uint64_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_70; uint8_t x_71; uint8_t x_72; +x_53 = lean_ctor_get(x_5, 0); +lean_inc(x_53); +lean_dec(x_5); +x_54 = lean_ctor_get_uint64(x_53, sizeof(void*)*3); +x_55 = lean_ctor_get(x_53, 2); +lean_inc_ref(x_55); +lean_dec_ref(x_53); +x_56 = lean_box_uint64(x_54); +x_57 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_57, 0, x_56); +x_58 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_57, x_6, x_11, x_12, x_13); +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +if (lean_is_exclusive(x_58)) { + lean_ctor_release(x_58, 0); + lean_ctor_release(x_58, 1); + x_61 = x_58; +} else { + lean_dec_ref(x_58); + x_61 = lean_box(0); +} +x_62 = lean_ctor_get(x_59, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_64 = x_59; +} else { + lean_dec_ref(x_59); + x_64 = lean_box(0); +} +x_70 = 0; +x_71 = lean_unbox(x_62); +x_72 = l_Lake_instDecidableEqOutputStatus(x_71, x_70); +if (x_72 == 0) +{ +lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_73 = lean_ctor_get(x_63, 0); +lean_inc_ref(x_73); +x_74 = lean_ctor_get_uint8(x_63, sizeof(void*)*3); +x_75 = lean_ctor_get(x_63, 1); +lean_inc_ref(x_75); +x_76 = lean_ctor_get(x_63, 2); +lean_inc(x_76); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + lean_ctor_release(x_63, 2); + x_77 = x_63; +} else { + lean_dec_ref(x_63); + x_77 = lean_box(0); +} +x_78 = 1; +x_79 = l_Lake_JobAction_merge(x_74, x_78); +if (lean_is_scalar(x_77)) { + x_80 = lean_alloc_ctor(0, 3, 1); +} else { + x_80 = x_77; +} +lean_ctor_set(x_80, 0, x_73); +lean_ctor_set(x_80, 1, x_75); +lean_ctor_set(x_80, 2, x_76); +lean_ctor_set_uint8(x_80, sizeof(void*)*3, x_79); +x_81 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_55, x_7, x_8, x_9, x_10, x_11, x_80, x_60); +lean_dec_ref(x_55); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); +lean_dec_ref(x_81); +x_84 = lean_ctor_get(x_82, 1); +lean_inc(x_84); +lean_dec(x_82); +x_65 = x_84; +x_66 = x_83; +goto block_69; +} +else +{ +lean_dec_ref(x_55); +x_65 = x_63; +x_66 = x_60; +goto block_69; +} +block_69: +{ +lean_object* x_67; lean_object* x_68; +if (lean_is_scalar(x_64)) { + x_67 = lean_alloc_ctor(0, 2, 0); +} else { + x_67 = x_64; +} +lean_ctor_set(x_67, 0, x_62); +lean_ctor_set(x_67, 1, x_65); +if (lean_is_scalar(x_61)) { + x_68 = lean_alloc_ctor(0, 2, 0); +} else { + x_68 = x_61; +} +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +} +else +{ +lean_object* x_85; uint8_t x_86; +lean_dec(x_5); +lean_dec_ref(x_1); +x_85 = lean_ctor_get(x_11, 0); +x_86 = lean_ctor_get_uint8(x_85, sizeof(void*)*2); +if (x_86 == 0) +{ +uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_3); +lean_dec_ref(x_2); +x_87 = 0; +x_88 = lean_box(x_87); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_12); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_13); +return x_90; +} +else +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; +x_91 = l_Lake_MTime_checkUpToDate___redArg(x_2, x_3, x_6, x_13); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_unbox(x_92); +lean_dec(x_92); +if (x_93 == 0) +{ +uint8_t x_94; +x_94 = !lean_is_exclusive(x_91); +if (x_94 == 0) +{ +lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_ctor_get(x_91, 0); +lean_dec(x_95); +x_96 = 0; +x_97 = lean_box(x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_12); +lean_ctor_set(x_91, 0, x_98); +return x_91; +} +else +{ +lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_ctor_get(x_91, 1); +lean_inc(x_99); +lean_dec(x_91); +x_100 = 0; +x_101 = lean_box(x_100); +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_101); +lean_ctor_set(x_102, 1, x_12); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_99); +return x_103; +} +} +else +{ +uint8_t x_104; +x_104 = !lean_is_exclusive(x_91); +if (x_104 == 0) +{ +lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_91, 0); +lean_dec(x_105); +x_106 = 1; +x_107 = lean_box(x_106); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_12); +lean_ctor_set(x_91, 0, x_108); +return x_91; +} +else +{ +lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_109 = lean_ctor_get(x_91, 1); +lean_inc(x_109); +lean_dec(x_91); +x_110 = 1; +x_111 = lean_box(x_110); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_12); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_109); +return x_113; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lake_SavedTrace_replayIfUpToDate_x27(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; uint8_t x_15; +x_14 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; +x_18 = lean_ctor_get(x_16, 0); +x_19 = 0; +x_20 = lean_unbox(x_18); +lean_dec(x_18); +x_21 = l_Lake_instDecidableEqOutputStatus(x_20, x_19); +if (x_21 == 0) +{ +uint8_t x_22; lean_object* x_23; +x_22 = 1; +x_23 = lean_box(x_22); +lean_ctor_set(x_16, 0, x_23); +return x_14; +} +else +{ +uint8_t x_24; lean_object* x_25; +x_24 = 0; +x_25 = lean_box(x_24); +lean_ctor_set(x_16, 0, x_25); +return x_14; +} +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_16); +x_28 = 0; +x_29 = lean_unbox(x_26); +lean_dec(x_26); +x_30 = l_Lake_instDecidableEqOutputStatus(x_29, x_28); +if (x_30 == 0) +{ +uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_31 = 1; +x_32 = lean_box(x_31); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_27); +lean_ctor_set(x_14, 0, x_33); +return x_14; +} +else +{ +uint8_t x_34; lean_object* x_35; lean_object* x_36; +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_27); +lean_ctor_set(x_14, 0, x_36); +return x_14; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; +x_37 = lean_ctor_get(x_14, 0); +x_38 = lean_ctor_get(x_14, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_14); +x_39 = lean_ctor_get(x_37, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_41 = x_37; +} else { + lean_dec_ref(x_37); + x_41 = lean_box(0); +} +x_42 = 0; +x_43 = lean_unbox(x_39); +lean_dec(x_39); +x_44 = l_Lake_instDecidableEqOutputStatus(x_43, x_42); +if (x_44 == 0) +{ +uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = 1; +x_46 = lean_box(x_45); +if (lean_is_scalar(x_41)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_41; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_40); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_38); +return x_48; +} +else +{ +uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_49 = 0; +x_50 = lean_box(x_49); +if (lean_is_scalar(x_41)) { + x_51 = lean_alloc_ctor(0, 2, 0); +} else { + x_51 = x_41; +} +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_40); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_38); +return x_52; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; uint8_t x_16; +x_15 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_15, 0); +x_18 = !lean_is_exclusive(x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; +x_19 = lean_ctor_get(x_17, 0); +x_20 = 0; +x_21 = lean_unbox(x_19); +lean_dec(x_19); +x_22 = l_Lake_instDecidableEqOutputStatus(x_21, x_20); +if (x_22 == 0) +{ +uint8_t x_23; lean_object* x_24; +x_23 = 1; +x_24 = lean_box(x_23); +lean_ctor_set(x_17, 0, x_24); +return x_15; +} +else +{ +uint8_t x_25; lean_object* x_26; +x_25 = 0; +x_26 = lean_box(x_25); +lean_ctor_set(x_17, 0, x_26); +return x_15; +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; +x_27 = lean_ctor_get(x_17, 0); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_17); +x_29 = 0; +x_30 = lean_unbox(x_27); +lean_dec(x_27); +x_31 = l_Lake_instDecidableEqOutputStatus(x_30, x_29); +if (x_31 == 0) +{ +uint8_t x_32; lean_object* x_33; lean_object* x_34; +x_32 = 1; +x_33 = lean_box(x_32); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_28); +lean_ctor_set(x_15, 0, x_34); +return x_15; +} +else +{ +uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_35 = 0; +x_36 = lean_box(x_35); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_28); +lean_ctor_set(x_15, 0, x_37); +return x_15; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; +x_38 = lean_ctor_get(x_15, 0); +x_39 = lean_ctor_get(x_15, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_15); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_42 = x_38; +} else { + lean_dec_ref(x_38); + x_42 = lean_box(0); +} +x_43 = 0; +x_44 = lean_unbox(x_40); +lean_dec(x_40); +x_45 = l_Lake_instDecidableEqOutputStatus(x_44, x_43); +if (x_45 == 0) +{ +uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = 1; +x_47 = lean_box(x_46); +if (lean_is_scalar(x_42)) { + x_48 = lean_alloc_ctor(0, 2, 0); +} else { + x_48 = x_42; +} +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_41); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_39); +return x_49; +} +else +{ +uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_50 = 0; +x_51 = lean_box(x_50); +if (lean_is_scalar(x_42)) { + x_52 = lean_alloc_ctor(0, 2, 0); +} else { + x_52 = x_42; +} +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_41); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_39); +return x_53; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_4); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; +x_15 = l_Lake_SavedTrace_replayIfUpToDate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +if (lean_obj_tag(x_2) == 2) +{ +lean_object* x_27; uint64_t x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; +x_27 = lean_ctor_get(x_2, 0); +x_28 = lean_ctor_get_uint64(x_27, sizeof(void*)*3); +x_29 = lean_ctor_get(x_27, 2); +x_30 = lean_ctor_get_uint8(x_27, sizeof(void*)*3 + 8); +x_31 = lean_uint64_dec_eq(x_28, x_1); +if (x_31 == 0) +{ +x_5 = x_3; +x_6 = x_4; +goto block_26; +} +else +{ +if (x_30 == 0) +{ +goto block_71; +} +else +{ +lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_72 = lean_array_get_size(x_29); +x_73 = lean_unsigned_to_nat(0u); +x_74 = lean_nat_dec_eq(x_72, x_73); +lean_dec(x_72); +if (x_74 == 0) +{ +goto block_71; +} +else +{ +uint8_t x_75; +x_75 = !lean_is_exclusive(x_3); +if (x_75 == 0) +{ +uint8_t x_76; uint8_t x_77; uint8_t x_78; +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_77 = 2; +x_78 = l_Lake_JobAction_merge(x_76, x_77); +lean_ctor_set_uint8(x_3, sizeof(void*)*3, x_78); +x_32 = x_3; +x_33 = x_4; +goto block_37; +} +else +{ +lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; uint8_t x_84; lean_object* x_85; +x_79 = lean_ctor_get(x_3, 0); +x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_81 = lean_ctor_get(x_3, 1); +x_82 = lean_ctor_get(x_3, 2); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_79); +lean_dec(x_3); +x_83 = 2; +x_84 = l_Lake_JobAction_merge(x_80, x_83); +x_85 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_85, 0, x_79); +lean_ctor_set(x_85, 1, x_81); +lean_ctor_set(x_85, 2, x_82); +lean_ctor_set_uint8(x_85, sizeof(void*)*3, x_84); +x_32 = x_85; +x_33 = x_4; +goto block_37; +} +} +} +} +block_37: +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_box(x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_33); +return x_36; +} +block_71: +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_3); +if (x_38 == 0) +{ +uint8_t x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_40 = 1; +x_41 = l_Lake_JobAction_merge(x_39, x_40); +lean_ctor_set_uint8(x_3, sizeof(void*)*3, x_41); +x_42 = lean_unsigned_to_nat(0u); +x_43 = lean_array_get_size(x_29); +x_44 = lean_nat_dec_lt(x_42, x_43); +if (x_44 == 0) +{ +lean_dec(x_43); +x_32 = x_3; +x_33 = x_4; +goto block_37; +} +else +{ +uint8_t x_45; +x_45 = lean_nat_dec_le(x_43, x_43); +if (x_45 == 0) +{ +lean_dec(x_43); +x_32 = x_3; +x_33 = x_4; +goto block_37; +} +else +{ +lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_46 = lean_box(0); +x_47 = 0; +x_48 = lean_usize_of_nat(x_43); +lean_dec(x_43); +x_49 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(x_29, x_47, x_48, x_46, x_3, x_4); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +x_51 = lean_ctor_get(x_49, 1); +lean_inc(x_51); +lean_dec_ref(x_49); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_32 = x_52; +x_33 = x_51; +goto block_37; +} +} +} +else +{ +lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_53 = lean_ctor_get(x_3, 0); +x_54 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_55 = lean_ctor_get(x_3, 1); +x_56 = lean_ctor_get(x_3, 2); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_53); +lean_dec(x_3); +x_57 = 1; +x_58 = l_Lake_JobAction_merge(x_54, x_57); +x_59 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_59, 0, x_53); +lean_ctor_set(x_59, 1, x_55); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set_uint8(x_59, sizeof(void*)*3, x_58); +x_60 = lean_unsigned_to_nat(0u); +x_61 = lean_array_get_size(x_29); +x_62 = lean_nat_dec_lt(x_60, x_61); +if (x_62 == 0) +{ +lean_dec(x_61); +x_32 = x_59; +x_33 = x_4; +goto block_37; +} +else +{ +uint8_t x_63; +x_63 = lean_nat_dec_le(x_61, x_61); +if (x_63 == 0) +{ +lean_dec(x_61); +x_32 = x_59; +x_33 = x_4; +goto block_37; +} +else +{ +lean_object* x_64; size_t x_65; size_t x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_64 = lean_box(0); +x_65 = 0; +x_66 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_67 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay_spec__0___redArg(x_29, x_65, x_66, x_64, x_59, x_4); +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_67, 1); +lean_inc(x_69); +lean_dec_ref(x_67); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_32 = x_70; +x_33 = x_69; +goto block_37; +} +} +} +} +} +else +{ +x_5 = x_3; +x_6 = x_4; +goto block_26; +} +block_26: +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_5); +if (x_7 == 0) +{ +uint8_t x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_8 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); +x_9 = 2; +x_10 = l_Lake_JobAction_merge(x_8, x_9); +lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_10); +x_11 = 0; +x_12 = lean_box(x_11); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_5); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_6); +return x_14; +} +else +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_15 = lean_ctor_get(x_5, 0); +x_16 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); +x_17 = lean_ctor_get(x_5, 1); +x_18 = lean_ctor_get(x_5, 2); +lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_15); +lean_dec(x_5); +x_19 = 2; +x_20 = l_Lake_JobAction_merge(x_16, x_19); +x_21 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_21, 0, x_15); +lean_ctor_set(x_21, 1, x_17); +lean_ctor_set(x_21, 2, x_18); +lean_ctor_set_uint8(x_21, sizeof(void*)*3, x_20); +x_22 = 0; +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_6); +return x_25; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate(uint64_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(x_1, x_2, x_8, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint64_t x_5; lean_object* x_6; +x_5 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_6 = l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(x_5, x_2, x_3, x_4); +lean_dec(x_2); +return x_6; +} +} LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -7986,7 +7886,7 @@ x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec_ref(x_18); @@ -7996,186 +7896,446 @@ x_22 = lean_ctor_get(x_19, 1); lean_inc(x_22); lean_dec_ref(x_19); lean_ctor_set(x_14, 0, x_22); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_23 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_20); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -if (lean_obj_tag(x_24) == 0) +x_23 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_20); +x_24 = !lean_is_exclusive(x_23); +if (x_24 == 0) { lean_object* x_25; uint8_t x_26; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_unbox(x_25); +x_25 = lean_ctor_get(x_23, 0); +x_26 = !lean_is_exclusive(x_25); if (x_26 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; uint8_t x_31; uint8_t x_32; x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec_ref(x_23); -x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec_ref(x_24); -x_29 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_30 = l_Lake_buildAction___redArg(x_29, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_28, x_27); -lean_dec_ref(x_5); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_30); +x_28 = lean_ctor_get(x_25, 0); +x_29 = lean_ctor_get(x_25, 1); +x_30 = 0; +x_31 = lean_unbox(x_28); +lean_dec(x_28); +x_32 = l_Lake_instDecidableEqOutputStatus(x_31, x_30); if (x_32 == 0) { -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_30, 0); -lean_dec(x_33); -x_34 = !lean_is_exclusive(x_31); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_31, 0); -lean_dec(x_35); -lean_ctor_set(x_31, 0, x_25); -return x_30; +uint8_t x_33; lean_object* x_34; +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +x_33 = 1; +x_34 = lean_box(x_33); +lean_ctor_set(x_25, 0, x_34); +return x_23; } else { -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_25); -lean_ctor_set(x_37, 1, x_36); -lean_ctor_set(x_30, 0, x_37); -return x_30; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_free_object(x_25); +lean_free_object(x_23); +x_35 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_36 = l_Lake_buildAction___redArg(x_35, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_29, x_27); +lean_dec_ref(x_5); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_36); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_36, 0); +lean_dec(x_39); +x_40 = !lean_is_exclusive(x_37); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_37, 0); +lean_dec(x_41); +x_42 = 0; +x_43 = lean_box(x_42); +lean_ctor_set(x_37, 0, x_43); +return x_36; +} +else +{ +lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_dec(x_37); +x_45 = 0; +x_46 = lean_box(x_45); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +lean_ctor_set(x_36, 0, x_47); +return x_36; } } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_38 = lean_ctor_get(x_30, 1); -lean_inc(x_38); -lean_dec(x_30); -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_40 = x_31; -} else { - lean_dec_ref(x_31); - x_40 = lean_box(0); -} -if (lean_is_scalar(x_40)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_40; -} -lean_ctor_set(x_41, 0, x_25); -lean_ctor_set(x_41, 1, x_39); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_38); -return x_42; -} -} -else -{ -uint8_t x_43; -lean_dec(x_25); -x_43 = !lean_is_exclusive(x_30); -if (x_43 == 0) -{ -lean_object* x_44; uint8_t x_45; -x_44 = lean_ctor_get(x_30, 0); -lean_dec(x_44); -x_45 = !lean_is_exclusive(x_31); -if (x_45 == 0) -{ -return x_30; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_31, 0); -x_47 = lean_ctor_get(x_31, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_31); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -lean_ctor_set(x_30, 0, x_48); -return x_30; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_49 = lean_ctor_get(x_30, 1); +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_48 = lean_ctor_get(x_36, 1); +lean_inc(x_48); +lean_dec(x_36); +x_49 = lean_ctor_get(x_37, 1); lean_inc(x_49); -lean_dec(x_30); -x_50 = lean_ctor_get(x_31, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_31, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_52 = x_31; +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_50 = x_37; } else { - lean_dec_ref(x_31); - x_52 = lean_box(0); + lean_dec_ref(x_37); + x_50 = lean_box(0); } -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(1, 2, 0); +x_51 = 0; +x_52 = lean_box(x_51); +if (lean_is_scalar(x_50)) { + x_53 = lean_alloc_ctor(0, 2, 0); } else { - x_53 = x_52; + x_53 = x_50; } -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_51); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_49); x_54 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_49); +lean_ctor_set(x_54, 1, x_48); return x_54; } } -} -else -{ -lean_dec(x_25); -lean_dec_ref(x_24); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_23; -} -} -else -{ -lean_dec_ref(x_24); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -return x_23; -} -} else { uint8_t x_55; +x_55 = !lean_is_exclusive(x_36); +if (x_55 == 0) +{ +lean_object* x_56; uint8_t x_57; +x_56 = lean_ctor_get(x_36, 0); +lean_dec(x_56); +x_57 = !lean_is_exclusive(x_37); +if (x_57 == 0) +{ +return x_36; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_37, 0); +x_59 = lean_ctor_get(x_37, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_37); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +lean_ctor_set(x_36, 0, x_60); +return x_36; +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_61 = lean_ctor_get(x_36, 1); +lean_inc(x_61); +lean_dec(x_36); +x_62 = lean_ctor_get(x_37, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_37, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_64 = x_37; +} else { + lean_dec_ref(x_37); + x_64 = lean_box(0); +} +if (lean_is_scalar(x_64)) { + x_65 = lean_alloc_ctor(1, 2, 0); +} else { + x_65 = x_64; +} +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_63); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_61); +return x_66; +} +} +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; +x_67 = lean_ctor_get(x_23, 1); +x_68 = lean_ctor_get(x_25, 0); +x_69 = lean_ctor_get(x_25, 1); +lean_inc(x_69); +lean_inc(x_68); +lean_dec(x_25); +x_70 = 0; +x_71 = lean_unbox(x_68); +lean_dec(x_68); +x_72 = l_Lake_instDecidableEqOutputStatus(x_71, x_70); +if (x_72 == 0) +{ +uint8_t x_73; lean_object* x_74; lean_object* x_75; +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +x_73 = 1; +x_74 = lean_box(x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_69); +lean_ctor_set(x_23, 0, x_75); +return x_23; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_free_object(x_23); +x_76 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_77 = l_Lake_buildAction___redArg(x_76, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_69, x_67); +lean_dec_ref(x_5); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_80 = x_77; +} else { + lean_dec_ref(x_77); + x_80 = lean_box(0); +} +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_82 = x_78; +} else { + lean_dec_ref(x_78); + x_82 = lean_box(0); +} +x_83 = 0; +x_84 = lean_box(x_83); +if (lean_is_scalar(x_82)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_82; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_81); +if (lean_is_scalar(x_80)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_80; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_79); +return x_86; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_87 = lean_ctor_get(x_77, 1); +lean_inc(x_87); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_88 = x_77; +} else { + lean_dec_ref(x_77); + x_88 = lean_box(0); +} +x_89 = lean_ctor_get(x_78, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_78, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_91 = x_78; +} else { + lean_dec_ref(x_78); + x_91 = lean_box(0); +} +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(1, 2, 0); +} else { + x_92 = x_91; +} +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +if (lean_is_scalar(x_88)) { + x_93 = lean_alloc_ctor(0, 2, 0); +} else { + x_93 = x_88; +} +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_87); +return x_93; +} +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; +x_94 = lean_ctor_get(x_23, 0); +x_95 = lean_ctor_get(x_23, 1); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_23); +x_96 = lean_ctor_get(x_94, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_94, 1); +lean_inc(x_97); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_98 = x_94; +} else { + lean_dec_ref(x_94); + x_98 = lean_box(0); +} +x_99 = 0; +x_100 = lean_unbox(x_96); +lean_dec(x_96); +x_101 = l_Lake_instDecidableEqOutputStatus(x_100, x_99); +if (x_101 == 0) +{ +uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +x_102 = 1; +x_103 = lean_box(x_102); +if (lean_is_scalar(x_98)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_98; +} +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_97); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_95); +return x_105; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_98); +x_106 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_107 = l_Lake_buildAction___redArg(x_106, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_97, x_95); +lean_dec_ref(x_5); +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +if (lean_obj_tag(x_108) == 0) +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_109 = lean_ctor_get(x_107, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_110 = x_107; +} else { + lean_dec_ref(x_107); + x_110 = lean_box(0); +} +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_112 = x_108; +} else { + lean_dec_ref(x_108); + x_112 = lean_box(0); +} +x_113 = 0; +x_114 = lean_box(x_113); +if (lean_is_scalar(x_112)) { + x_115 = lean_alloc_ctor(0, 2, 0); +} else { + x_115 = x_112; +} +lean_ctor_set(x_115, 0, x_114); +lean_ctor_set(x_115, 1, x_111); +if (lean_is_scalar(x_110)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_110; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_109); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_117 = lean_ctor_get(x_107, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_118 = x_107; +} else { + lean_dec_ref(x_107); + x_118 = lean_box(0); +} +x_119 = lean_ctor_get(x_108, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_108, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_121 = x_108; +} else { + lean_dec_ref(x_108); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +if (lean_is_scalar(x_118)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_118; +} +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_117); +return x_123; +} +} +} +} +else +{ +uint8_t x_124; lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -8186,215 +8346,133 @@ lean_dec_ref(x_5); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_55 = !lean_is_exclusive(x_18); -if (x_55 == 0) +x_124 = !lean_is_exclusive(x_18); +if (x_124 == 0) { -lean_object* x_56; uint8_t x_57; -x_56 = lean_ctor_get(x_18, 0); -lean_dec(x_56); -x_57 = !lean_is_exclusive(x_19); -if (x_57 == 0) +lean_object* x_125; uint8_t x_126; +x_125 = lean_ctor_get(x_18, 0); +lean_dec(x_125); +x_126 = !lean_is_exclusive(x_19); +if (x_126 == 0) { -lean_object* x_58; -x_58 = lean_ctor_get(x_19, 1); -lean_ctor_set(x_14, 0, x_58); +lean_object* x_127; +x_127 = lean_ctor_get(x_19, 1); +lean_ctor_set(x_14, 0, x_127); lean_ctor_set(x_19, 1, x_14); return x_18; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_19, 0); -x_60 = lean_ctor_get(x_19, 1); -lean_inc(x_60); -lean_inc(x_59); +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_19, 0); +x_129 = lean_ctor_get(x_19, 1); +lean_inc(x_129); +lean_inc(x_128); lean_dec(x_19); -lean_ctor_set(x_14, 0, x_60); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_14); -lean_ctor_set(x_18, 0, x_61); +lean_ctor_set(x_14, 0, x_129); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_128); +lean_ctor_set(x_130, 1, x_14); +lean_ctor_set(x_18, 0, x_130); return x_18; } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_62 = lean_ctor_get(x_18, 1); -lean_inc(x_62); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_131 = lean_ctor_get(x_18, 1); +lean_inc(x_131); lean_dec(x_18); -x_63 = lean_ctor_get(x_19, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_19, 1); -lean_inc(x_64); +x_132 = lean_ctor_get(x_19, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_19, 1); +lean_inc(x_133); if (lean_is_exclusive(x_19)) { lean_ctor_release(x_19, 0); lean_ctor_release(x_19, 1); - x_65 = x_19; + x_134 = x_19; } else { lean_dec_ref(x_19); - x_65 = lean_box(0); + x_134 = lean_box(0); } -lean_ctor_set(x_14, 0, x_64); -if (lean_is_scalar(x_65)) { - x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_133); +if (lean_is_scalar(x_134)) { + x_135 = lean_alloc_ctor(1, 2, 0); } else { - x_66 = x_65; + x_135 = x_134; } -lean_ctor_set(x_66, 0, x_63); -lean_ctor_set(x_66, 1, x_14); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_62); -return x_67; +lean_ctor_set(x_135, 0, x_132); +lean_ctor_set(x_135, 1, x_14); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_131); +return x_136; } } } else { -lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_68 = lean_ctor_get(x_14, 0); -x_69 = lean_ctor_get_uint8(x_14, sizeof(void*)*3); -x_70 = lean_ctor_get(x_14, 1); -x_71 = lean_ctor_get(x_14, 2); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_68); +lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_137 = lean_ctor_get(x_14, 0); +x_138 = lean_ctor_get_uint8(x_14, sizeof(void*)*3); +x_139 = lean_ctor_get(x_14, 1); +x_140 = lean_ctor_get(x_14, 2); +lean_inc(x_140); +lean_inc(x_139); +lean_inc(x_137); lean_dec(x_14); lean_inc_ref(x_5); -x_72 = l_Lake_readTraceFile(x_5, x_68, x_15); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -if (lean_obj_tag(x_73) == 0) +x_141 = l_Lake_readTraceFile(x_5, x_137, x_15); +x_142 = lean_ctor_get(x_141, 0); +lean_inc(x_142); +if (lean_obj_tag(x_142) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec_ref(x_72); -x_75 = lean_ctor_get(x_73, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_73, 1); -lean_inc(x_76); -lean_dec_ref(x_73); -x_77 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_70); -lean_ctor_set(x_77, 2, x_71); -lean_ctor_set_uint8(x_77, sizeof(void*)*3, x_69); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_78 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_77, x_74); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -if (lean_obj_tag(x_79) == 0) +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; uint8_t x_155; uint8_t x_156; +x_143 = lean_ctor_get(x_141, 1); +lean_inc(x_143); +lean_dec_ref(x_141); +x_144 = lean_ctor_get(x_142, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_142, 1); +lean_inc(x_145); +lean_dec_ref(x_142); +x_146 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_139); +lean_ctor_set(x_146, 2, x_140); +lean_ctor_set_uint8(x_146, sizeof(void*)*3, x_138); +x_147 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_144, x_8, x_9, x_10, x_11, x_12, x_13, x_146, x_143); +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_150 = x_147; +} else { + lean_dec_ref(x_147); + x_150 = lean_box(0); +} +x_151 = lean_ctor_get(x_148, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_148, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_153 = x_148; +} else { + lean_dec_ref(x_148); + x_153 = lean_box(0); +} +x_154 = 0; +x_155 = lean_unbox(x_151); +lean_dec(x_151); +x_156 = l_Lake_instDecidableEqOutputStatus(x_155, x_154); +if (x_156 == 0) { -lean_object* x_80; uint8_t x_81; -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_unbox(x_80); -if (x_81 == 0) -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_82 = lean_ctor_get(x_78, 1); -lean_inc(x_82); -lean_dec_ref(x_78); -x_83 = lean_ctor_get(x_79, 1); -lean_inc(x_83); -lean_dec_ref(x_79); -x_84 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_85 = l_Lake_buildAction___redArg(x_84, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_83, x_82); -lean_dec_ref(x_5); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_88 = x_85; -} else { - lean_dec_ref(x_85); - x_88 = lean_box(0); -} -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_90 = x_86; -} else { - lean_dec_ref(x_86); - x_90 = lean_box(0); -} -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(0, 2, 0); -} else { - x_91 = x_90; -} -lean_ctor_set(x_91, 0, x_80); -lean_ctor_set(x_91, 1, x_89); -if (lean_is_scalar(x_88)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_88; -} -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_87); -return x_92; -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec(x_80); -x_93 = lean_ctor_get(x_85, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_94 = x_85; -} else { - lean_dec_ref(x_85); - x_94 = lean_box(0); -} -x_95 = lean_ctor_get(x_86, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_86, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_97 = x_86; -} else { - lean_dec_ref(x_86); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(1, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_95); -lean_ctor_set(x_98, 1, x_96); -if (lean_is_scalar(x_94)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_94; -} -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_93); -return x_99; -} -} -else -{ -lean_dec(x_80); -lean_dec_ref(x_79); +uint8_t x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -8402,25 +8480,121 @@ lean_dec(x_10); lean_dec_ref(x_9); lean_dec_ref(x_6); lean_dec_ref(x_5); -return x_78; +x_157 = 1; +x_158 = lean_box(x_157); +if (lean_is_scalar(x_153)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_153; } +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_152); +if (lean_is_scalar(x_150)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_150; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_149); +return x_160; } else { -lean_dec_ref(x_79); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); +lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_153); +lean_dec(x_150); +x_161 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_162 = l_Lake_buildAction___redArg(x_161, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_152, x_149); lean_dec_ref(x_5); -return x_78; +x_163 = lean_ctor_get(x_162, 0); +lean_inc(x_163); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_164 = lean_ctor_get(x_162, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_165 = x_162; +} else { + lean_dec_ref(x_162); + x_165 = lean_box(0); +} +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_167 = x_163; +} else { + lean_dec_ref(x_163); + x_167 = lean_box(0); +} +x_168 = 0; +x_169 = lean_box(x_168); +if (lean_is_scalar(x_167)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_167; +} +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_166); +if (lean_is_scalar(x_165)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_165; +} +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_164); +return x_171; +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_172 = lean_ctor_get(x_162, 1); +lean_inc(x_172); +if (lean_is_exclusive(x_162)) { + lean_ctor_release(x_162, 0); + lean_ctor_release(x_162, 1); + x_173 = x_162; +} else { + lean_dec_ref(x_162); + x_173 = lean_box(0); +} +x_174 = lean_ctor_get(x_163, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_163, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_176 = x_163; +} else { + lean_dec_ref(x_163); + x_176 = lean_box(0); +} +if (lean_is_scalar(x_176)) { + x_177 = lean_alloc_ctor(1, 2, 0); +} else { + x_177 = x_176; +} +lean_ctor_set(x_177, 0, x_174); +lean_ctor_set(x_177, 1, x_175); +if (lean_is_scalar(x_173)) { + x_178 = lean_alloc_ctor(0, 2, 0); +} else { + x_178 = x_173; +} +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_172); +return x_178; +} } } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -8431,48 +8605,48 @@ lean_dec_ref(x_5); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_100 = lean_ctor_get(x_72, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - lean_ctor_release(x_72, 1); - x_101 = x_72; +x_179 = lean_ctor_get(x_141, 1); +lean_inc(x_179); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_180 = x_141; } else { - lean_dec_ref(x_72); - x_101 = lean_box(0); + lean_dec_ref(x_141); + x_180 = lean_box(0); } -x_102 = lean_ctor_get(x_73, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_73, 1); -lean_inc(x_103); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_104 = x_73; +x_181 = lean_ctor_get(x_142, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_142, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_183 = x_142; } else { - lean_dec_ref(x_73); - x_104 = lean_box(0); + lean_dec_ref(x_142); + x_183 = lean_box(0); } -x_105 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_70); -lean_ctor_set(x_105, 2, x_71); -lean_ctor_set_uint8(x_105, sizeof(void*)*3, x_69); -if (lean_is_scalar(x_104)) { - x_106 = lean_alloc_ctor(1, 2, 0); +x_184 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_184, 0, x_182); +lean_ctor_set(x_184, 1, x_139); +lean_ctor_set(x_184, 2, x_140); +lean_ctor_set_uint8(x_184, sizeof(void*)*3, x_138); +if (lean_is_scalar(x_183)) { + x_185 = lean_alloc_ctor(1, 2, 0); } else { - x_106 = x_104; + x_185 = x_183; } -lean_ctor_set(x_106, 0, x_102); -lean_ctor_set(x_106, 1, x_105); -if (lean_is_scalar(x_101)) { - x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_185, 0, x_181); +lean_ctor_set(x_185, 1, x_184); +if (lean_is_scalar(x_180)) { + x_186 = lean_alloc_ctor(0, 2, 0); } else { - x_107 = x_101; + x_186 = x_180; } -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_100); -return x_107; +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_186, 1, x_179); +return x_186; } } } @@ -8492,7 +8666,7 @@ x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec_ref(x_19); @@ -8502,186 +8676,446 @@ x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); lean_dec_ref(x_20); lean_ctor_set(x_15, 0, x_23); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_24 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_2, x_3, x_4, x_5, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_21); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) +x_24 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_22, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_21); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) { lean_object* x_26; uint8_t x_27; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_unbox(x_26); +x_26 = lean_ctor_get(x_24, 0); +x_27 = !lean_is_exclusive(x_26); if (x_27 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; uint8_t x_32; uint8_t x_33; x_28 = lean_ctor_get(x_24, 1); -lean_inc(x_28); -lean_dec_ref(x_24); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -lean_dec_ref(x_25); -x_30 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_31 = l_Lake_buildAction___redArg(x_30, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_29, x_28); -lean_dec_ref(x_6); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_31); +x_29 = lean_ctor_get(x_26, 0); +x_30 = lean_ctor_get(x_26, 1); +x_31 = 0; +x_32 = lean_unbox(x_29); +lean_dec(x_29); +x_33 = l_Lake_instDecidableEqOutputStatus(x_32, x_31); if (x_33 == 0) { -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_31, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_32); -if (x_35 == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_32, 0); -lean_dec(x_36); -lean_ctor_set(x_32, 0, x_26); -return x_31; +uint8_t x_34; lean_object* x_35; +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_34 = 1; +x_35 = lean_box(x_34); +lean_ctor_set(x_26, 0, x_35); +return x_24; } else { -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_dec(x_32); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_26); -lean_ctor_set(x_38, 1, x_37); -lean_ctor_set(x_31, 0, x_38); -return x_31; +lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_free_object(x_26); +lean_free_object(x_24); +x_36 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_37 = l_Lake_buildAction___redArg(x_36, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_30, x_28); +lean_dec_ref(x_6); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +if (lean_obj_tag(x_38) == 0) +{ +uint8_t x_39; +x_39 = !lean_is_exclusive(x_37); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_37, 0); +lean_dec(x_40); +x_41 = !lean_is_exclusive(x_38); +if (x_41 == 0) +{ +lean_object* x_42; uint8_t x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_38, 0); +lean_dec(x_42); +x_43 = 0; +x_44 = lean_box(x_43); +lean_ctor_set(x_38, 0, x_44); +return x_37; +} +else +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_45); +lean_dec(x_38); +x_46 = 0; +x_47 = lean_box(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_45); +lean_ctor_set(x_37, 0, x_48); +return x_37; } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_31, 1); -lean_inc(x_39); -lean_dec(x_31); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_41 = x_32; -} else { - lean_dec_ref(x_32); - x_41 = lean_box(0); -} -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_41; -} -lean_ctor_set(x_42, 0, x_26); -lean_ctor_set(x_42, 1, x_40); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_39); -return x_43; -} -} -else -{ -uint8_t x_44; -lean_dec(x_26); -x_44 = !lean_is_exclusive(x_31); -if (x_44 == 0) -{ -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_31, 0); -lean_dec(x_45); -x_46 = !lean_is_exclusive(x_32); -if (x_46 == 0) -{ -return x_31; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_32, 0); -x_48 = lean_ctor_get(x_32, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_32); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -lean_ctor_set(x_31, 0, x_49); -return x_31; -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_50 = lean_ctor_get(x_31, 1); +lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_49 = lean_ctor_get(x_37, 1); +lean_inc(x_49); +lean_dec(x_37); +x_50 = lean_ctor_get(x_38, 1); lean_inc(x_50); -lean_dec(x_31); -x_51 = lean_ctor_get(x_32, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_32, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_53 = x_32; +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_51 = x_38; } else { - lean_dec_ref(x_32); - x_53 = lean_box(0); + lean_dec_ref(x_38); + x_51 = lean_box(0); } -if (lean_is_scalar(x_53)) { - x_54 = lean_alloc_ctor(1, 2, 0); +x_52 = 0; +x_53 = lean_box(x_52); +if (lean_is_scalar(x_51)) { + x_54 = lean_alloc_ctor(0, 2, 0); } else { - x_54 = x_53; + x_54 = x_51; } -lean_ctor_set(x_54, 0, x_51); -lean_ctor_set(x_54, 1, x_52); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_50); x_55 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_50); +lean_ctor_set(x_55, 1, x_49); return x_55; } } -} -else -{ -lean_dec(x_26); -lean_dec_ref(x_25); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -return x_24; -} -} -else -{ -lean_dec_ref(x_25); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -return x_24; -} -} else { uint8_t x_56; +x_56 = !lean_is_exclusive(x_37); +if (x_56 == 0) +{ +lean_object* x_57; uint8_t x_58; +x_57 = lean_ctor_get(x_37, 0); +lean_dec(x_57); +x_58 = !lean_is_exclusive(x_38); +if (x_58 == 0) +{ +return x_37; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_38, 0); +x_60 = lean_ctor_get(x_38, 1); +lean_inc(x_60); +lean_inc(x_59); +lean_dec(x_38); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +lean_ctor_set(x_37, 0, x_61); +return x_37; +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_62 = lean_ctor_get(x_37, 1); +lean_inc(x_62); +lean_dec(x_37); +x_63 = lean_ctor_get(x_38, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_38, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_65 = x_38; +} else { + lean_dec_ref(x_38); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(1, 2, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_62); +return x_67; +} +} +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; +x_68 = lean_ctor_get(x_24, 1); +x_69 = lean_ctor_get(x_26, 0); +x_70 = lean_ctor_get(x_26, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_26); +x_71 = 0; +x_72 = lean_unbox(x_69); +lean_dec(x_69); +x_73 = l_Lake_instDecidableEqOutputStatus(x_72, x_71); +if (x_73 == 0) +{ +uint8_t x_74; lean_object* x_75; lean_object* x_76; +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_74 = 1; +x_75 = lean_box(x_74); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_70); +lean_ctor_set(x_24, 0, x_76); +return x_24; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_free_object(x_24); +x_77 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_78 = l_Lake_buildAction___redArg(x_77, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_70, x_68); +lean_dec_ref(x_6); +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +if (lean_obj_tag(x_79) == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_81 = x_78; +} else { + lean_dec_ref(x_78); + x_81 = lean_box(0); +} +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_83 = x_79; +} else { + lean_dec_ref(x_79); + x_83 = lean_box(0); +} +x_84 = 0; +x_85 = lean_box(x_84); +if (lean_is_scalar(x_83)) { + x_86 = lean_alloc_ctor(0, 2, 0); +} else { + x_86 = x_83; +} +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_82); +if (lean_is_scalar(x_81)) { + x_87 = lean_alloc_ctor(0, 2, 0); +} else { + x_87 = x_81; +} +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_80); +return x_87; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_88 = lean_ctor_get(x_78, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + lean_ctor_release(x_78, 1); + x_89 = x_78; +} else { + lean_dec_ref(x_78); + x_89 = lean_box(0); +} +x_90 = lean_ctor_get(x_79, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_79, 1); +lean_inc(x_91); +if (lean_is_exclusive(x_79)) { + lean_ctor_release(x_79, 0); + lean_ctor_release(x_79, 1); + x_92 = x_79; +} else { + lean_dec_ref(x_79); + x_92 = lean_box(0); +} +if (lean_is_scalar(x_92)) { + x_93 = lean_alloc_ctor(1, 2, 0); +} else { + x_93 = x_92; +} +lean_ctor_set(x_93, 0, x_90); +lean_ctor_set(x_93, 1, x_91); +if (lean_is_scalar(x_89)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_89; +} +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_88); +return x_94; +} +} +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; uint8_t x_102; +x_95 = lean_ctor_get(x_24, 0); +x_96 = lean_ctor_get(x_24, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_24); +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_95, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_99 = x_95; +} else { + lean_dec_ref(x_95); + x_99 = lean_box(0); +} +x_100 = 0; +x_101 = lean_unbox(x_97); +lean_dec(x_97); +x_102 = l_Lake_instDecidableEqOutputStatus(x_101, x_100); +if (x_102 == 0) +{ +uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_103 = 1; +x_104 = lean_box(x_103); +if (lean_is_scalar(x_99)) { + x_105 = lean_alloc_ctor(0, 2, 0); +} else { + x_105 = x_99; +} +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_98); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_96); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; +lean_dec(x_99); +x_107 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_108 = l_Lake_buildAction___redArg(x_107, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_98, x_96); +lean_dec_ref(x_6); +x_109 = lean_ctor_get(x_108, 0); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_110 = lean_ctor_get(x_108, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_111 = x_108; +} else { + lean_dec_ref(x_108); + x_111 = lean_box(0); +} +x_112 = lean_ctor_get(x_109, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_113 = x_109; +} else { + lean_dec_ref(x_109); + x_113 = lean_box(0); +} +x_114 = 0; +x_115 = lean_box(x_114); +if (lean_is_scalar(x_113)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_113; +} +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_112); +if (lean_is_scalar(x_111)) { + x_117 = lean_alloc_ctor(0, 2, 0); +} else { + x_117 = x_111; +} +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_110); +return x_117; +} +else +{ +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_118 = lean_ctor_get(x_108, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_108)) { + lean_ctor_release(x_108, 0); + lean_ctor_release(x_108, 1); + x_119 = x_108; +} else { + lean_dec_ref(x_108); + x_119 = lean_box(0); +} +x_120 = lean_ctor_get(x_109, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_109, 1); +lean_inc(x_121); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_122 = x_109; +} else { + lean_dec_ref(x_109); + x_122 = lean_box(0); +} +if (lean_is_scalar(x_122)) { + x_123 = lean_alloc_ctor(1, 2, 0); +} else { + x_123 = x_122; +} +lean_ctor_set(x_123, 0, x_120); +lean_ctor_set(x_123, 1, x_121); +if (lean_is_scalar(x_119)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_119; +} +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_118); +return x_124; +} +} +} +} +else +{ +uint8_t x_125; lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8692,215 +9126,133 @@ lean_dec_ref(x_6); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_56 = !lean_is_exclusive(x_19); -if (x_56 == 0) +x_125 = !lean_is_exclusive(x_19); +if (x_125 == 0) { -lean_object* x_57; uint8_t x_58; -x_57 = lean_ctor_get(x_19, 0); -lean_dec(x_57); -x_58 = !lean_is_exclusive(x_20); -if (x_58 == 0) +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_19, 0); +lean_dec(x_126); +x_127 = !lean_is_exclusive(x_20); +if (x_127 == 0) { -lean_object* x_59; -x_59 = lean_ctor_get(x_20, 1); -lean_ctor_set(x_15, 0, x_59); +lean_object* x_128; +x_128 = lean_ctor_get(x_20, 1); +lean_ctor_set(x_15, 0, x_128); lean_ctor_set(x_20, 1, x_15); return x_19; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_20, 0); -x_61 = lean_ctor_get(x_20, 1); -lean_inc(x_61); -lean_inc(x_60); +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_20, 0); +x_130 = lean_ctor_get(x_20, 1); +lean_inc(x_130); +lean_inc(x_129); lean_dec(x_20); -lean_ctor_set(x_15, 0, x_61); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_60); -lean_ctor_set(x_62, 1, x_15); -lean_ctor_set(x_19, 0, x_62); +lean_ctor_set(x_15, 0, x_130); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_15); +lean_ctor_set(x_19, 0, x_131); return x_19; } } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_63 = lean_ctor_get(x_19, 1); -lean_inc(x_63); +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_132 = lean_ctor_get(x_19, 1); +lean_inc(x_132); lean_dec(x_19); -x_64 = lean_ctor_get(x_20, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_20, 1); -lean_inc(x_65); +x_133 = lean_ctor_get(x_20, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_20, 1); +lean_inc(x_134); if (lean_is_exclusive(x_20)) { lean_ctor_release(x_20, 0); lean_ctor_release(x_20, 1); - x_66 = x_20; + x_135 = x_20; } else { lean_dec_ref(x_20); - x_66 = lean_box(0); + x_135 = lean_box(0); } -lean_ctor_set(x_15, 0, x_65); -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_134); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); } else { - x_67 = x_66; + x_136 = x_135; } -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_15); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_63); -return x_68; +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_15); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_132); +return x_137; } } } else { -lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_69 = lean_ctor_get(x_15, 0); -x_70 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); -x_71 = lean_ctor_get(x_15, 1); -x_72 = lean_ctor_get(x_15, 2); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_69); +lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_138 = lean_ctor_get(x_15, 0); +x_139 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +x_140 = lean_ctor_get(x_15, 1); +x_141 = lean_ctor_get(x_15, 2); +lean_inc(x_141); +lean_inc(x_140); +lean_inc(x_138); lean_dec(x_15); lean_inc_ref(x_6); -x_73 = l_Lake_readTraceFile(x_6, x_69, x_16); -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -if (lean_obj_tag(x_74) == 0) +x_142 = l_Lake_readTraceFile(x_6, x_138, x_16); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +if (lean_obj_tag(x_143) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec_ref(x_73); -x_76 = lean_ctor_get(x_74, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_74, 1); -lean_inc(x_77); -lean_dec_ref(x_74); -x_78 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_71); -lean_ctor_set(x_78, 2, x_72); -lean_ctor_set_uint8(x_78, sizeof(void*)*3, x_70); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_79 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_2, x_3, x_4, x_5, x_76, x_9, x_10, x_11, x_12, x_13, x_14, x_78, x_75); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -if (lean_obj_tag(x_80) == 0) +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; uint8_t x_156; uint8_t x_157; +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec_ref(x_142); +x_145 = lean_ctor_get(x_143, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_143, 1); +lean_inc(x_146); +lean_dec_ref(x_143); +x_147 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_140); +lean_ctor_set(x_147, 2, x_141); +lean_ctor_set_uint8(x_147, sizeof(void*)*3, x_139); +x_148 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_145, x_9, x_10, x_11, x_12, x_13, x_14, x_147, x_144); +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_148, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_151 = x_148; +} else { + lean_dec_ref(x_148); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_149, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_149, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_154 = x_149; +} else { + lean_dec_ref(x_149); + x_154 = lean_box(0); +} +x_155 = 0; +x_156 = lean_unbox(x_152); +lean_dec(x_152); +x_157 = l_Lake_instDecidableEqOutputStatus(x_156, x_155); +if (x_157 == 0) { -lean_object* x_81; uint8_t x_82; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_unbox(x_81); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_83 = lean_ctor_get(x_79, 1); -lean_inc(x_83); -lean_dec_ref(x_79); -x_84 = lean_ctor_get(x_80, 1); -lean_inc(x_84); -lean_dec_ref(x_80); -x_85 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_86 = l_Lake_buildAction___redArg(x_85, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_84, x_83); -lean_dec_ref(x_6); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_89 = x_86; -} else { - lean_dec_ref(x_86); - x_89 = lean_box(0); -} -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_91 = x_87; -} else { - lean_dec_ref(x_87); - x_91 = lean_box(0); -} -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(0, 2, 0); -} else { - x_92 = x_91; -} -lean_ctor_set(x_92, 0, x_81); -lean_ctor_set(x_92, 1, x_90); -if (lean_is_scalar(x_89)) { - x_93 = lean_alloc_ctor(0, 2, 0); -} else { - x_93 = x_89; -} -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_88); -return x_93; -} -else -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_81); -x_94 = lean_ctor_get(x_86, 1); -lean_inc(x_94); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_95 = x_86; -} else { - lean_dec_ref(x_86); - x_95 = lean_box(0); -} -x_96 = lean_ctor_get(x_87, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_87, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_98 = x_87; -} else { - lean_dec_ref(x_87); - x_98 = lean_box(0); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(1, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_97); -if (lean_is_scalar(x_95)) { - x_100 = lean_alloc_ctor(0, 2, 0); -} else { - x_100 = x_95; -} -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_94); -return x_100; -} -} -else -{ -lean_dec(x_81); -lean_dec_ref(x_80); +uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8908,25 +9260,121 @@ lean_dec(x_11); lean_dec_ref(x_10); lean_dec_ref(x_7); lean_dec_ref(x_6); -return x_79; +x_158 = 1; +x_159 = lean_box(x_158); +if (lean_is_scalar(x_154)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_154; } +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_153); +if (lean_is_scalar(x_151)) { + x_161 = lean_alloc_ctor(0, 2, 0); +} else { + x_161 = x_151; +} +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_150); +return x_161; } else { -lean_dec_ref(x_80); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_154); +lean_dec(x_151); +x_162 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_163 = l_Lake_buildAction___redArg(x_162, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_153, x_150); lean_dec_ref(x_6); -return x_79; +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_166 = x_163; +} else { + lean_dec_ref(x_163); + x_166 = lean_box(0); +} +x_167 = lean_ctor_get(x_164, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_168 = x_164; +} else { + lean_dec_ref(x_164); + x_168 = lean_box(0); +} +x_169 = 0; +x_170 = lean_box(x_169); +if (lean_is_scalar(x_168)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_168; +} +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_167); +if (lean_is_scalar(x_166)) { + x_172 = lean_alloc_ctor(0, 2, 0); +} else { + x_172 = x_166; +} +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_165); +return x_172; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_173 = lean_ctor_get(x_163, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_163)) { + lean_ctor_release(x_163, 0); + lean_ctor_release(x_163, 1); + x_174 = x_163; +} else { + lean_dec_ref(x_163); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_164, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_164, 1); +lean_inc(x_176); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_177 = x_164; +} else { + lean_dec_ref(x_164); + x_177 = lean_box(0); +} +if (lean_is_scalar(x_177)) { + x_178 = lean_alloc_ctor(1, 2, 0); +} else { + x_178 = x_177; +} +lean_ctor_set(x_178, 0, x_175); +lean_ctor_set(x_178, 1, x_176); +if (lean_is_scalar(x_174)) { + x_179 = lean_alloc_ctor(0, 2, 0); +} else { + x_179 = x_174; +} +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_173); +return x_179; +} } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -8937,48 +9385,48 @@ lean_dec_ref(x_6); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_101 = lean_ctor_get(x_73, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_102 = x_73; +x_180 = lean_ctor_get(x_142, 1); +lean_inc(x_180); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_181 = x_142; } else { - lean_dec_ref(x_73); - x_102 = lean_box(0); + lean_dec_ref(x_142); + x_181 = lean_box(0); } -x_103 = lean_ctor_get(x_74, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_74, 1); -lean_inc(x_104); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_105 = x_74; +x_182 = lean_ctor_get(x_143, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_143, 1); +lean_inc(x_183); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_184 = x_143; } else { - lean_dec_ref(x_74); - x_105 = lean_box(0); + lean_dec_ref(x_143); + x_184 = lean_box(0); } -x_106 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_71); -lean_ctor_set(x_106, 2, x_72); -lean_ctor_set_uint8(x_106, sizeof(void*)*3, x_70); -if (lean_is_scalar(x_105)) { - x_107 = lean_alloc_ctor(1, 2, 0); +x_185 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_185, 0, x_183); +lean_ctor_set(x_185, 1, x_140); +lean_ctor_set(x_185, 2, x_141); +lean_ctor_set_uint8(x_185, sizeof(void*)*3, x_139); +if (lean_is_scalar(x_184)) { + x_186 = lean_alloc_ctor(1, 2, 0); } else { - x_107 = x_105; + x_186 = x_184; } -lean_ctor_set(x_107, 0, x_103); -lean_ctor_set(x_107, 1, x_106); -if (lean_is_scalar(x_102)) { - x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_186, 0, x_182); +lean_ctor_set(x_186, 1, x_185); +if (lean_is_scalar(x_181)) { + x_187 = lean_alloc_ctor(0, 2, 0); } else { - x_108 = x_102; + x_187 = x_181; } -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_101); -return x_108; +lean_ctor_set(x_187, 0, x_186); +lean_ctor_set(x_187, 1, x_180); +return x_187; } } } @@ -9020,179 +9468,122 @@ x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); if (lean_obj_tag(x_25) == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_40; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_42; uint8_t x_43; uint8_t x_44; x_26 = lean_ctor_get(x_24, 1); lean_inc(x_26); -if (lean_is_exclusive(x_24)) { - lean_ctor_release(x_24, 0); - lean_ctor_release(x_24, 1); - x_27 = x_24; -} else { - lean_dec_ref(x_24); - x_27 = lean_box(0); -} -x_28 = lean_ctor_get(x_25, 0); +lean_dec_ref(x_24); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_25, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_30 = x_25; +lean_dec_ref(x_25); +lean_ctor_set(x_14, 0, x_28); +x_29 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_27, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; } else { - lean_dec_ref(x_25); - x_30 = lean_box(0); + lean_dec_ref(x_29); + x_32 = lean_box(0); } -lean_ctor_set(x_14, 0, x_29); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_31 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_28, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_26); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +x_33 = lean_ctor_get(x_30, 0); lean_inc(x_33); -x_34 = lean_box(0); -if (lean_obj_tag(x_32) == 0) +x_34 = lean_ctor_get(x_30, 1); +lean_inc(x_34); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_35 = x_30; +} else { + lean_dec_ref(x_30); + x_35 = lean_box(0); +} +x_36 = lean_box(0); +x_42 = 0; +x_43 = lean_unbox(x_33); +lean_dec(x_33); +x_44 = l_Lake_instDecidableEqOutputStatus(x_43, x_42); +if (x_44 == 0) { -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_32, 0); -x_49 = lean_unbox(x_48); -if (x_49 == 0) +lean_dec_ref(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +x_37 = x_34; +x_38 = x_31; +goto block_41; +} +else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -lean_dec_ref(x_31); -x_50 = lean_ctor_get(x_32, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_46 = l_Lake_buildAction___redArg(x_45, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_34, x_31); +lean_dec_ref(x_5); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec_ref(x_46); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec_ref(x_47); +x_37 = x_49; +x_38 = x_48; +goto block_41; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_35); +lean_dec(x_32); +x_50 = lean_ctor_get(x_46, 1); lean_inc(x_50); -lean_dec_ref(x_32); -x_51 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_52 = l_Lake_buildAction___redArg(x_51, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_50, x_33); -lean_dec_ref(x_5); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec_ref(x_52); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec_ref(x_53); -x_35 = x_55; -x_36 = x_54; -goto block_39; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_30); -lean_dec(x_27); -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); -lean_dec_ref(x_52); -x_57 = lean_ctor_get(x_53, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 1); -lean_inc(x_58); -lean_dec_ref(x_53); -x_16 = x_57; -x_17 = x_58; -x_18 = x_56; +lean_dec_ref(x_46); +x_51 = lean_ctor_get(x_47, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_47, 1); +lean_inc(x_52); +lean_dec_ref(x_47); +x_16 = x_51; +x_17 = x_52; +x_18 = x_50; goto block_21; } } -else +block_41: { -lean_dec(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -x_40 = x_31; -goto block_47; -} -} -else -{ -lean_dec(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -x_40 = x_31; -goto block_47; -} -block_39: -{ -lean_object* x_37; lean_object* x_38; -if (lean_is_scalar(x_30)) { - x_37 = lean_alloc_ctor(0, 2, 0); +lean_object* x_39; lean_object* x_40; +if (lean_is_scalar(x_35)) { + x_39 = lean_alloc_ctor(0, 2, 0); } else { - x_37 = x_30; + x_39 = x_35; } -lean_ctor_set(x_37, 0, x_34); -lean_ctor_set(x_37, 1, x_35); -if (lean_is_scalar(x_27)) { - x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_37); +if (lean_is_scalar(x_32)) { + x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_38 = x_27; -} -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); -return x_38; -} -block_47: -{ -lean_object* x_41; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec_ref(x_41); -x_35 = x_43; -x_36 = x_42; -goto block_39; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_30); -lean_dec(x_27); -x_44 = lean_ctor_get(x_40, 1); -lean_inc(x_44); -lean_dec_ref(x_40); -x_45 = lean_ctor_get(x_41, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_41, 1); -lean_inc(x_46); -lean_dec_ref(x_41); -x_16 = x_45; -x_17 = x_46; -x_18 = x_44; -goto block_21; + x_40 = x_32; } +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; } } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -9203,39 +9594,55 @@ lean_dec_ref(x_5); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_59 = lean_ctor_get(x_24, 1); -lean_inc(x_59); +x_53 = lean_ctor_get(x_24, 1); +lean_inc(x_53); lean_dec_ref(x_24); -x_60 = lean_ctor_get(x_25, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_25, 1); -lean_inc(x_61); +x_54 = lean_ctor_get(x_25, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_25, 1); +lean_inc(x_55); lean_dec_ref(x_25); -lean_ctor_set(x_14, 0, x_61); -x_16 = x_60; +lean_ctor_set(x_14, 0, x_55); +x_16 = x_54; x_17 = x_14; -x_18 = x_59; +x_18 = x_53; goto block_21; } } else { -lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_62 = lean_ctor_get(x_14, 0); -x_63 = lean_ctor_get_uint8(x_14, sizeof(void*)*3); -x_64 = lean_ctor_get(x_14, 1); -x_65 = lean_ctor_get(x_14, 2); -lean_inc(x_65); -lean_inc(x_64); -lean_inc(x_62); +lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_56 = lean_ctor_get(x_14, 0); +x_57 = lean_ctor_get_uint8(x_14, sizeof(void*)*3); +x_58 = lean_ctor_get(x_14, 1); +x_59 = lean_ctor_get(x_14, 2); +lean_inc(x_59); +lean_inc(x_58); +lean_inc(x_56); lean_dec(x_14); lean_inc_ref(x_5); -x_66 = l_Lake_readTraceFile(x_5, x_62, x_15); +x_60 = l_Lake_readTraceFile(x_5, x_56, x_15); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_79; uint8_t x_80; uint8_t x_81; +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec_ref(x_60); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec_ref(x_61); +x_65 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_58); +lean_ctor_set(x_65, 2, x_59); +lean_ctor_set_uint8(x_65, sizeof(void*)*3, x_57); +x_66 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_1, x_2, x_3, x_4, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_65, x_62); x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_83; x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); if (lean_is_exclusive(x_66)) { @@ -9258,75 +9665,13 @@ if (lean_is_exclusive(x_67)) { lean_dec_ref(x_67); x_72 = lean_box(0); } -x_73 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_64); -lean_ctor_set(x_73, 2, x_65); -lean_ctor_set_uint8(x_73, sizeof(void*)*3, x_63); -lean_inc_ref(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc_ref(x_9); -x_74 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_1, x_2, x_3, x_4, x_70, x_8, x_9, x_10, x_11, x_12, x_13, x_73, x_68); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -x_77 = lean_box(0); -if (lean_obj_tag(x_75) == 0) +x_73 = lean_box(0); +x_79 = 0; +x_80 = lean_unbox(x_70); +lean_dec(x_70); +x_81 = l_Lake_instDecidableEqOutputStatus(x_80, x_79); +if (x_81 == 0) { -lean_object* x_91; uint8_t x_92; -x_91 = lean_ctor_get(x_75, 0); -x_92 = lean_unbox(x_91); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec_ref(x_74); -x_93 = lean_ctor_get(x_75, 1); -lean_inc(x_93); -lean_dec_ref(x_75); -x_94 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_95 = l_Lake_buildAction___redArg(x_94, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_93, x_76); -lean_dec_ref(x_5); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -if (lean_obj_tag(x_96) == 0) -{ -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec_ref(x_95); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec_ref(x_96); -x_78 = x_98; -x_79 = x_97; -goto block_82; -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; -lean_dec(x_72); -lean_dec(x_69); -x_99 = lean_ctor_get(x_95, 1); -lean_inc(x_99); -lean_dec_ref(x_95); -x_100 = lean_ctor_get(x_96, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_96, 1); -lean_inc(x_101); -lean_dec_ref(x_96); -x_16 = x_100; -x_17 = x_101; -x_18 = x_99; -goto block_21; -} -} -else -{ -lean_dec(x_76); -lean_dec_ref(x_75); lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -9334,46 +9679,16 @@ lean_dec(x_10); lean_dec_ref(x_9); lean_dec_ref(x_6); lean_dec_ref(x_5); -x_83 = x_74; -goto block_90; -} +x_74 = x_71; +x_75 = x_68; +goto block_78; } else { -lean_dec(x_76); -lean_dec_ref(x_75); -lean_dec_ref(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_6); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_83 = l_Lake_buildAction___redArg(x_82, x_4, x_5, x_6, x_7, x_9, x_10, x_11, x_12, x_13, x_71, x_68); lean_dec_ref(x_5); -x_83 = x_74; -goto block_90; -} -block_82: -{ -lean_object* x_80; lean_object* x_81; -if (lean_is_scalar(x_72)) { - x_80 = lean_alloc_ctor(0, 2, 0); -} else { - x_80 = x_72; -} -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -if (lean_is_scalar(x_69)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_69; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_79); -return x_81; -} -block_90: -{ -lean_object* x_84; x_84 = lean_ctor_get(x_83, 0); lean_inc(x_84); if (lean_obj_tag(x_84) == 0) @@ -9385,9 +9700,9 @@ lean_dec_ref(x_83); x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); lean_dec_ref(x_84); -x_78 = x_86; -x_79 = x_85; -goto block_82; +x_74 = x_86; +x_75 = x_85; +goto block_78; } else { @@ -9408,10 +9723,29 @@ x_18 = x_87; goto block_21; } } +block_78: +{ +lean_object* x_76; lean_object* x_77; +if (lean_is_scalar(x_72)) { + x_76 = lean_alloc_ctor(0, 2, 0); +} else { + x_76 = x_72; +} +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_74); +if (lean_is_scalar(x_69)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_69; +} +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_75); +return x_77; +} } else { -lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_dec_ref(x_13); lean_dec(x_12); lean_dec(x_11); @@ -9422,22 +9756,22 @@ lean_dec_ref(x_5); lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_102 = lean_ctor_get(x_66, 1); -lean_inc(x_102); -lean_dec_ref(x_66); -x_103 = lean_ctor_get(x_67, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_67, 1); -lean_inc(x_104); -lean_dec_ref(x_67); -x_105 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_64); -lean_ctor_set(x_105, 2, x_65); -lean_ctor_set_uint8(x_105, sizeof(void*)*3, x_63); -x_16 = x_103; -x_17 = x_105; -x_18 = x_102; +x_90 = lean_ctor_get(x_60, 1); +lean_inc(x_90); +lean_dec_ref(x_60); +x_91 = lean_ctor_get(x_61, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_61, 1); +lean_inc(x_92); +lean_dec_ref(x_61); +x_93 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_58); +lean_ctor_set(x_93, 2, x_59); +lean_ctor_set_uint8(x_93, sizeof(void*)*3, x_57); +x_16 = x_91; +x_17 = x_93; +x_18 = x_90; goto block_21; } } @@ -9469,179 +9803,122 @@ x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); if (lean_obj_tag(x_26) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_41; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_43; uint8_t x_44; uint8_t x_45; x_27 = lean_ctor_get(x_25, 1); lean_inc(x_27); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_28 = x_25; -} else { - lean_dec_ref(x_25); - x_28 = lean_box(0); -} -x_29 = lean_ctor_get(x_26, 0); +lean_dec_ref(x_25); +x_28 = lean_ctor_get(x_26, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); -x_30 = lean_ctor_get(x_26, 1); -lean_inc(x_30); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - x_31 = x_26; +lean_dec_ref(x_26); +lean_ctor_set(x_15, 0, x_29); +x_30 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_28, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_27); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_33 = x_30; } else { - lean_dec_ref(x_26); - x_31 = lean_box(0); + lean_dec_ref(x_30); + x_33 = lean_box(0); } -lean_ctor_set(x_15, 0, x_30); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_32 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_2, x_3, x_4, x_5, x_29, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_27); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_ctor_get(x_32, 1); +x_34 = lean_ctor_get(x_31, 0); lean_inc(x_34); -x_35 = lean_box(0); -if (lean_obj_tag(x_33) == 0) +x_35 = lean_ctor_get(x_31, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + x_36 = x_31; +} else { + lean_dec_ref(x_31); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +x_43 = 0; +x_44 = lean_unbox(x_34); +lean_dec(x_34); +x_45 = l_Lake_instDecidableEqOutputStatus(x_44, x_43); +if (x_45 == 0) { -lean_object* x_49; uint8_t x_50; -x_49 = lean_ctor_get(x_33, 0); -x_50 = lean_unbox(x_49); -if (x_50 == 0) +lean_dec_ref(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_38 = x_35; +x_39 = x_32; +goto block_42; +} +else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_dec_ref(x_32); -x_51 = lean_ctor_get(x_33, 1); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_47 = l_Lake_buildAction___redArg(x_46, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_35, x_32); +lean_dec_ref(x_6); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec_ref(x_47); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec_ref(x_48); +x_38 = x_50; +x_39 = x_49; +goto block_42; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_36); +lean_dec(x_33); +x_51 = lean_ctor_get(x_47, 1); lean_inc(x_51); -lean_dec_ref(x_33); -x_52 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_53 = l_Lake_buildAction___redArg(x_52, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_51, x_34); -lean_dec_ref(x_6); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec_ref(x_53); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec_ref(x_54); -x_36 = x_56; -x_37 = x_55; -goto block_40; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -lean_dec(x_31); -lean_dec(x_28); -x_57 = lean_ctor_get(x_53, 1); -lean_inc(x_57); -lean_dec_ref(x_53); -x_58 = lean_ctor_get(x_54, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_54, 1); -lean_inc(x_59); -lean_dec_ref(x_54); -x_17 = x_58; -x_18 = x_59; -x_19 = x_57; +lean_dec_ref(x_47); +x_52 = lean_ctor_get(x_48, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_48, 1); +lean_inc(x_53); +lean_dec_ref(x_48); +x_17 = x_52; +x_18 = x_53; +x_19 = x_51; goto block_22; } } -else +block_42: { -lean_dec(x_34); -lean_dec_ref(x_33); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -x_41 = x_32; -goto block_48; -} -} -else -{ -lean_dec(x_34); -lean_dec_ref(x_33); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -x_41 = x_32; -goto block_48; -} -block_40: -{ -lean_object* x_38; lean_object* x_39; -if (lean_is_scalar(x_31)) { - x_38 = lean_alloc_ctor(0, 2, 0); +lean_object* x_40; lean_object* x_41; +if (lean_is_scalar(x_36)) { + x_40 = lean_alloc_ctor(0, 2, 0); } else { - x_38 = x_31; + x_40 = x_36; } -lean_ctor_set(x_38, 0, x_35); -lean_ctor_set(x_38, 1, x_36); -if (lean_is_scalar(x_28)) { - x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_37); +lean_ctor_set(x_40, 1, x_38); +if (lean_is_scalar(x_33)) { + x_41 = lean_alloc_ctor(0, 2, 0); } else { - x_39 = x_28; -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -block_48: -{ -lean_object* x_42; -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -if (lean_obj_tag(x_42) == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec_ref(x_41); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec_ref(x_42); -x_36 = x_44; -x_37 = x_43; -goto block_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_31); -lean_dec(x_28); -x_45 = lean_ctor_get(x_41, 1); -lean_inc(x_45); -lean_dec_ref(x_41); -x_46 = lean_ctor_get(x_42, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_42, 1); -lean_inc(x_47); -lean_dec_ref(x_42); -x_17 = x_46; -x_18 = x_47; -x_19 = x_45; -goto block_22; + x_41 = x_33; } +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9652,39 +9929,55 @@ lean_dec_ref(x_6); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_60 = lean_ctor_get(x_25, 1); -lean_inc(x_60); +x_54 = lean_ctor_get(x_25, 1); +lean_inc(x_54); lean_dec_ref(x_25); -x_61 = lean_ctor_get(x_26, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_26, 1); -lean_inc(x_62); +x_55 = lean_ctor_get(x_26, 0); +lean_inc(x_55); +x_56 = lean_ctor_get(x_26, 1); +lean_inc(x_56); lean_dec_ref(x_26); -lean_ctor_set(x_15, 0, x_62); -x_17 = x_61; +lean_ctor_set(x_15, 0, x_56); +x_17 = x_55; x_18 = x_15; -x_19 = x_60; +x_19 = x_54; goto block_22; } } else { -lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_63 = lean_ctor_get(x_15, 0); -x_64 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); -x_65 = lean_ctor_get(x_15, 1); -x_66 = lean_ctor_get(x_15, 2); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_63); +lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_57 = lean_ctor_get(x_15, 0); +x_58 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); +x_59 = lean_ctor_get(x_15, 1); +x_60 = lean_ctor_get(x_15, 2); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_57); lean_dec(x_15); lean_inc_ref(x_6); -x_67 = l_Lake_readTraceFile(x_6, x_63, x_16); +x_61 = l_Lake_readTraceFile(x_6, x_57, x_16); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_80; uint8_t x_81; uint8_t x_82; +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec_ref(x_61); +x_64 = lean_ctor_get(x_62, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec_ref(x_62); +x_66 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_59); +lean_ctor_set(x_66, 2, x_60); +lean_ctor_set_uint8(x_66, sizeof(void*)*3, x_58); +x_67 = l_Lake_SavedTrace_replayIfUpToDate_x27___redArg(x_2, x_3, x_4, x_5, x_64, x_9, x_10, x_11, x_12, x_13, x_14, x_66, x_63); x_68 = lean_ctor_get(x_67, 0); lean_inc(x_68); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_84; x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); if (lean_is_exclusive(x_67)) { @@ -9707,75 +10000,13 @@ if (lean_is_exclusive(x_68)) { lean_dec_ref(x_68); x_73 = lean_box(0); } -x_74 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_65); -lean_ctor_set(x_74, 2, x_66); -lean_ctor_set_uint8(x_74, sizeof(void*)*3, x_64); -lean_inc_ref(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc_ref(x_10); -x_75 = l_Lake_SavedTrace_replayIfUpToDate___redArg(x_2, x_3, x_4, x_5, x_71, x_9, x_10, x_11, x_12, x_13, x_14, x_74, x_69); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -x_78 = lean_box(0); -if (lean_obj_tag(x_76) == 0) +x_74 = lean_box(0); +x_80 = 0; +x_81 = lean_unbox(x_71); +lean_dec(x_71); +x_82 = l_Lake_instDecidableEqOutputStatus(x_81, x_80); +if (x_82 == 0) { -lean_object* x_92; uint8_t x_93; -x_92 = lean_ctor_get(x_76, 0); -x_93 = lean_unbox(x_92); -if (x_93 == 0) -{ -lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec_ref(x_75); -x_94 = lean_ctor_get(x_76, 1); -lean_inc(x_94); -lean_dec_ref(x_76); -x_95 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; -x_96 = l_Lake_buildAction___redArg(x_95, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_94, x_77); -lean_dec_ref(x_6); -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_98; lean_object* x_99; -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec_ref(x_96); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec_ref(x_97); -x_79 = x_99; -x_80 = x_98; -goto block_83; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_73); -lean_dec(x_70); -x_100 = lean_ctor_get(x_96, 1); -lean_inc(x_100); -lean_dec_ref(x_96); -x_101 = lean_ctor_get(x_97, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_97, 1); -lean_inc(x_102); -lean_dec_ref(x_97); -x_17 = x_101; -x_18 = x_102; -x_19 = x_100; -goto block_22; -} -} -else -{ -lean_dec(x_77); -lean_dec_ref(x_76); lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9783,46 +10014,16 @@ lean_dec(x_11); lean_dec_ref(x_10); lean_dec_ref(x_7); lean_dec_ref(x_6); -x_84 = x_75; -goto block_91; -} +x_75 = x_72; +x_76 = x_69; +goto block_79; } else { -lean_dec(x_77); -lean_dec_ref(x_76); -lean_dec_ref(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -lean_dec_ref(x_7); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = l_Lake_buildUnlessUpToDate_x3f___redArg___closed__0; +x_84 = l_Lake_buildAction___redArg(x_83, x_5, x_6, x_7, x_8, x_10, x_11, x_12, x_13, x_14, x_72, x_69); lean_dec_ref(x_6); -x_84 = x_75; -goto block_91; -} -block_83: -{ -lean_object* x_81; lean_object* x_82; -if (lean_is_scalar(x_73)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_73; -} -lean_ctor_set(x_81, 0, x_78); -lean_ctor_set(x_81, 1, x_79); -if (lean_is_scalar(x_70)) { - x_82 = lean_alloc_ctor(0, 2, 0); -} else { - x_82 = x_70; -} -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_80); -return x_82; -} -block_91: -{ -lean_object* x_85; x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); if (lean_obj_tag(x_85) == 0) @@ -9834,9 +10035,9 @@ lean_dec_ref(x_84); x_87 = lean_ctor_get(x_85, 1); lean_inc(x_87); lean_dec_ref(x_85); -x_79 = x_87; -x_80 = x_86; -goto block_83; +x_75 = x_87; +x_76 = x_86; +goto block_79; } else { @@ -9857,10 +10058,29 @@ x_19 = x_88; goto block_22; } } +block_79: +{ +lean_object* x_77; lean_object* x_78; +if (lean_is_scalar(x_73)) { + x_77 = lean_alloc_ctor(0, 2, 0); +} else { + x_77 = x_73; +} +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_75); +if (lean_is_scalar(x_70)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_70; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec_ref(x_14); lean_dec(x_13); lean_dec(x_12); @@ -9871,22 +10091,22 @@ lean_dec_ref(x_6); lean_dec(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_103 = lean_ctor_get(x_67, 1); -lean_inc(x_103); -lean_dec_ref(x_67); -x_104 = lean_ctor_get(x_68, 0); -lean_inc(x_104); -x_105 = lean_ctor_get(x_68, 1); -lean_inc(x_105); -lean_dec_ref(x_68); -x_106 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_65); -lean_ctor_set(x_106, 2, x_66); -lean_ctor_set_uint8(x_106, sizeof(void*)*3, x_64); -x_17 = x_104; -x_18 = x_106; -x_19 = x_103; +x_91 = lean_ctor_get(x_61, 1); +lean_inc(x_91); +lean_dec_ref(x_61); +x_92 = lean_ctor_get(x_62, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_62, 1); +lean_inc(x_93); +lean_dec_ref(x_62); +x_94 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_59); +lean_ctor_set(x_94, 2, x_60); +lean_ctor_set_uint8(x_94, sizeof(void*)*3, x_58); +x_17 = x_92; +x_18 = x_94; +x_19 = x_91; goto block_22; } } @@ -10051,7 +10271,7 @@ return x_5; LEAN_EXPORT lean_object* l_Lake_fetchFileHash___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_88; lean_object* x_89; +lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_88; lean_object* x_89; x_6 = lean_ctor_get(x_3, 0); x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*2 + 1); x_8 = l_Lake_writeFileHash___closed__0; @@ -10150,10 +10370,10 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; x_23 = lean_ctor_get(x_21, 0); lean_dec(x_23); x_24 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_24, 0, x_10); -lean_ctor_set(x_24, 1, x_13); +lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 1, x_10); lean_ctor_set(x_24, 2, x_12); -lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_24, sizeof(void*)*3, x_13); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_15); lean_ctor_set(x_25, 1, x_24); @@ -10167,10 +10387,10 @@ x_26 = lean_ctor_get(x_21, 1); lean_inc(x_26); lean_dec(x_21); x_27 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_27, 0, x_10); -lean_ctor_set(x_27, 1, x_13); +lean_ctor_set(x_27, 0, x_11); +lean_ctor_set(x_27, 1, x_10); lean_ctor_set(x_27, 2, x_12); -lean_ctor_set_uint8(x_27, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_27, sizeof(void*)*3, x_13); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_15); lean_ctor_set(x_28, 1, x_27); @@ -10194,13 +10414,13 @@ x_33 = 3; x_34 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_34, 0, x_32); lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); -x_35 = lean_array_get_size(x_10); -x_36 = lean_array_push(x_10, x_34); +x_35 = lean_array_get_size(x_11); +x_36 = lean_array_push(x_11, x_34); x_37 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_13); +lean_ctor_set(x_37, 1, x_10); lean_ctor_set(x_37, 2, x_12); -lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_37, sizeof(void*)*3, x_13); x_38 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_38, 0, x_35); lean_ctor_set(x_38, 1, x_37); @@ -10221,13 +10441,13 @@ x_42 = 3; x_43 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_43, 0, x_41); lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); -x_44 = lean_array_get_size(x_10); -x_45 = lean_array_push(x_10, x_43); +x_44 = lean_array_get_size(x_11); +x_45 = lean_array_push(x_11, x_43); x_46 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_13); +lean_ctor_set(x_46, 1, x_10); lean_ctor_set(x_46, 2, x_12); -lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_13); x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_44); lean_ctor_set(x_47, 1, x_46); @@ -10253,13 +10473,13 @@ x_52 = 3; x_53 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_53, 0, x_51); lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); -x_54 = lean_array_get_size(x_10); -x_55 = lean_array_push(x_10, x_53); +x_54 = lean_array_get_size(x_11); +x_55 = lean_array_push(x_11, x_53); x_56 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_13); +lean_ctor_set(x_56, 1, x_10); lean_ctor_set(x_56, 2, x_12); -lean_ctor_set_uint8(x_56, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_56, sizeof(void*)*3, x_13); x_57 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_57, 0, x_54); lean_ctor_set(x_57, 1, x_56); @@ -10280,13 +10500,13 @@ x_61 = 3; x_62 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_62, 0, x_60); lean_ctor_set_uint8(x_62, sizeof(void*)*1, x_61); -x_63 = lean_array_get_size(x_10); -x_64 = lean_array_push(x_10, x_62); +x_63 = lean_array_get_size(x_11); +x_64 = lean_array_push(x_11, x_62); x_65 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_13); +lean_ctor_set(x_65, 1, x_10); lean_ctor_set(x_65, 2, x_12); -lean_ctor_set_uint8(x_65, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_65, sizeof(void*)*3, x_13); x_66 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_66, 0, x_63); lean_ctor_set(x_66, 1, x_65); @@ -10311,13 +10531,13 @@ x_71 = 3; x_72 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_72, 0, x_70); lean_ctor_set_uint8(x_72, sizeof(void*)*1, x_71); -x_73 = lean_array_get_size(x_10); -x_74 = lean_array_push(x_10, x_72); +x_73 = lean_array_get_size(x_11); +x_74 = lean_array_push(x_11, x_72); x_75 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_13); +lean_ctor_set(x_75, 1, x_10); lean_ctor_set(x_75, 2, x_12); -lean_ctor_set_uint8(x_75, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_75, sizeof(void*)*3, x_13); x_76 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_76, 0, x_73); lean_ctor_set(x_76, 1, x_75); @@ -10338,13 +10558,13 @@ x_80 = 3; x_81 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_81, 0, x_79); lean_ctor_set_uint8(x_81, sizeof(void*)*1, x_80); -x_82 = lean_array_get_size(x_10); -x_83 = lean_array_push(x_10, x_81); +x_82 = lean_array_get_size(x_11); +x_83 = lean_array_push(x_11, x_81); x_84 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_13); +lean_ctor_set(x_84, 1, x_10); lean_ctor_set(x_84, 2, x_12); -lean_ctor_set_uint8(x_84, sizeof(void*)*3, x_11); +lean_ctor_set_uint8(x_84, sizeof(void*)*3, x_13); x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_82); lean_ctor_set(x_85, 1, x_84); @@ -10370,10 +10590,10 @@ lean_inc(x_93); lean_dec_ref(x_88); x_94 = l_Lake_computeBinFileHash(x_1, x_89); lean_dec_ref(x_1); -x_10 = x_90; -x_11 = x_91; +x_10 = x_92; +x_11 = x_90; x_12 = x_93; -x_13 = x_92; +x_13 = x_91; x_14 = x_94; goto block_87; } @@ -10390,10 +10610,10 @@ lean_inc(x_98); lean_dec_ref(x_88); x_99 = l_Lake_computeTextFileHash(x_1, x_89); lean_dec_ref(x_1); -x_10 = x_95; -x_11 = x_96; +x_10 = x_97; +x_11 = x_95; x_12 = x_98; -x_13 = x_97; +x_13 = x_96; x_14 = x_99; goto block_87; } @@ -10817,7 +11037,46 @@ lean_dec_ref(x_3); return x_11; } } -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_unbox_uint64(x_6); +x_9 = lean_unbox_uint64(x_7); +x_10 = lean_uint64_dec_eq(x_8, x_9); +return x_10; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -10918,322 +11177,405 @@ return x_30; } } } -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -if (lean_obj_tag(x_1) == 0) +uint64_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_9 = lean_box_uint64(x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0(x_10, x_3); +lean_dec_ref(x_10); +if (x_11 == 0) { -if (lean_obj_tag(x_2) == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_5, 0); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*2); +if (x_13 == 0) { -uint8_t x_3; -x_3 = 1; -return x_3; +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_6); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_7); +return x_17; } else { -uint8_t x_4; -x_4 = 0; -return x_4; -} +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1(x_1, x_4, x_7); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +x_23 = 0; +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_6); +lean_ctor_set(x_18, 0, x_25); +return x_18; } else { -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unbox_uint64(x_6); -x_9 = lean_unbox_uint64(x_7); -x_10 = lean_uint64_dec_eq(x_8, x_9); -return x_10; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_15; lean_object* x_16; lean_object* x_17; -switch (lean_obj_tag(x_3)) { -case 0: -{ -lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_22 = lean_ctor_get(x_2, 2); -x_23 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_22, x_7); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_6); -lean_ctor_set(x_23, 0, x_26); -return x_23; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_27 = lean_ctor_get(x_23, 0); -x_28 = lean_ctor_get(x_23, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_23); +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = 0; +x_28 = lean_box(x_27); x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_6); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); +lean_ctor_set(x_30, 1, x_26); return x_30; } } -case 1: +else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_40; uint8_t x_41; -x_31 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_4, x_7); -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_34 = x_31; -} else { - lean_dec_ref(x_31); - x_34 = lean_box(0); -} -x_40 = lean_ctor_get(x_5, 0); -x_41 = lean_ctor_get_uint8(x_40, sizeof(void*)*2); -if (x_41 == 0) +uint8_t x_31; +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) { +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_18, 0); lean_dec(x_32); -x_35 = x_41; -goto block_39; +x_33 = 1; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_6); +lean_ctor_set(x_18, 0, x_35); +return x_18; } else { -uint8_t x_42; -x_42 = lean_unbox(x_32); -lean_dec(x_32); -x_35 = x_42; -goto block_39; +lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_18, 1); +lean_inc(x_36); +lean_dec(x_18); +x_37 = 1; +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_6); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_36); +return x_40; } -block_39: +} +} +} +else { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_box(x_35); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_6); -if (lean_is_scalar(x_34)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_34; -} -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_33); -return x_38; -} -} -default: -{ -uint8_t x_43; -x_43 = !lean_is_exclusive(x_3); +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = l_System_FilePath_pathExists(x_1, x_7); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); if (x_43 == 0) { -lean_object* x_44; uint64_t x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; uint64_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_44 = lean_ctor_get(x_3, 0); -x_45 = lean_ctor_get_uint64(x_44, sizeof(void*)*3); -x_46 = lean_ctor_get(x_44, 2); -lean_inc_ref(x_46); -lean_dec_ref(x_44); -x_84 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); -x_85 = lean_box_uint64(x_45); -lean_ctor_set_tag(x_3, 1); -lean_ctor_set(x_3, 0, x_85); -x_86 = lean_box_uint64(x_84); -x_87 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_87, 0, x_86); -x_88 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1(x_87, x_3); -lean_dec_ref(x_3); -lean_dec_ref(x_87); -if (x_88 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) { -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_5, 0); -x_90 = lean_ctor_get_uint8(x_89, sizeof(void*)*2); -if (x_90 == 0) -{ -lean_dec_ref(x_46); -x_8 = x_90; -x_9 = x_6; -x_10 = x_7; -goto block_14; +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_41, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_6); +lean_ctor_set(x_41, 0, x_48); +return x_41; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_91 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_4, x_7); -x_92 = lean_ctor_get(x_91, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -x_94 = lean_unbox(x_92); -lean_dec(x_92); -x_47 = x_94; -x_48 = x_6; -x_49 = x_93; -goto block_83; +lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_dec(x_41); +x_50 = 0; +x_51 = lean_box(x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_6); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_49); +return x_53; } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_95 = l_System_FilePath_pathExists(x_1, x_7); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec_ref(x_95); -x_98 = lean_unbox(x_96); -lean_dec(x_96); -x_47 = x_98; -x_48 = x_6; -x_49 = x_97; -goto block_83; -} -block_83: -{ -if (x_47 == 0) -{ -lean_dec_ref(x_46); -x_8 = x_47; -x_9 = x_48; -x_10 = x_49; -goto block_14; -} -else -{ -uint8_t x_50; -x_50 = !lean_is_exclusive(x_48); -if (x_50 == 0) -{ -uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_51 = lean_ctor_get_uint8(x_48, sizeof(void*)*3); -x_52 = 1; -x_53 = l_Lake_JobAction_merge(x_51, x_52); -lean_ctor_set_uint8(x_48, sizeof(void*)*3, x_53); -x_54 = lean_unsigned_to_nat(0u); -x_55 = lean_array_get_size(x_46); -x_56 = lean_nat_dec_lt(x_54, x_55); -if (x_56 == 0) +uint8_t x_54; +x_54 = !lean_is_exclusive(x_41); +if (x_54 == 0) { +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_41, 0); lean_dec(x_55); -lean_dec_ref(x_46); -x_15 = x_47; -x_16 = x_48; -x_17 = x_49; -goto block_21; +x_56 = 2; +x_57 = lean_box(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_6); +lean_ctor_set(x_41, 0, x_58); +return x_41; } else { -uint8_t x_57; -x_57 = lean_nat_dec_le(x_55, x_55); -if (x_57 == 0) +lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_dec(x_41); +x_60 = 2; +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_6); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: { -lean_dec(x_55); -lean_dec_ref(x_46); -x_15 = x_47; -x_16 = x_48; -x_17 = x_49; -goto block_21; +lean_object* x_12; +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_4) == 2) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_29; uint8_t x_30; uint8_t x_31; +x_13 = lean_ctor_get(x_4, 0); +x_14 = lean_ctor_get_uint64(x_13, sizeof(void*)*3); +x_15 = lean_ctor_get(x_13, 2); +lean_inc_ref(x_15); +lean_dec_ref(x_13); +x_16 = lean_box_uint64(x_14); +lean_ctor_set_tag(x_4, 1); +lean_ctor_set(x_4, 0, x_16); +x_17 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +lean_dec_ref(x_4); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_20 = x_17; +} else { + lean_dec_ref(x_17); + x_20 = lean_box(0); +} +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_23 = x_18; +} else { + lean_dec_ref(x_18); + x_23 = lean_box(0); +} +x_29 = 0; +x_30 = lean_unbox(x_21); +x_31 = l_Lake_instDecidableEqOutputStatus(x_30, x_29); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_33 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_34 = 1; +x_35 = l_Lake_JobAction_merge(x_33, x_34); +lean_ctor_set_uint8(x_22, sizeof(void*)*3, x_35); +x_36 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_22, x_19); +lean_dec_ref(x_15); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec_ref(x_36); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_24 = x_39; +x_25 = x_38; +goto block_28; } else { -lean_object* x_58; size_t x_59; size_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_58 = lean_box(0); -x_59 = 0; -x_60 = lean_usize_of_nat(x_55); -lean_dec(x_55); -x_61 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_46, x_59, x_60, x_58, x_48, x_49); -lean_dec_ref(x_46); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec_ref(x_61); -x_64 = lean_ctor_get(x_62, 1); -lean_inc(x_64); -lean_dec(x_62); -x_15 = x_47; -x_16 = x_64; -x_17 = x_63; -goto block_21; -} -} -} -else -{ -lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; -x_65 = lean_ctor_get(x_48, 0); -x_66 = lean_ctor_get_uint8(x_48, sizeof(void*)*3); -x_67 = lean_ctor_get(x_48, 1); -x_68 = lean_ctor_get(x_48, 2); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_65); +lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_40 = lean_ctor_get(x_22, 0); +x_41 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_42 = lean_ctor_get(x_22, 1); +x_43 = lean_ctor_get(x_22, 2); +lean_inc(x_43); +lean_inc(x_42); +lean_inc(x_40); +lean_dec(x_22); +x_44 = 1; +x_45 = l_Lake_JobAction_merge(x_41, x_44); +x_46 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_46, 0, x_40); +lean_ctor_set(x_46, 1, x_42); +lean_ctor_set(x_46, 2, x_43); +lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_45); +x_47 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_46, x_19); +lean_dec_ref(x_15); +x_48 = lean_ctor_get(x_47, 0); +lean_inc(x_48); +x_49 = lean_ctor_get(x_47, 1); +lean_inc(x_49); +lean_dec_ref(x_47); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); lean_dec(x_48); -x_69 = 1; -x_70 = l_Lake_JobAction_merge(x_66, x_69); -x_71 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_71, 0, x_65); -lean_ctor_set(x_71, 1, x_67); -lean_ctor_set(x_71, 2, x_68); -lean_ctor_set_uint8(x_71, sizeof(void*)*3, x_70); -x_72 = lean_unsigned_to_nat(0u); -x_73 = lean_array_get_size(x_46); -x_74 = lean_nat_dec_lt(x_72, x_73); -if (x_74 == 0) -{ -lean_dec(x_73); -lean_dec_ref(x_46); -x_15 = x_47; -x_16 = x_71; -x_17 = x_49; -goto block_21; +x_24 = x_50; +x_25 = x_49; +goto block_28; +} } else { -uint8_t x_75; -x_75 = lean_nat_dec_le(x_73, x_73); -if (x_75 == 0) +lean_dec_ref(x_15); +x_24 = x_22; +x_25 = x_19; +goto block_28; +} +block_28: { -lean_dec(x_73); -lean_dec_ref(x_46); -x_15 = x_47; -x_16 = x_71; -x_17 = x_49; -goto block_21; +lean_object* x_26; lean_object* x_27; +if (lean_is_scalar(x_23)) { + x_26 = lean_alloc_ctor(0, 2, 0); +} else { + x_26 = x_23; +} +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_24); +if (lean_is_scalar(x_20)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_20; +} +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} } else { -lean_object* x_76; size_t x_77; size_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_76 = lean_box(0); -x_77 = 0; -x_78 = lean_usize_of_nat(x_73); -lean_dec(x_73); -x_79 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_46, x_77, x_78, x_76, x_71, x_49); -lean_dec_ref(x_46); +lean_object* x_51; uint64_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_68; uint8_t x_69; uint8_t x_70; +x_51 = lean_ctor_get(x_4, 0); +lean_inc(x_51); +lean_dec(x_4); +x_52 = lean_ctor_get_uint64(x_51, sizeof(void*)*3); +x_53 = lean_ctor_get(x_51, 2); +lean_inc_ref(x_53); +lean_dec_ref(x_51); +x_54 = lean_box_uint64(x_52); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(x_2, x_3, x_55, x_5, x_9, x_10, x_11); +lean_dec_ref(x_55); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +if (lean_is_exclusive(x_56)) { + lean_ctor_release(x_56, 0); + lean_ctor_release(x_56, 1); + x_59 = x_56; +} else { + lean_dec_ref(x_56); + x_59 = lean_box(0); +} +x_60 = lean_ctor_get(x_57, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_57, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_62 = x_57; +} else { + lean_dec_ref(x_57); + x_62 = lean_box(0); +} +x_68 = 0; +x_69 = lean_unbox(x_60); +x_70 = l_Lake_instDecidableEqOutputStatus(x_69, x_68); +if (x_70 == 0) +{ +lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_71 = lean_ctor_get(x_61, 0); +lean_inc_ref(x_71); +x_72 = lean_ctor_get_uint8(x_61, sizeof(void*)*3); +x_73 = lean_ctor_get(x_61, 1); +lean_inc_ref(x_73); +x_74 = lean_ctor_get(x_61, 2); +lean_inc(x_74); +if (lean_is_exclusive(x_61)) { + lean_ctor_release(x_61, 0); + lean_ctor_release(x_61, 1); + lean_ctor_release(x_61, 2); + x_75 = x_61; +} else { + lean_dec_ref(x_61); + x_75 = lean_box(0); +} +x_76 = 1; +x_77 = l_Lake_JobAction_merge(x_72, x_76); +if (lean_is_scalar(x_75)) { + x_78 = lean_alloc_ctor(0, 3, 1); +} else { + x_78 = x_75; +} +lean_ctor_set(x_78, 0, x_71); +lean_ctor_set(x_78, 1, x_73); +lean_ctor_set(x_78, 2, x_74); +lean_ctor_set_uint8(x_78, sizeof(void*)*3, x_77); +x_79 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_53, x_1, x_6, x_7, x_8, x_9, x_78, x_58); +lean_dec_ref(x_53); x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); @@ -11242,210 +11584,138 @@ lean_dec_ref(x_79); x_82 = lean_ctor_get(x_80, 1); lean_inc(x_82); lean_dec(x_80); -x_15 = x_47; -x_16 = x_82; -x_17 = x_81; -goto block_21; +x_63 = x_82; +x_64 = x_81; +goto block_67; } +else +{ +lean_dec_ref(x_53); +x_63 = x_61; +x_64 = x_58; +goto block_67; } +block_67: +{ +lean_object* x_65; lean_object* x_66; +if (lean_is_scalar(x_62)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_62; } +lean_ctor_set(x_65, 0, x_60); +lean_ctor_set(x_65, 1, x_63); +if (lean_is_scalar(x_59)) { + x_66 = lean_alloc_ctor(0, 2, 0); +} else { + x_66 = x_59; +} +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_64); +return x_66; } } } else { -lean_object* x_99; uint64_t x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; uint64_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_99 = lean_ctor_get(x_3, 0); -lean_inc(x_99); -lean_dec(x_3); -x_100 = lean_ctor_get_uint64(x_99, sizeof(void*)*3); -x_101 = lean_ctor_get(x_99, 2); -lean_inc_ref(x_101); -lean_dec_ref(x_99); -x_125 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); -x_126 = lean_box_uint64(x_100); -x_127 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_127, 0, x_126); -x_128 = lean_box_uint64(x_125); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_128); -x_130 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1(x_129, x_127); -lean_dec_ref(x_127); -lean_dec_ref(x_129); -if (x_130 == 0) +lean_object* x_83; uint8_t x_84; +lean_dec(x_4); +x_83 = lean_ctor_get(x_9, 0); +x_84 = lean_ctor_get_uint8(x_83, sizeof(void*)*2); +if (x_84 == 0) { -lean_object* x_131; uint8_t x_132; -x_131 = lean_ctor_get(x_5, 0); -x_132 = lean_ctor_get_uint8(x_131, sizeof(void*)*2); -if (x_132 == 0) -{ -lean_dec_ref(x_101); -x_8 = x_132; -x_9 = x_6; -x_10 = x_7; -goto block_14; +uint8_t x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_85 = 0; +x_86 = lean_box(x_85); +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_86); +lean_ctor_set(x_87, 1, x_10); +x_88 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_11); +return x_88; } else { -lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_133 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_4, x_7); -x_134 = lean_ctor_get(x_133, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_133, 1); -lean_inc(x_135); -lean_dec_ref(x_133); -x_136 = lean_unbox(x_134); -lean_dec(x_134); -x_102 = x_136; -x_103 = x_6; -x_104 = x_135; -goto block_124; +lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_89 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1(x_2, x_5, x_11); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_unbox(x_90); +lean_dec(x_90); +if (x_91 == 0) +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_89); +if (x_92 == 0) +{ +lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; +x_93 = lean_ctor_get(x_89, 0); +lean_dec(x_93); +x_94 = 0; +x_95 = lean_box(x_94); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_10); +lean_ctor_set(x_89, 0, x_96); +return x_89; +} +else +{ +lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_89, 1); +lean_inc(x_97); +lean_dec(x_89); +x_98 = 0; +x_99 = lean_box(x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_10); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_97); +return x_101; } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = l_System_FilePath_pathExists(x_1, x_7); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec_ref(x_137); -x_140 = lean_unbox(x_138); -lean_dec(x_138); -x_102 = x_140; -x_103 = x_6; -x_104 = x_139; -goto block_124; -} -block_124: -{ +uint8_t x_102; +x_102 = !lean_is_exclusive(x_89); if (x_102 == 0) { -lean_dec_ref(x_101); -x_8 = x_102; -x_9 = x_103; -x_10 = x_104; -goto block_14; +lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_89, 0); +lean_dec(x_103); +x_104 = 1; +x_105 = lean_box(x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_10); +lean_ctor_set(x_89, 0, x_106); +return x_89; } else { -lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_105 = lean_ctor_get(x_103, 0); -lean_inc_ref(x_105); -x_106 = lean_ctor_get_uint8(x_103, sizeof(void*)*3); -x_107 = lean_ctor_get(x_103, 1); -lean_inc_ref(x_107); -x_108 = lean_ctor_get(x_103, 2); -lean_inc(x_108); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - lean_ctor_release(x_103, 2); - x_109 = x_103; -} else { - lean_dec_ref(x_103); - x_109 = lean_box(0); -} -x_110 = 1; -x_111 = l_Lake_JobAction_merge(x_106, x_110); -if (lean_is_scalar(x_109)) { - x_112 = lean_alloc_ctor(0, 3, 1); -} else { - x_112 = x_109; -} -lean_ctor_set(x_112, 0, x_105); -lean_ctor_set(x_112, 1, x_107); -lean_ctor_set(x_112, 2, x_108); -lean_ctor_set_uint8(x_112, sizeof(void*)*3, x_111); -x_113 = lean_unsigned_to_nat(0u); -x_114 = lean_array_get_size(x_101); -x_115 = lean_nat_dec_lt(x_113, x_114); -if (x_115 == 0) -{ -lean_dec(x_114); -lean_dec_ref(x_101); -x_15 = x_102; -x_16 = x_112; -x_17 = x_104; -goto block_21; -} -else -{ -uint8_t x_116; -x_116 = lean_nat_dec_le(x_114, x_114); -if (x_116 == 0) -{ -lean_dec(x_114); -lean_dec_ref(x_101); -x_15 = x_102; -x_16 = x_112; -x_17 = x_104; -goto block_21; -} -else -{ -lean_object* x_117; size_t x_118; size_t x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_117 = lean_box(0); -x_118 = 0; -x_119 = lean_usize_of_nat(x_114); -lean_dec(x_114); -x_120 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayOrFetchIfUpToDate_spec__0___redArg(x_101, x_118, x_119, x_117, x_112, x_104); -lean_dec_ref(x_101); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec_ref(x_120); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_15 = x_102; -x_16 = x_123; -x_17 = x_122; -goto block_21; +lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_107 = lean_ctor_get(x_89, 1); +lean_inc(x_107); +lean_dec(x_89); +x_108 = 1; +x_109 = lean_box(x_108); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_10); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_107); +return x_111; } } } } } } -} -block_14: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_box(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_10); -return x_13; -} -block_21: -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = lean_box(x_15); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_16); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); -return x_12; -} -} -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -11552,7 +11822,7 @@ return x_36; } } } -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_19; uint8_t x_20; @@ -11730,7 +12000,7 @@ block_39: { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; x_34 = lean_box(0); -x_35 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_25, x_34, x_32, x_33); +x_35 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_25, x_34, x_32, x_33); lean_dec(x_25); x_36 = lean_ctor_get(x_35, 0); lean_inc(x_36); @@ -11776,7 +12046,7 @@ lean_ctor_set(x_52, 1, x_56); lean_ctor_set(x_52, 0, x_40); x_57 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_57, 0, x_52); -x_58 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_25, x_57, x_41, x_54); +x_58 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_25, x_57, x_41, x_54); lean_dec_ref(x_57); lean_dec(x_25); x_59 = !lean_is_exclusive(x_58); @@ -11849,7 +12119,7 @@ lean_ctor_set(x_73, 0, x_40); lean_ctor_set(x_73, 1, x_72); x_74 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_74, 0, x_73); -x_75 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_25, x_74, x_41, x_71); +x_75 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_25, x_74, x_41, x_71); lean_dec_ref(x_74); lean_dec(x_25); x_76 = lean_ctor_get(x_75, 0); @@ -12076,7 +12346,7 @@ block_149: { lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; x_144 = lean_box(0); -x_145 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_134, x_144, x_142, x_143); +x_145 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_134, x_144, x_142, x_143); lean_dec(x_134); x_146 = lean_ctor_get(x_145, 0); lean_inc(x_146); @@ -12130,7 +12400,7 @@ lean_ctor_set(x_166, 0, x_150); lean_ctor_set(x_166, 1, x_165); x_167 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_167, 0, x_166); -x_168 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_134, x_167, x_151, x_163); +x_168 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_134, x_167, x_151, x_163); lean_dec_ref(x_167); lean_dec(x_134); x_169 = lean_ctor_get(x_168, 0); @@ -12284,236 +12554,244 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_buildFileUnlessUpToDate_x27(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_17; lean_object* x_18; lean_object* x_67; uint8_t x_72; -x_72 = !lean_is_exclusive(x_9); -if (x_72 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_17; lean_object* x_18; uint8_t x_67; +x_67 = !lean_is_exclusive(x_9); +if (x_67 == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_9, 0); -x_74 = lean_ctor_get(x_9, 1); -x_75 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_68 = lean_ctor_get(x_9, 0); +x_69 = lean_ctor_get(x_9, 1); +x_70 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; lean_inc_ref(x_1); -x_76 = lean_string_append(x_1, x_75); -lean_inc_ref(x_76); -x_77 = l_Lake_readTraceFile(x_76, x_73, x_10); -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -if (lean_obj_tag(x_78) == 0) +x_71 = lean_string_append(x_1, x_70); +lean_inc_ref(x_71); +x_72 = l_Lake_readTraceFile(x_71, x_68, x_10); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +if (lean_obj_tag(x_73) == 0) { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_79 = lean_ctor_get(x_77, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec_ref(x_72); +x_75 = lean_ctor_get(x_73, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec_ref(x_73); +x_77 = lean_ctor_get(x_69, 2); +lean_inc_ref(x_69); +lean_ctor_set(x_9, 0, x_76); +x_78 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_4, x_1, x_69, x_75, x_77, x_5, x_6, x_7, x_8, x_9, x_74); +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec_ref(x_77); -x_80 = lean_ctor_get(x_78, 0); +x_80 = lean_ctor_get(x_78, 1); lean_inc(x_80); -x_81 = lean_ctor_get(x_78, 1); -lean_inc(x_81); lean_dec_ref(x_78); -x_82 = lean_ctor_get(x_74, 2); -lean_inc_ref(x_74); -lean_ctor_set(x_9, 0, x_81); -x_83 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_74, x_80, x_82, x_8, x_9, x_79); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_84, 0); -x_86 = lean_unbox(x_85); -if (x_86 == 0) +x_81 = lean_ctor_get(x_79, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = 0; +x_84 = lean_unbox(x_81); +lean_dec(x_81); +x_85 = l_Lake_instDecidableEqOutputStatus(x_84, x_83); +if (x_85 == 0) { -lean_object* x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; -x_87 = lean_ctor_get(x_83, 1); -lean_inc(x_87); -lean_dec_ref(x_83); -x_88 = lean_ctor_get(x_84, 1); -lean_inc(x_88); -lean_dec(x_84); -x_89 = 3; -lean_inc_ref(x_8); -lean_inc_ref(x_1); -x_90 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3(x_2, x_1, x_4, x_74, x_76, x_89, x_5, x_6, x_7, x_8, x_88, x_87); -lean_dec_ref(x_76); -lean_dec_ref(x_74); -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -if (lean_obj_tag(x_91) == 0) -{ -lean_object* x_92; lean_object* x_93; -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec_ref(x_90); -x_93 = lean_ctor_get(x_91, 1); -lean_inc(x_93); -lean_dec_ref(x_91); -x_17 = x_93; -x_18 = x_92; +lean_dec_ref(x_71); +lean_dec_ref(x_69); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +x_17 = x_82; +x_18 = x_80; goto block_66; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; +uint8_t x_86; lean_object* x_87; lean_object* x_88; +x_86 = 3; +lean_inc_ref(x_8); +lean_inc_ref(x_1); +x_87 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4(x_2, x_1, x_4, x_69, x_71, x_86, x_5, x_6, x_7, x_8, x_82, x_80); +lean_dec_ref(x_71); +lean_dec_ref(x_69); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +if (lean_obj_tag(x_88) == 0) +{ +lean_object* x_89; lean_object* x_90; +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec_ref(x_87); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec_ref(x_88); +x_17 = x_90; +x_18 = x_89; +goto block_66; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_dec_ref(x_8); lean_dec_ref(x_1); -x_94 = lean_ctor_get(x_90, 1); +x_91 = lean_ctor_get(x_87, 1); +lean_inc(x_91); +lean_dec_ref(x_87); +x_92 = lean_ctor_get(x_88, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_88, 1); +lean_inc(x_93); +lean_dec_ref(x_88); +x_11 = x_92; +x_12 = x_93; +x_13 = x_91; +goto block_16; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec_ref(x_71); +lean_dec_ref(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_94 = lean_ctor_get(x_72, 1); lean_inc(x_94); -lean_dec_ref(x_90); -x_95 = lean_ctor_get(x_91, 0); +lean_dec_ref(x_72); +x_95 = lean_ctor_get(x_73, 0); lean_inc(x_95); -x_96 = lean_ctor_get(x_91, 1); +x_96 = lean_ctor_get(x_73, 1); lean_inc(x_96); -lean_dec_ref(x_91); +lean_dec_ref(x_73); +lean_ctor_set(x_9, 0, x_96); x_11 = x_95; -x_12 = x_96; +x_12 = x_9; x_13 = x_94; goto block_16; } } else { -lean_dec(x_84); -lean_dec_ref(x_76); -lean_dec_ref(x_74); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -x_67 = x_83; -goto block_71; -} -} -else -{ -lean_object* x_97; lean_object* x_98; lean_object* x_99; -lean_dec_ref(x_76); -lean_dec_ref(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_97 = lean_ctor_get(x_77, 1); -lean_inc(x_97); -lean_dec_ref(x_77); -x_98 = lean_ctor_get(x_78, 0); -lean_inc(x_98); -x_99 = lean_ctor_get(x_78, 1); -lean_inc(x_99); -lean_dec_ref(x_78); -lean_ctor_set(x_9, 0, x_99); -x_11 = x_98; -x_12 = x_9; -x_13 = x_97; -goto block_16; -} -} -else -{ -lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_100 = lean_ctor_get(x_9, 0); -x_101 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); -x_102 = lean_ctor_get(x_9, 1); -x_103 = lean_ctor_get(x_9, 2); -lean_inc(x_103); -lean_inc(x_102); +lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_97 = lean_ctor_get(x_9, 0); +x_98 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); +x_99 = lean_ctor_get(x_9, 1); +x_100 = lean_ctor_get(x_9, 2); lean_inc(x_100); +lean_inc(x_99); +lean_inc(x_97); lean_dec(x_9); -x_104 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; +x_101 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; lean_inc_ref(x_1); -x_105 = lean_string_append(x_1, x_104); -lean_inc_ref(x_105); -x_106 = l_Lake_readTraceFile(x_105, x_100, x_10); -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -if (lean_obj_tag(x_107) == 0) -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; -x_108 = lean_ctor_get(x_106, 1); -lean_inc(x_108); -lean_dec_ref(x_106); -x_109 = lean_ctor_get(x_107, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_107, 1); -lean_inc(x_110); -lean_dec_ref(x_107); -x_111 = lean_ctor_get(x_102, 2); +x_102 = lean_string_append(x_1, x_101); lean_inc_ref(x_102); -x_112 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_102); -lean_ctor_set(x_112, 2, x_103); -lean_ctor_set_uint8(x_112, sizeof(void*)*3, x_101); -x_113 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_102, x_109, x_111, x_8, x_112, x_108); -x_114 = lean_ctor_get(x_113, 0); +x_103 = l_Lake_readTraceFile(x_102, x_97, x_10); +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec_ref(x_103); +x_106 = lean_ctor_get(x_104, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_104, 1); +lean_inc(x_107); +lean_dec_ref(x_104); +x_108 = lean_ctor_get(x_99, 2); +lean_inc_ref(x_99); +x_109 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_99); +lean_ctor_set(x_109, 2, x_100); +lean_ctor_set_uint8(x_109, sizeof(void*)*3, x_98); +x_110 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_4, x_1, x_99, x_106, x_108, x_5, x_6, x_7, x_8, x_109, x_105); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec_ref(x_110); +x_113 = lean_ctor_get(x_111, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_111, 1); lean_inc(x_114); -x_115 = lean_ctor_get(x_114, 0); -x_116 = lean_unbox(x_115); -if (x_116 == 0) +lean_dec(x_111); +x_115 = 0; +x_116 = lean_unbox(x_113); +lean_dec(x_113); +x_117 = l_Lake_instDecidableEqOutputStatus(x_116, x_115); +if (x_117 == 0) { -lean_object* x_117; lean_object* x_118; uint8_t x_119; lean_object* x_120; lean_object* x_121; -x_117 = lean_ctor_get(x_113, 1); -lean_inc(x_117); -lean_dec_ref(x_113); -x_118 = lean_ctor_get(x_114, 1); -lean_inc(x_118); -lean_dec(x_114); -x_119 = 3; -lean_inc_ref(x_8); -lean_inc_ref(x_1); -x_120 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3(x_2, x_1, x_4, x_102, x_105, x_119, x_5, x_6, x_7, x_8, x_118, x_117); -lean_dec_ref(x_105); lean_dec_ref(x_102); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec_ref(x_120); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec_ref(x_121); -x_17 = x_123; -x_18 = x_122; +lean_dec_ref(x_99); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +x_17 = x_114; +x_18 = x_112; goto block_66; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; +uint8_t x_118; lean_object* x_119; lean_object* x_120; +x_118 = 3; +lean_inc_ref(x_8); +lean_inc_ref(x_1); +x_119 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4(x_2, x_1, x_4, x_99, x_102, x_118, x_5, x_6, x_7, x_8, x_114, x_112); +lean_dec_ref(x_102); +lean_dec_ref(x_99); +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +if (lean_obj_tag(x_120) == 0) +{ +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec_ref(x_119); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec_ref(x_120); +x_17 = x_122; +x_18 = x_121; +goto block_66; +} +else +{ +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_dec_ref(x_8); lean_dec_ref(x_1); -x_124 = lean_ctor_get(x_120, 1); +x_123 = lean_ctor_get(x_119, 1); +lean_inc(x_123); +lean_dec_ref(x_119); +x_124 = lean_ctor_get(x_120, 0); lean_inc(x_124); -lean_dec_ref(x_120); -x_125 = lean_ctor_get(x_121, 0); +x_125 = lean_ctor_get(x_120, 1); lean_inc(x_125); -x_126 = lean_ctor_get(x_121, 1); -lean_inc(x_126); -lean_dec_ref(x_121); -x_11 = x_125; -x_12 = x_126; -x_13 = x_124; +lean_dec_ref(x_120); +x_11 = x_124; +x_12 = x_125; +x_13 = x_123; goto block_16; } } +} else { -lean_dec(x_114); -lean_dec_ref(x_105); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_dec_ref(x_102); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -x_67 = x_113; -goto block_71; -} -} -else -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec_ref(x_105); lean_dec_ref(x_8); lean_dec(x_7); lean_dec(x_6); @@ -12521,22 +12799,22 @@ lean_dec(x_5); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_127 = lean_ctor_get(x_106, 1); +x_126 = lean_ctor_get(x_103, 1); +lean_inc(x_126); +lean_dec_ref(x_103); +x_127 = lean_ctor_get(x_104, 0); lean_inc(x_127); -lean_dec_ref(x_106); -x_128 = lean_ctor_get(x_107, 0); +x_128 = lean_ctor_get(x_104, 1); lean_inc(x_128); -x_129 = lean_ctor_get(x_107, 1); -lean_inc(x_129); -lean_dec_ref(x_107); -x_130 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_102); -lean_ctor_set(x_130, 2, x_103); -lean_ctor_set_uint8(x_130, sizeof(void*)*3, x_101); -x_11 = x_128; -x_12 = x_130; -x_13 = x_127; +lean_dec_ref(x_104); +x_129 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_99); +lean_ctor_set(x_129, 2, x_100); +lean_ctor_set_uint8(x_129, sizeof(void*)*3, x_98); +x_11 = x_127; +x_12 = x_129; +x_13 = x_126; goto block_16; } } @@ -12758,61 +13036,64 @@ return x_65; } } } -block_71: -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec_ref(x_67); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec(x_68); -x_17 = x_70; -x_18 = x_69; -goto block_66; } } -} -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_2, x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__1(x_1, x_2); +x_3 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__0(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0_spec__1(x_1, x_2, x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); +lean_dec(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_9); lean_dec(x_8); lean_dec(x_7); @@ -12824,22 +13105,22 @@ lean_dec_ref(x_1); return x_12; } } -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___lam__0(x_1, x_2, x_3, x_4); +x_5 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___lam__0(x_1, x_2, x_3, x_4); lean_dec(x_2); lean_dec(x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; lean_object* x_14; x_13 = lean_unbox(x_6); -x_14 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__3(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11, x_12); +x_14 = l_Lake_buildAction___at___Lake_buildFileUnlessUpToDate_x27_spec__4(x_1, x_2, x_3, x_4, x_5, x_13, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec_ref(x_5); lean_dec_ref(x_4); return x_14; @@ -12886,544 +13167,583 @@ lean_ctor_set(x_2, 2, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7) { _start: { if (x_4 == 0) { -lean_object* x_7; -x_7 = l_IO_FS_readBinFile(x_2, x_6); -if (lean_obj_tag(x_7) == 0) +lean_object* x_8; +x_8 = l_IO_FS_readBinFile(x_2, x_7); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_19; lean_object* x_20; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_24; lean_object* x_25; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_10 = x_7; +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + x_11 = x_8; } else { - lean_dec_ref(x_7); - x_10 = lean_box(0); + lean_dec_ref(x_8); + x_11 = lean_box(0); } -x_11 = lean_byte_array_hash(x_8); +x_12 = lean_byte_array_hash(x_9); lean_inc_ref(x_3); -x_12 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_12, 0, x_3); -lean_ctor_set_uint64(x_12, sizeof(void*)*1, x_11); -x_34 = l_Lake_Cache_saveArtifact___closed__0; -x_35 = l_System_FilePath_join(x_1, x_34); -x_59 = lean_string_utf8_byte_size(x_3); -x_60 = lean_unsigned_to_nat(0u); -x_61 = lean_nat_dec_eq(x_59, x_60); -lean_dec(x_59); -if (x_61 == 0) +x_13 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_13, 0, x_3); +lean_ctor_set_uint64(x_13, sizeof(void*)*1, x_12); +x_39 = l_Lake_Cache_saveArtifact___closed__0; +x_40 = l_System_FilePath_join(x_1, x_39); +x_64 = lean_string_utf8_byte_size(x_3); +x_65 = lean_unsigned_to_nat(0u); +x_66 = lean_nat_dec_eq(x_64, x_65); +lean_dec(x_64); +if (x_66 == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_62 = l_Lake_Hash_hex(x_11); -x_63 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; -x_64 = lean_string_append(x_62, x_63); -x_65 = lean_string_append(x_64, x_3); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = l_Lake_Hash_hex(x_12); +x_68 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; +x_69 = lean_string_append(x_67, x_68); +x_70 = lean_string_append(x_69, x_3); lean_dec_ref(x_3); -x_36 = x_65; -goto block_58; -} -else -{ -lean_object* x_66; -lean_dec_ref(x_3); -x_66 = l_Lake_Hash_hex(x_11); -x_36 = x_66; -goto block_58; -} -block_18: -{ -lean_object* x_16; lean_object* x_17; -x_16 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_16, 0, x_12); -lean_ctor_set(x_16, 1, x_14); -lean_ctor_set(x_16, 2, x_2); -lean_ctor_set(x_16, 3, x_15); -if (lean_is_scalar(x_10)) { - x_17 = lean_alloc_ctor(0, 2, 0); -} else { - x_17 = x_10; -} -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_13); -return x_17; -} -block_33: -{ -lean_object* x_21; -lean_inc_ref(x_2); -x_21 = l_Lake_writeFileHash(x_2, x_11, x_20); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec_ref(x_21); -x_23 = lean_io_metadata(x_19, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec_ref(x_23); -x_26 = lean_ctor_get(x_24, 1); -lean_inc_ref(x_26); -lean_dec(x_24); -x_13 = x_25; -x_14 = x_19; -x_15 = x_26; -goto block_18; -} -else -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec_ref(x_23); -x_28 = l_Lake_platformTrace___closed__6; -x_13 = x_27; -x_14 = x_19; -x_15 = x_28; -goto block_18; -} -} -else -{ -uint8_t x_29; -lean_dec_ref(x_19); -lean_dec_ref(x_12); -lean_dec(x_10); -lean_dec_ref(x_2); -x_29 = !lean_is_exclusive(x_21); -if (x_29 == 0) -{ -return x_21; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_21, 0); -x_31 = lean_ctor_get(x_21, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_21); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -block_58: -{ -lean_object* x_37; lean_object* x_38; -x_37 = l_Lake_joinRelative(x_35, x_36); -lean_dec_ref(x_36); -x_38 = l_Lake_createParentDirs(x_37, x_9); -if (lean_obj_tag(x_38) == 0) -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_38, 1); -lean_inc(x_39); -lean_dec_ref(x_38); -x_40 = l_IO_FS_writeBinFile(x_37, x_8, x_39); -lean_dec(x_8); -if (lean_obj_tag(x_40) == 0) -{ -if (x_5 == 0) -{ -lean_object* x_41; -x_41 = lean_ctor_get(x_40, 1); -lean_inc(x_41); -lean_dec_ref(x_40); -x_19 = x_37; -x_20 = x_41; -goto block_33; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec_ref(x_40); -x_43 = l_Lake_Cache_saveArtifact___closed__2; -x_44 = l_IO_setAccessRights(x_37, x_43, x_42); -if (lean_obj_tag(x_44) == 0) -{ -lean_object* x_45; -x_45 = lean_ctor_get(x_44, 1); -lean_inc(x_45); -lean_dec_ref(x_44); -x_19 = x_37; -x_20 = x_45; -goto block_33; -} -else -{ -uint8_t x_46; -lean_dec_ref(x_37); -lean_dec_ref(x_12); -lean_dec(x_10); -lean_dec_ref(x_2); -x_46 = !lean_is_exclusive(x_44); -if (x_46 == 0) -{ -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_44, 0); -x_48 = lean_ctor_get(x_44, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_44); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; -} -} -} -} -else -{ -uint8_t x_50; -lean_dec_ref(x_37); -lean_dec_ref(x_12); -lean_dec(x_10); -lean_dec_ref(x_2); -x_50 = !lean_is_exclusive(x_40); -if (x_50 == 0) -{ -return x_40; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_40, 0); -x_52 = lean_ctor_get(x_40, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_40); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -uint8_t x_54; -lean_dec_ref(x_37); -lean_dec_ref(x_12); -lean_dec(x_10); -lean_dec(x_8); -lean_dec_ref(x_2); -x_54 = !lean_is_exclusive(x_38); -if (x_54 == 0) -{ -return x_38; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_38, 0); -x_56 = lean_ctor_get(x_38, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_38); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -} -else -{ -uint8_t x_67; -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_67 = !lean_is_exclusive(x_7); -if (x_67 == 0) -{ -return x_7; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_7, 0); -x_69 = lean_ctor_get(x_7, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_7); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} +x_41 = x_70; +goto block_63; } else { lean_object* x_71; -x_71 = l_IO_FS_readFile(x_2, x_6); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint64_t x_76; uint64_t x_77; uint64_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_115; lean_object* x_116; uint8_t x_117; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); -lean_inc(x_73); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_74 = x_71; -} else { - lean_dec_ref(x_71); - x_74 = lean_box(0); -} -x_75 = l_String_crlfToLf(x_72); -lean_dec(x_72); -x_76 = l_Lake_platformTrace___closed__1; -x_77 = lean_string_hash(x_75); -x_78 = lean_uint64_mix_hash(x_76, x_77); -lean_inc_ref(x_3); -x_79 = lean_alloc_ctor(0, 1, 8); -lean_ctor_set(x_79, 0, x_3); -lean_ctor_set_uint64(x_79, sizeof(void*)*1, x_78); -x_86 = l_Lake_Cache_saveArtifact___closed__0; -x_87 = l_System_FilePath_join(x_1, x_86); -x_115 = lean_string_utf8_byte_size(x_3); -x_116 = lean_unsigned_to_nat(0u); -x_117 = lean_nat_dec_eq(x_115, x_116); -lean_dec(x_115); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = l_Lake_Hash_hex(x_78); -x_119 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; -x_120 = lean_string_append(x_118, x_119); -x_121 = lean_string_append(x_120, x_3); lean_dec_ref(x_3); -x_88 = x_121; -goto block_114; +x_71 = l_Lake_Hash_hex(x_12); +x_41 = x_71; +goto block_63; +} +block_19: +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_17, 0, x_13); +lean_ctor_set(x_17, 1, x_16); +lean_ctor_set(x_17, 2, x_2); +lean_ctor_set(x_17, 3, x_15); +if (lean_is_scalar(x_11)) { + x_18 = lean_alloc_ctor(0, 2, 0); +} else { + x_18 = x_11; +} +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_14); +return x_18; +} +block_23: +{ +if (x_6 == 0) +{ +x_14 = x_21; +x_15 = x_22; +x_16 = x_20; +goto block_19; } else { -lean_object* x_122; -lean_dec_ref(x_3); -x_122 = l_Lake_Hash_hex(x_78); -x_88 = x_122; -goto block_114; -} -block_85: -{ -lean_object* x_83; lean_object* x_84; -x_83 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_83, 0, x_79); -lean_ctor_set(x_83, 1, x_81); -lean_ctor_set(x_83, 2, x_2); -lean_ctor_set(x_83, 3, x_82); -if (lean_is_scalar(x_74)) { - x_84 = lean_alloc_ctor(0, 2, 0); -} else { - x_84 = x_74; -} -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_80); -return x_84; -} -block_114: -{ -lean_object* x_89; lean_object* x_90; -x_89 = l_Lake_joinRelative(x_87, x_88); -lean_dec_ref(x_88); -x_90 = l_Lake_createParentDirs(x_89, x_73); -if (lean_obj_tag(x_90) == 0) -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec_ref(x_90); -x_92 = l_IO_FS_writeFile(x_89, x_75, x_91); -lean_dec_ref(x_75); -if (lean_obj_tag(x_92) == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_92, 1); -lean_inc(x_93); -lean_dec_ref(x_92); +lean_dec_ref(x_20); lean_inc_ref(x_2); -x_94 = l_Lake_writeFileHash(x_2, x_78, x_93); -if (lean_obj_tag(x_94) == 0) +x_14 = x_21; +x_15 = x_22; +x_16 = x_2; +goto block_19; +} +} +block_38: { -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec_ref(x_94); -x_96 = lean_io_metadata(x_89, x_95); -if (lean_obj_tag(x_96) == 0) +lean_object* x_26; +lean_inc_ref(x_2); +x_26 = l_Lake_writeFileHash(x_2, x_12, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_96, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_96, 1); -lean_inc(x_98); -lean_dec_ref(x_96); -x_99 = lean_ctor_get(x_97, 1); -lean_inc_ref(x_99); -lean_dec(x_97); -x_80 = x_98; -x_81 = x_89; -x_82 = x_99; -goto block_85; +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec_ref(x_26); +x_28 = lean_io_metadata(x_24, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec_ref(x_28); +x_31 = lean_ctor_get(x_29, 1); +lean_inc_ref(x_31); +lean_dec(x_29); +x_20 = x_24; +x_21 = x_30; +x_22 = x_31; +goto block_23; } else { -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_96, 1); -lean_inc(x_100); -lean_dec_ref(x_96); -x_101 = l_Lake_platformTrace___closed__6; -x_80 = x_100; -x_81 = x_89; -x_82 = x_101; -goto block_85; +lean_object* x_32; lean_object* x_33; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec_ref(x_28); +x_33 = l_Lake_platformTrace___closed__6; +x_20 = x_24; +x_21 = x_32; +x_22 = x_33; +goto block_23; } } else { -uint8_t x_102; -lean_dec_ref(x_89); -lean_dec_ref(x_79); -lean_dec(x_74); +uint8_t x_34; +lean_dec_ref(x_24); +lean_dec_ref(x_13); +lean_dec(x_11); lean_dec_ref(x_2); -x_102 = !lean_is_exclusive(x_94); -if (x_102 == 0) +x_34 = !lean_is_exclusive(x_26); +if (x_34 == 0) { -return x_94; +return x_26; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_94, 0); -x_104 = lean_ctor_get(x_94, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_94); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -return x_105; +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_26, 0); +x_36 = lean_ctor_get(x_26, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_26); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } +block_63: +{ +lean_object* x_42; lean_object* x_43; +x_42 = l_Lake_joinRelative(x_40, x_41); +lean_dec_ref(x_41); +x_43 = l_Lake_createParentDirs(x_42, x_10); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_43, 1); +lean_inc(x_44); +lean_dec_ref(x_43); +x_45 = l_IO_FS_writeBinFile(x_42, x_9, x_44); +lean_dec(x_9); +if (lean_obj_tag(x_45) == 0) +{ +if (x_5 == 0) +{ +lean_object* x_46; +x_46 = lean_ctor_get(x_45, 1); +lean_inc(x_46); +lean_dec_ref(x_45); +x_24 = x_42; +x_25 = x_46; +goto block_38; +} else { -uint8_t x_106; -lean_dec_ref(x_89); -lean_dec_ref(x_79); -lean_dec(x_74); +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec_ref(x_45); +x_48 = l_Lake_Cache_saveArtifact___closed__2; +x_49 = l_IO_setAccessRights(x_42, x_48, x_47); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_49, 1); +lean_inc(x_50); +lean_dec_ref(x_49); +x_24 = x_42; +x_25 = x_50; +goto block_38; +} +else +{ +uint8_t x_51; +lean_dec_ref(x_42); +lean_dec_ref(x_13); +lean_dec(x_11); lean_dec_ref(x_2); -x_106 = !lean_is_exclusive(x_92); -if (x_106 == 0) +x_51 = !lean_is_exclusive(x_49); +if (x_51 == 0) { -return x_92; +return x_49; } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_92, 0); -x_108 = lean_ctor_get(x_92, 1); -lean_inc(x_108); -lean_inc(x_107); -lean_dec(x_92); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_49, 0); +x_53 = lean_ctor_get(x_49, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_49); +x_54 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set(x_54, 1, x_53); +return x_54; +} } } } else { -uint8_t x_110; -lean_dec_ref(x_89); -lean_dec_ref(x_79); -lean_dec_ref(x_75); -lean_dec(x_74); +uint8_t x_55; +lean_dec_ref(x_42); +lean_dec_ref(x_13); +lean_dec(x_11); lean_dec_ref(x_2); -x_110 = !lean_is_exclusive(x_90); -if (x_110 == 0) +x_55 = !lean_is_exclusive(x_45); +if (x_55 == 0) { -return x_90; +return x_45; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_90, 0); -x_112 = lean_ctor_get(x_90, 1); -lean_inc(x_112); -lean_inc(x_111); -lean_dec(x_90); -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -return x_113; +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_45, 0); +x_57 = lean_ctor_get(x_45, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_45); +x_58 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +return x_58; +} +} +} +else +{ +uint8_t x_59; +lean_dec_ref(x_42); +lean_dec_ref(x_13); +lean_dec(x_11); +lean_dec(x_9); +lean_dec_ref(x_2); +x_59 = !lean_is_exclusive(x_43); +if (x_59 == 0) +{ +return x_43; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_43, 0); +x_61 = lean_ctor_get(x_43, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_43); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set(x_62, 1, x_61); +return x_62; } } } } else { -uint8_t x_123; +uint8_t x_72; lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_123 = !lean_is_exclusive(x_71); -if (x_123 == 0) +x_72 = !lean_is_exclusive(x_8); +if (x_72 == 0) { -return x_71; +return x_8; } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_124 = lean_ctor_get(x_71, 0); -x_125 = lean_ctor_get(x_71, 1); -lean_inc(x_125); -lean_inc(x_124); -lean_dec(x_71); -x_126 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_126, 0, x_124); -lean_ctor_set(x_126, 1, x_125); -return x_126; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_8, 0); +x_74 = lean_ctor_get(x_8, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_8); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +else +{ +lean_object* x_76; +x_76 = l_IO_FS_readFile(x_2, x_7); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint64_t x_81; uint64_t x_82; uint64_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_124; lean_object* x_125; uint8_t x_126; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_79 = x_76; +} else { + lean_dec_ref(x_76); + x_79 = lean_box(0); +} +x_80 = l_String_crlfToLf(x_77); +lean_dec(x_77); +x_81 = l_Lake_platformTrace___closed__1; +x_82 = lean_string_hash(x_80); +x_83 = lean_uint64_mix_hash(x_81, x_82); +lean_inc_ref(x_3); +x_84 = lean_alloc_ctor(0, 1, 8); +lean_ctor_set(x_84, 0, x_3); +lean_ctor_set_uint64(x_84, sizeof(void*)*1, x_83); +x_95 = l_Lake_Cache_saveArtifact___closed__0; +x_96 = l_System_FilePath_join(x_1, x_95); +x_124 = lean_string_utf8_byte_size(x_3); +x_125 = lean_unsigned_to_nat(0u); +x_126 = lean_nat_dec_eq(x_124, x_125); +lean_dec(x_124); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_127 = l_Lake_Hash_hex(x_83); +x_128 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; +x_129 = lean_string_append(x_127, x_128); +x_130 = lean_string_append(x_129, x_3); +lean_dec_ref(x_3); +x_97 = x_130; +goto block_123; +} +else +{ +lean_object* x_131; +lean_dec_ref(x_3); +x_131 = l_Lake_Hash_hex(x_83); +x_97 = x_131; +goto block_123; +} +block_90: +{ +lean_object* x_88; lean_object* x_89; +x_88 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_88, 0, x_84); +lean_ctor_set(x_88, 1, x_87); +lean_ctor_set(x_88, 2, x_2); +lean_ctor_set(x_88, 3, x_86); +if (lean_is_scalar(x_79)) { + x_89 = lean_alloc_ctor(0, 2, 0); +} else { + x_89 = x_79; +} +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_85); +return x_89; +} +block_94: +{ +if (x_6 == 0) +{ +x_85 = x_92; +x_86 = x_93; +x_87 = x_91; +goto block_90; +} +else +{ +lean_dec_ref(x_91); +lean_inc_ref(x_2); +x_85 = x_92; +x_86 = x_93; +x_87 = x_2; +goto block_90; +} +} +block_123: +{ +lean_object* x_98; lean_object* x_99; +x_98 = l_Lake_joinRelative(x_96, x_97); +lean_dec_ref(x_97); +x_99 = l_Lake_createParentDirs(x_98, x_78); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec_ref(x_99); +x_101 = l_IO_FS_writeFile(x_98, x_80, x_100); +lean_dec_ref(x_80); +if (lean_obj_tag(x_101) == 0) +{ +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec_ref(x_101); +lean_inc_ref(x_2); +x_103 = l_Lake_writeFileHash(x_2, x_83, x_102); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec_ref(x_103); +x_105 = lean_io_metadata(x_98, x_104); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec_ref(x_105); +x_108 = lean_ctor_get(x_106, 1); +lean_inc_ref(x_108); +lean_dec(x_106); +x_91 = x_98; +x_92 = x_107; +x_93 = x_108; +goto block_94; +} +else +{ +lean_object* x_109; lean_object* x_110; +x_109 = lean_ctor_get(x_105, 1); +lean_inc(x_109); +lean_dec_ref(x_105); +x_110 = l_Lake_platformTrace___closed__6; +x_91 = x_98; +x_92 = x_109; +x_93 = x_110; +goto block_94; +} +} +else +{ +uint8_t x_111; +lean_dec_ref(x_98); +lean_dec_ref(x_84); +lean_dec(x_79); +lean_dec_ref(x_2); +x_111 = !lean_is_exclusive(x_103); +if (x_111 == 0) +{ +return x_103; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_103, 0); +x_113 = lean_ctor_get(x_103, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_103); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +else +{ +uint8_t x_115; +lean_dec_ref(x_98); +lean_dec_ref(x_84); +lean_dec(x_79); +lean_dec_ref(x_2); +x_115 = !lean_is_exclusive(x_101); +if (x_115 == 0) +{ +return x_101; +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_101, 0); +x_117 = lean_ctor_get(x_101, 1); +lean_inc(x_117); +lean_inc(x_116); +lean_dec(x_101); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; +} +} +} +else +{ +uint8_t x_119; +lean_dec_ref(x_98); +lean_dec_ref(x_84); +lean_dec_ref(x_80); +lean_dec(x_79); +lean_dec_ref(x_2); +x_119 = !lean_is_exclusive(x_99); +if (x_119 == 0) +{ +return x_99; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_99, 0); +x_121 = lean_ctor_get(x_99, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_99); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +} +else +{ +uint8_t x_132; +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_132 = !lean_is_exclusive(x_76); +if (x_132 == 0) +{ +return x_76; +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; +x_133 = lean_ctor_get(x_76, 0); +x_134 = lean_ctor_get(x_76, 1); +lean_inc(x_134); +lean_inc(x_133); +lean_dec(x_76); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +return x_135; } } } } } -LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_Cache_saveArtifact___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_7; uint8_t x_8; lean_object* x_9; -x_7 = lean_unbox(x_4); -x_8 = lean_unbox(x_5); -x_9 = l_Lake_Cache_saveArtifact(x_1, x_2, x_3, x_7, x_8, x_6); -return x_9; +uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; +x_8 = lean_unbox(x_4); +x_9 = lean_unbox(x_5); +x_10 = lean_unbox(x_6); +x_11 = l_Lake_Cache_saveArtifact(x_1, x_2, x_3, x_8, x_9, x_10, x_7); +return x_11; } } LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__0(lean_object* x_1) { @@ -13435,74 +13755,80 @@ lean_inc_ref(x_2); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_7 = lean_box(x_3); -x_8 = lean_box(x_4); -x_9 = lean_alloc_closure((void*)(l_Lake_Cache_saveArtifact___boxed), 6, 5); -lean_closure_set(x_9, 0, x_6); -lean_closure_set(x_9, 1, x_1); -lean_closure_set(x_9, 2, x_2); -lean_closure_set(x_9, 3, x_7); -lean_closure_set(x_9, 4, x_8); -x_10 = lean_apply_2(x_5, lean_box(0), x_9); -return x_10; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_box(x_3); +x_9 = lean_box(x_4); +x_10 = lean_box(x_5); +x_11 = lean_alloc_closure((void*)(l_Lake_Cache_saveArtifact___boxed), 7, 6); +lean_closure_set(x_11, 0, x_7); +lean_closure_set(x_11, 1, x_1); +lean_closure_set(x_11, 2, x_2); +lean_closure_set(x_11, 3, x_8); +lean_closure_set(x_11, 4, x_9); +lean_closure_set(x_11, 5, x_10); +x_12 = lean_apply_2(x_6, lean_box(0), x_11); +return x_12; } } -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7) { +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, uint8_t x_7, uint8_t x_8) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_8 = lean_ctor_get(x_3, 0); -x_9 = lean_ctor_get(x_8, 0); -lean_inc_ref(x_9); -x_10 = lean_ctor_get(x_3, 1); -lean_inc(x_10); -lean_dec_ref(x_3); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -lean_dec_ref(x_9); -x_12 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__0___boxed), 1, 0); -x_13 = lean_box(x_6); -x_14 = lean_box(x_7); -x_15 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__1___boxed), 6, 5); -lean_closure_set(x_15, 0, x_4); -lean_closure_set(x_15, 1, x_5); -lean_closure_set(x_15, 2, x_13); -lean_closure_set(x_15, 3, x_14); -lean_closure_set(x_15, 4, x_2); -x_16 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_12, x_1); -x_17 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_16, x_15); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Lake_cacheArtifact(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_9 = lean_ctor_get(x_4, 0); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_9 = lean_ctor_get(x_3, 0); x_10 = lean_ctor_get(x_9, 0); lean_inc_ref(x_10); -x_11 = lean_ctor_get(x_4, 1); +x_11 = lean_ctor_get(x_3, 1); lean_inc(x_11); -lean_dec_ref(x_4); +lean_dec_ref(x_3); x_12 = lean_ctor_get(x_10, 0); lean_inc(x_12); lean_dec_ref(x_10); x_13 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__0___boxed), 1, 0); -x_14 = lean_box(x_7); -x_15 = lean_box(x_8); -x_16 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__1___boxed), 6, 5); -lean_closure_set(x_16, 0, x_5); -lean_closure_set(x_16, 1, x_6); -lean_closure_set(x_16, 2, x_14); -lean_closure_set(x_16, 3, x_15); -lean_closure_set(x_16, 4, x_3); -x_17 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_2); -x_18 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_17, x_16); -return x_18; +x_14 = lean_box(x_6); +x_15 = lean_box(x_7); +x_16 = lean_box(x_8); +x_17 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__1___boxed), 7, 6); +lean_closure_set(x_17, 0, x_4); +lean_closure_set(x_17, 1, x_5); +lean_closure_set(x_17, 2, x_14); +lean_closure_set(x_17, 3, x_15); +lean_closure_set(x_17, 4, x_16); +lean_closure_set(x_17, 5, x_2); +x_18 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_13, x_1); +x_19 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_18, x_17); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lake_cacheArtifact(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, uint8_t x_8, uint8_t x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_10, 0); +lean_inc_ref(x_11); +x_12 = lean_ctor_get(x_4, 1); +lean_inc(x_12); +lean_dec_ref(x_4); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec_ref(x_11); +x_14 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__0___boxed), 1, 0); +x_15 = lean_box(x_7); +x_16 = lean_box(x_8); +x_17 = lean_box(x_9); +x_18 = lean_alloc_closure((void*)(l_Lake_cacheArtifact___redArg___lam__1___boxed), 7, 6); +lean_closure_set(x_18, 0, x_5); +lean_closure_set(x_18, 1, x_6); +lean_closure_set(x_18, 2, x_15); +lean_closure_set(x_18, 3, x_16); +lean_closure_set(x_18, 4, x_17); +lean_closure_set(x_18, 5, x_3); +x_19 = lean_apply_4(x_13, lean_box(0), lean_box(0), x_14, x_2); +x_20 = lean_apply_4(x_12, lean_box(0), lean_box(0), x_19, x_18); +return x_20; } } LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__0___boxed(lean_object* x_1) { @@ -13514,36 +13840,39 @@ lean_dec_ref(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_7; uint8_t x_8; lean_object* x_9; -x_7 = lean_unbox(x_3); -x_8 = lean_unbox(x_4); -x_9 = l_Lake_cacheArtifact___redArg___lam__1(x_1, x_2, x_7, x_8, x_5, x_6); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -uint8_t x_8; uint8_t x_9; lean_object* x_10; -x_8 = lean_unbox(x_6); -x_9 = lean_unbox(x_7); -x_10 = l_Lake_cacheArtifact___redArg(x_1, x_2, x_3, x_4, x_5, x_8, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lake_cacheArtifact___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -uint8_t x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_unbox(x_7); -x_10 = lean_unbox(x_8); -x_11 = l_Lake_cacheArtifact(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_10); +uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; +x_8 = lean_unbox(x_3); +x_9 = lean_unbox(x_4); +x_10 = lean_unbox(x_5); +x_11 = l_Lake_cacheArtifact___redArg___lam__1(x_1, x_2, x_8, x_9, x_10, x_6, x_7); return x_11; } } +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; +x_9 = lean_unbox(x_6); +x_10 = lean_unbox(x_7); +x_11 = lean_unbox(x_8); +x_12 = l_Lake_cacheArtifact___redArg(x_1, x_2, x_3, x_4, x_5, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_cacheArtifact___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_10 = lean_unbox(x_7); +x_11 = lean_unbox(x_8); +x_12 = lean_unbox(x_9); +x_13 = l_Lake_cacheArtifact(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_12); +return x_13; +} +} LEAN_EXPORT lean_object* l_Lake_ResolveOutputs_ctorIdx(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -20081,7 +20410,7 @@ if (lean_is_exclusive(x_17)) { x_22 = lean_box(0); } x_23 = lean_ctor_get(x_18, 0); -x_24 = l_Lake_SavedTrace_replayOrFetchIfUpToDate(x_1, x_2, x_9, x_10, x_11, x_12, x_13, x_21, x_19); +x_24 = l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(x_1, x_2, x_21, x_19); lean_dec(x_2); x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); @@ -21151,348 +21480,316 @@ return x_16; } } } -LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, uint64_t x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, uint64_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_23 = lean_ctor_get(x_14, 1); -lean_inc(x_23); -lean_dec_ref(x_14); -x_24 = lean_ctor_get(x_15, 0); -x_25 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); -x_26 = lean_ctor_get(x_15, 1); -x_27 = lean_ctor_get(x_15, 2); -x_28 = lean_ctor_get(x_23, 2); -lean_inc_ref(x_28); -lean_dec(x_23); -lean_inc_ref(x_1); -x_29 = l_Lake_Cache_saveArtifact(x_28, x_1, x_2, x_3, x_4, x_16); -if (lean_obj_tag(x_29) == 0) +uint8_t x_18; uint8_t x_19; +x_18 = 1; +x_19 = l_Lake_instDecidableEqOutputStatus(x_1, x_18); +if (x_19 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint64_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_82; lean_object* x_83; uint8_t x_84; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_30, 0); -x_32 = lean_ctor_get(x_29, 1); -lean_inc(x_32); -lean_dec_ref(x_29); -x_33 = lean_ctor_get(x_30, 3); -x_34 = lean_ctor_get_uint64(x_31, sizeof(void*)*1); -x_35 = lean_ctor_get(x_31, 0); -x_36 = l_Lake_Package_cacheScope(x_5); -x_82 = lean_string_utf8_byte_size(x_35); -x_83 = lean_unsigned_to_nat(0u); -x_84 = lean_nat_dec_eq(x_82, x_83); -lean_dec(x_82); -if (x_84 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_20 = lean_ctor_get(x_15, 1); +lean_inc(x_20); +lean_dec_ref(x_15); +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get_uint8(x_16, sizeof(void*)*3); +x_23 = lean_ctor_get(x_16, 1); +x_24 = lean_ctor_get(x_16, 2); +x_25 = lean_ctor_get(x_20, 2); +lean_inc_ref(x_25); +lean_dec(x_20); +x_26 = l_Lake_Cache_saveArtifact(x_25, x_2, x_3, x_4, x_5, x_6, x_17); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = l_Lake_Hash_hex(x_34); -x_86 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; -x_87 = lean_string_append(x_85, x_86); -x_88 = lean_string_append(x_87, x_35); -x_37 = x_88; -goto block_81; +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint64_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_27, 0); +x_29 = lean_ctor_get(x_26, 1); +lean_inc(x_29); +lean_dec_ref(x_26); +x_30 = lean_ctor_get_uint64(x_28, sizeof(void*)*1); +x_31 = lean_ctor_get(x_28, 0); +x_32 = l_Lake_Package_cacheScope(x_7); +x_75 = lean_string_utf8_byte_size(x_31); +x_76 = lean_unsigned_to_nat(0u); +x_77 = lean_nat_dec_eq(x_75, x_76); +lean_dec(x_75); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_78 = l_Lake_Hash_hex(x_30); +x_79 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; +x_80 = lean_string_append(x_78, x_79); +x_81 = lean_string_append(x_80, x_31); +x_33 = x_81; +goto block_74; } else { -lean_object* x_89; -x_89 = l_Lake_Hash_hex(x_34); -x_37 = x_89; -goto block_81; +lean_object* x_82; +x_82 = l_Lake_Hash_hex(x_30); +x_33 = x_82; +goto block_74; } -block_81: +block_74: { -lean_object* x_38; lean_object* x_39; -x_38 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = l_Lake_Cache_writeOutputsCore(x_6, x_36, x_7, x_38, x_32); -lean_dec_ref(x_36); -if (lean_obj_tag(x_39) == 0) +lean_object* x_34; lean_object* x_35; +x_34 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_34, 0, x_33); +x_35 = l_Lake_Cache_writeOutputsCore(x_8, x_32, x_9, x_34, x_29); +lean_dec_ref(x_32); +if (lean_obj_tag(x_35) == 0) { -if (x_8 == 0) +uint8_t x_36; +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) { -lean_object* x_40; -lean_dec_ref(x_1); -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -lean_dec_ref(x_39); -x_17 = x_15; -x_18 = x_40; -x_19 = x_30; -goto block_22; +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_27); +lean_ctor_set(x_38, 1, x_16); +lean_ctor_set(x_35, 0, x_38); +return x_35; } else { -uint8_t x_41; -lean_inc_ref(x_33); -lean_inc_ref(x_31); -x_41 = !lean_is_exclusive(x_30); -if (x_41 == 0) +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_35, 1); +lean_inc(x_39); +lean_dec(x_35); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_27); +lean_ctor_set(x_40, 1, x_16); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_30, 3); -lean_dec(x_42); -x_43 = lean_ctor_get(x_30, 2); +uint8_t x_42; +lean_dec(x_27); +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc_ref(x_21); +x_42 = !lean_is_exclusive(x_16); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_ctor_get(x_16, 2); lean_dec(x_43); -x_44 = lean_ctor_get(x_30, 1); +x_44 = lean_ctor_get(x_16, 1); lean_dec(x_44); -x_45 = lean_ctor_get(x_30, 0); +x_45 = lean_ctor_get(x_16, 0); lean_dec(x_45); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -lean_dec_ref(x_39); -lean_inc_ref(x_1); -lean_ctor_set(x_30, 2, x_1); -lean_ctor_set(x_30, 1, x_1); -x_17 = x_15; -x_18 = x_46; -x_19 = x_30; -goto block_22; +x_46 = !lean_is_exclusive(x_35); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_47 = lean_ctor_get(x_35, 0); +x_48 = lean_io_error_to_string(x_47); +x_49 = 3; +x_50 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set_uint8(x_50, sizeof(void*)*1, x_49); +x_51 = lean_array_get_size(x_21); +x_52 = lean_array_push(x_21, x_50); +lean_ctor_set(x_16, 0, x_52); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_16); +lean_ctor_set_tag(x_35, 0); +lean_ctor_set(x_35, 0, x_53); +return x_35; } else { -lean_object* x_47; lean_object* x_48; -lean_dec(x_30); -x_47 = lean_ctor_get(x_39, 1); -lean_inc(x_47); -lean_dec_ref(x_39); -lean_inc_ref(x_1); -x_48 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_48, 0, x_31); -lean_ctor_set(x_48, 1, x_1); -lean_ctor_set(x_48, 2, x_1); -lean_ctor_set(x_48, 3, x_33); -x_17 = x_15; -x_18 = x_47; -x_19 = x_48; -goto block_22; -} +lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_54 = lean_ctor_get(x_35, 0); +x_55 = lean_ctor_get(x_35, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_35); +x_56 = lean_io_error_to_string(x_54); +x_57 = 3; +x_58 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_57); +x_59 = lean_array_get_size(x_21); +x_60 = lean_array_push(x_21, x_58); +lean_ctor_set(x_16, 0, x_60); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_16); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_55); +return x_62; } } else { -uint8_t x_49; -lean_dec(x_30); -lean_inc(x_27); -lean_inc_ref(x_26); -lean_inc_ref(x_24); -lean_dec_ref(x_1); -x_49 = !lean_is_exclusive(x_15); -if (x_49 == 0) -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; -x_50 = lean_ctor_get(x_15, 2); -lean_dec(x_50); -x_51 = lean_ctor_get(x_15, 1); -lean_dec(x_51); -x_52 = lean_ctor_get(x_15, 0); -lean_dec(x_52); -x_53 = !lean_is_exclusive(x_39); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_54 = lean_ctor_get(x_39, 0); -x_55 = lean_io_error_to_string(x_54); -x_56 = 3; -x_57 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); -x_58 = lean_array_get_size(x_24); -x_59 = lean_array_push(x_24, x_57); -lean_ctor_set(x_15, 0, x_59); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_15); -lean_ctor_set_tag(x_39, 0); -lean_ctor_set(x_39, 0, x_60); -return x_39; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_16); +x_63 = lean_ctor_get(x_35, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_35, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_65 = x_35; +} else { + lean_dec_ref(x_35); + x_65 = lean_box(0); } -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_61 = lean_ctor_get(x_39, 0); -x_62 = lean_ctor_get(x_39, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_39); -x_63 = lean_io_error_to_string(x_61); -x_64 = 3; -x_65 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*1, x_64); -x_66 = lean_array_get_size(x_24); -x_67 = lean_array_push(x_24, x_65); -lean_ctor_set(x_15, 0, x_67); -x_68 = lean_alloc_ctor(1, 2, 0); +x_66 = lean_io_error_to_string(x_63); +x_67 = 3; +x_68 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_15); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_62); -return x_69; -} -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_15); -x_70 = lean_ctor_get(x_39, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_39, 1); -lean_inc(x_71); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_72 = x_39; +lean_ctor_set_uint8(x_68, sizeof(void*)*1, x_67); +x_69 = lean_array_get_size(x_21); +x_70 = lean_array_push(x_21, x_68); +x_71 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_23); +lean_ctor_set(x_71, 2, x_24); +lean_ctor_set_uint8(x_71, sizeof(void*)*3, x_22); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_71); +if (lean_is_scalar(x_65)) { + x_73 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_39); - x_72 = lean_box(0); + x_73 = x_65; + lean_ctor_set_tag(x_73, 0); } -x_73 = lean_io_error_to_string(x_70); -x_74 = 3; -x_75 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set_uint8(x_75, sizeof(void*)*1, x_74); -x_76 = lean_array_get_size(x_24); -x_77 = lean_array_push(x_24, x_75); -x_78 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_26); -lean_ctor_set(x_78, 2, x_27); -lean_ctor_set_uint8(x_78, sizeof(void*)*3, x_25); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_76); -lean_ctor_set(x_79, 1, x_78); -if (lean_is_scalar(x_72)) { - x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_64); +return x_73; +} +} +} +} +else +{ +uint8_t x_83; +lean_inc(x_24); +lean_inc_ref(x_23); +lean_inc_ref(x_21); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_83 = !lean_is_exclusive(x_16); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_84 = lean_ctor_get(x_16, 2); +lean_dec(x_84); +x_85 = lean_ctor_get(x_16, 1); +lean_dec(x_85); +x_86 = lean_ctor_get(x_16, 0); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_26); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_88 = lean_ctor_get(x_26, 0); +x_89 = lean_io_error_to_string(x_88); +x_90 = 3; +x_91 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set_uint8(x_91, sizeof(void*)*1, x_90); +x_92 = lean_array_get_size(x_21); +x_93 = lean_array_push(x_21, x_91); +lean_ctor_set(x_16, 0, x_93); +x_94 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_16); +lean_ctor_set_tag(x_26, 0); +lean_ctor_set(x_26, 0, x_94); +return x_26; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_95 = lean_ctor_get(x_26, 0); +x_96 = lean_ctor_get(x_26, 1); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_26); +x_97 = lean_io_error_to_string(x_95); +x_98 = 3; +x_99 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set_uint8(x_99, sizeof(void*)*1, x_98); +x_100 = lean_array_get_size(x_21); +x_101 = lean_array_push(x_21, x_99); +lean_ctor_set(x_16, 0, x_101); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_16); +x_103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_96); +return x_103; +} +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_dec(x_16); +x_104 = lean_ctor_get(x_26, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_26, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_106 = x_26; } else { - x_80 = x_72; - lean_ctor_set_tag(x_80, 0); + lean_dec_ref(x_26); + x_106 = lean_box(0); } -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_71); -return x_80; -} -} -} -} -else -{ -uint8_t x_90; -lean_inc(x_27); -lean_inc_ref(x_26); -lean_inc_ref(x_24); -lean_dec_ref(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_1); -x_90 = !lean_is_exclusive(x_15); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_91 = lean_ctor_get(x_15, 2); -lean_dec(x_91); -x_92 = lean_ctor_get(x_15, 1); -lean_dec(x_92); -x_93 = lean_ctor_get(x_15, 0); -lean_dec(x_93); -x_94 = !lean_is_exclusive(x_29); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_95 = lean_ctor_get(x_29, 0); -x_96 = lean_io_error_to_string(x_95); -x_97 = 3; -x_98 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set_uint8(x_98, sizeof(void*)*1, x_97); -x_99 = lean_array_get_size(x_24); -x_100 = lean_array_push(x_24, x_98); -lean_ctor_set(x_15, 0, x_100); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_15); -lean_ctor_set_tag(x_29, 0); -lean_ctor_set(x_29, 0, x_101); -return x_29; -} -else -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_102 = lean_ctor_get(x_29, 0); -x_103 = lean_ctor_get(x_29, 1); -lean_inc(x_103); -lean_inc(x_102); -lean_dec(x_29); -x_104 = lean_io_error_to_string(x_102); -x_105 = 3; -x_106 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); -x_107 = lean_array_get_size(x_24); -x_108 = lean_array_push(x_24, x_106); -lean_ctor_set(x_15, 0, x_108); -x_109 = lean_alloc_ctor(1, 2, 0); +x_107 = lean_io_error_to_string(x_104); +x_108 = 3; +x_109 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_15); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_103); -return x_110; +lean_ctor_set_uint8(x_109, sizeof(void*)*1, x_108); +x_110 = lean_array_get_size(x_21); +x_111 = lean_array_push(x_21, x_109); +x_112 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_23); +lean_ctor_set(x_112, 2, x_24); +lean_ctor_set_uint8(x_112, sizeof(void*)*3, x_22); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_110); +lean_ctor_set(x_113, 1, x_112); +if (lean_is_scalar(x_106)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_106; + lean_ctor_set_tag(x_114, 0); +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_105); +return x_114; +} } } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec(x_15); -x_111 = lean_ctor_get(x_29, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_29, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_113 = x_29; -} else { - lean_dec_ref(x_29); - x_113 = lean_box(0); -} -x_114 = lean_io_error_to_string(x_111); -x_115 = 3; -x_116 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set_uint8(x_116, sizeof(void*)*1, x_115); -x_117 = lean_array_get_size(x_24); -x_118 = lean_array_push(x_24, x_116); -x_119 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_26); -lean_ctor_set(x_119, 2, x_27); -lean_ctor_set_uint8(x_119, sizeof(void*)*3, x_25); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_119); -if (lean_is_scalar(x_113)) { - x_121 = lean_alloc_ctor(0, 2, 0); -} else { - x_121 = x_113; - lean_ctor_set_tag(x_121, 0); -} -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_112); -return x_121; -} -} -block_22: -{ -lean_object* x_20; lean_object* x_21; -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_18); -return x_21; +lean_object* x_115; +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_115 = l_Lake_computeArtifact___redArg(x_2, x_3, x_4, x_15, x_16, x_17); +lean_dec_ref(x_15); +return x_115; } } } @@ -21517,7 +21814,7 @@ if (lean_obj_tag(x_46) == 0) { if (lean_obj_tag(x_8) == 0) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; uint8_t x_58; x_47 = lean_ctor_get(x_45, 1); lean_inc(x_47); lean_dec_ref(x_45); @@ -21529,64 +21826,62 @@ lean_dec_ref(x_46); x_50 = lean_ctor_get(x_42, 2); lean_inc_ref(x_42); lean_ctor_set(x_12, 0, x_49); -x_51 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_42, x_48, x_50, x_11, x_12, x_47); +x_51 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_42, x_48, x_50, x_8, x_9, x_10, x_11, x_12, x_47); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -x_53 = lean_ctor_get(x_52, 0); -x_54 = lean_unbox(x_53); -if (x_54 == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_55 = lean_ctor_get(x_51, 1); -lean_inc(x_55); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); lean_dec_ref(x_51); -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); +x_54 = lean_ctor_get(x_52, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); lean_dec(x_52); -x_57 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_56, x_55); -lean_dec_ref(x_44); -lean_dec_ref(x_42); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -if (lean_obj_tag(x_58) == 0) +x_56 = 0; +x_57 = lean_unbox(x_54); +lean_dec(x_54); +x_58 = l_Lake_instDecidableEqOutputStatus(x_57, x_56); +if (x_58 == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec_ref(x_57); -x_60 = lean_ctor_get(x_58, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_58, 1); -lean_inc(x_61); -lean_dec_ref(x_58); -x_14 = x_60; -x_15 = x_61; -x_16 = x_59; -goto block_29; -} -else -{ -lean_dec_ref(x_58); -return x_57; -} -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_object* x_59; lean_object* x_60; lean_dec_ref(x_44); lean_dec_ref(x_42); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_7); lean_dec_ref(x_2); -x_62 = lean_ctor_get(x_51, 1); -lean_inc(x_62); -lean_dec_ref(x_51); -x_63 = lean_ctor_get(x_52, 1); -lean_inc(x_63); -lean_dec(x_52); -x_64 = l_Lake_computeArtifact___redArg(x_1, x_4, x_3, x_11, x_63, x_62); +x_59 = l_Lake_computeArtifact___redArg(x_1, x_4, x_3, x_11, x_55, x_53); lean_dec_ref(x_11); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec_ref(x_60); +x_14 = x_62; +x_15 = x_63; +x_16 = x_61; +goto block_29; +} +else +{ +lean_dec_ref(x_60); +return x_59; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +x_64 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_55, x_53); +lean_dec_ref(x_44); +lean_dec_ref(x_42); x_65 = lean_ctor_get(x_64, 0); lean_inc(x_65); if (lean_obj_tag(x_65) == 0) @@ -21614,7 +21909,7 @@ return x_64; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint64_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_123; uint8_t x_129; uint8_t x_130; +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint64_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_123; uint8_t x_129; uint8_t x_169; uint8_t x_170; x_69 = lean_ctor_get(x_45, 1); lean_inc(x_69); lean_dec_ref(x_45); @@ -21642,57 +21937,79 @@ lean_dec(x_74); x_79 = lean_ctor_get(x_75, 2); x_80 = lean_ctor_get_uint64(x_42, sizeof(void*)*3); x_81 = lean_ctor_get(x_42, 2); -x_129 = 1; -x_130 = lean_unbox(x_77); -if (x_130 == 0) +x_169 = 1; +x_170 = lean_unbox(x_77); +if (x_170 == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; lean_inc(x_70); -x_131 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_42, x_70, x_81, x_11, x_78, x_76); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_132, 0); -x_134 = lean_unbox(x_133); -if (x_134 == 0) +x_171 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_42, x_70, x_81, x_8, x_9, x_10, x_11, x_78, x_76); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec_ref(x_171); +x_174 = lean_ctor_get(x_172, 0); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 1); +lean_inc(x_175); +lean_dec(x_172); +x_176 = 0; +x_177 = lean_unbox(x_174); +lean_dec(x_174); +x_178 = l_Lake_instDecidableEqOutputStatus(x_177, x_176); +if (x_178 == 0) { -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_77); -x_135 = lean_ctor_get(x_131, 1); -lean_inc(x_135); -lean_dec_ref(x_131); -x_136 = lean_ctor_get(x_132, 1); -lean_inc(x_136); -lean_dec(x_132); -lean_inc_ref(x_11); -lean_inc_ref(x_1); -lean_inc(x_72); -lean_inc_ref(x_79); -x_137 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_80, x_70, x_79, x_72, x_1, x_6, x_44, x_129, x_7, x_8, x_9, x_10, x_11, x_136, x_135); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; -x_139 = lean_ctor_get(x_138, 0); -if (lean_obj_tag(x_139) == 0) -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_137, 1); -lean_inc(x_140); -lean_dec_ref(x_137); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -lean_dec_ref(x_138); -x_142 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_141, x_140); +uint8_t x_179; lean_object* x_180; +lean_dec(x_70); lean_dec_ref(x_44); lean_dec_ref(x_42); -x_123 = x_142; +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_2); +x_179 = lean_unbox(x_77); +lean_dec(x_77); +x_180 = l_Lake_computeArtifact___redArg(x_1, x_4, x_179, x_11, x_175, x_173); +lean_dec_ref(x_11); +x_123 = x_180; goto block_128; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_inc_ref(x_139); +lean_object* x_181; lean_object* x_182; +lean_dec(x_77); +lean_inc_ref(x_11); +lean_inc_ref(x_1); +lean_inc(x_72); +lean_inc_ref(x_79); +x_181 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_80, x_70, x_79, x_72, x_1, x_6, x_44, x_169, x_7, x_8, x_9, x_10, x_11, x_175, x_173); +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; +x_183 = lean_ctor_get(x_182, 0); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_184 = lean_ctor_get(x_181, 1); +lean_inc(x_184); +lean_dec_ref(x_181); +x_185 = lean_ctor_get(x_182, 1); +lean_inc(x_185); +lean_dec_ref(x_182); +x_186 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_185, x_184); +lean_dec_ref(x_44); +lean_dec_ref(x_42); +x_123 = x_186; +goto block_128; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_inc_ref(x_183); lean_dec_ref(x_44); lean_dec_ref(x_42); lean_dec_ref(x_11); @@ -21703,24 +22020,24 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_143 = lean_ctor_get(x_137, 1); -lean_inc(x_143); -lean_dec_ref(x_137); -x_144 = lean_ctor_get(x_138, 1); -lean_inc(x_144); -lean_dec_ref(x_138); -x_145 = lean_ctor_get(x_139, 0); -lean_inc(x_145); -lean_dec_ref(x_139); -x_96 = x_145; -x_97 = x_144; -x_98 = x_143; +x_187 = lean_ctor_get(x_181, 1); +lean_inc(x_187); +lean_dec_ref(x_181); +x_188 = lean_ctor_get(x_182, 1); +lean_inc(x_188); +lean_dec_ref(x_182); +x_189 = lean_ctor_get(x_183, 0); +lean_inc(x_189); +lean_dec_ref(x_183); +x_96 = x_189; +x_97 = x_188; +x_98 = x_187; goto block_122; } } else { -uint8_t x_146; +uint8_t x_190; lean_dec(x_72); lean_dec_ref(x_44); lean_dec_ref(x_42); @@ -21732,336 +22049,99 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_146 = !lean_is_exclusive(x_137); -if (x_146 == 0) +x_190 = !lean_is_exclusive(x_181); +if (x_190 == 0) { -lean_object* x_147; uint8_t x_148; -x_147 = lean_ctor_get(x_137, 0); -lean_dec(x_147); -x_148 = !lean_is_exclusive(x_138); -if (x_148 == 0) +lean_object* x_191; uint8_t x_192; +x_191 = lean_ctor_get(x_181, 0); +lean_dec(x_191); +x_192 = !lean_is_exclusive(x_182); +if (x_192 == 0) { -return x_137; +return x_181; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_138, 0); -x_150 = lean_ctor_get(x_138, 1); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_138); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -lean_ctor_set(x_137, 0, x_151); -return x_137; +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_182, 0); +x_194 = lean_ctor_get(x_182, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_182); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +lean_ctor_set(x_181, 0, x_195); +return x_181; } } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_152 = lean_ctor_get(x_137, 1); -lean_inc(x_152); -lean_dec(x_137); -x_153 = lean_ctor_get(x_138, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_138, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_155 = x_138; +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_196 = lean_ctor_get(x_181, 1); +lean_inc(x_196); +lean_dec(x_181); +x_197 = lean_ctor_get(x_182, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_182, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + x_199 = x_182; } else { - lean_dec_ref(x_138); - x_155 = lean_box(0); + lean_dec_ref(x_182); + x_199 = lean_box(0); } -if (lean_is_scalar(x_155)) { - x_156 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(1, 2, 0); } else { - x_156 = x_155; + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +x_201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_201, 0, x_200); +lean_ctor_set(x_201, 1, x_196); +return x_201; } -lean_ctor_set(x_156, 0, x_153); -lean_ctor_set(x_156, 1, x_154); -x_157 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_157, 0, x_156); -lean_ctor_set(x_157, 1, x_152); -return x_157; } } } else { -lean_object* x_158; lean_object* x_159; uint8_t x_160; lean_object* x_161; -lean_dec(x_70); -lean_dec_ref(x_44); -lean_dec_ref(x_42); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_2); -x_158 = lean_ctor_get(x_131, 1); -lean_inc(x_158); -lean_dec_ref(x_131); -x_159 = lean_ctor_get(x_132, 1); -lean_inc(x_159); -lean_dec(x_132); -x_160 = lean_unbox(x_77); -lean_dec(x_77); -x_161 = l_Lake_computeArtifact___redArg(x_1, x_4, x_160, x_11, x_159, x_158); -lean_dec_ref(x_11); -x_123 = x_161; -goto block_128; -} -} -else -{ -uint8_t x_162; lean_inc_ref(x_79); lean_dec(x_77); if (x_5 == 0) { -lean_object* x_200; uint8_t x_201; -x_200 = lean_ctor_get(x_72, 4); -x_201 = lean_ctor_get_uint8(x_200, sizeof(void*)*26 + 4); -x_162 = x_201; -goto block_199; +lean_object* x_202; uint8_t x_203; +x_202 = lean_ctor_get(x_72, 4); +x_203 = lean_ctor_get_uint8(x_202, sizeof(void*)*26 + 4); +x_129 = x_203; +goto block_168; } else { -x_162 = x_129; -goto block_199; -} -block_199: -{ -lean_object* x_163; lean_object* x_164; -lean_inc_ref(x_11); -lean_inc_ref(x_1); -lean_inc(x_72); -lean_inc_ref(x_79); -lean_inc(x_70); -x_163 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_80, x_70, x_79, x_72, x_1, x_6, x_44, x_162, x_7, x_8, x_9, x_10, x_11, x_78, x_76); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -if (lean_obj_tag(x_164) == 0) -{ -lean_object* x_165; -x_165 = lean_ctor_get(x_164, 0); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; -x_166 = lean_ctor_get(x_163, 1); -lean_inc(x_166); -lean_dec_ref(x_163); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_167); -lean_dec_ref(x_164); -x_168 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_42, x_70, x_81, x_11, x_167, x_166); -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_169, 0); -x_171 = lean_unbox(x_170); -if (x_171 == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_172 = lean_ctor_get(x_168, 1); -lean_inc(x_172); -lean_dec_ref(x_168); -x_173 = lean_ctor_get(x_169, 1); -lean_inc(x_173); -lean_dec(x_169); -lean_inc_ref(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); -lean_inc_ref(x_7); -lean_inc_ref(x_4); -lean_inc_ref(x_1); -x_174 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_173, x_172); -lean_dec_ref(x_44); -lean_dec_ref(x_42); -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -lean_dec_ref(x_174); -x_177 = lean_ctor_get(x_175, 1); -lean_inc(x_177); -lean_dec_ref(x_175); -x_178 = lean_box(0); -lean_inc(x_72); -x_179 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_1, x_4, x_3, x_6, x_72, x_79, x_80, x_5, x_178, x_7, x_8, x_9, x_10, x_11, x_177, x_176); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_123 = x_179; -goto block_128; -} -else -{ -lean_dec_ref(x_175); -lean_dec_ref(x_79); -lean_dec(x_72); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_4); -lean_dec_ref(x_1); -return x_174; -} -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -lean_dec_ref(x_44); -lean_dec_ref(x_42); -lean_dec_ref(x_2); -x_180 = lean_ctor_get(x_168, 1); -lean_inc(x_180); -lean_dec_ref(x_168); -x_181 = lean_ctor_get(x_169, 1); -lean_inc(x_181); -lean_dec(x_169); -x_182 = lean_box(0); -lean_inc(x_72); -x_183 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_1, x_4, x_3, x_6, x_72, x_79, x_80, x_5, x_182, x_7, x_8, x_9, x_10, x_11, x_181, x_180); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_123 = x_183; -goto block_128; -} -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_inc_ref(x_165); -lean_dec_ref(x_79); -lean_dec(x_70); -lean_dec_ref(x_44); -lean_dec_ref(x_42); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_184 = lean_ctor_get(x_163, 1); -lean_inc(x_184); -lean_dec_ref(x_163); -x_185 = lean_ctor_get(x_164, 1); -lean_inc(x_185); -lean_dec_ref(x_164); -x_186 = lean_ctor_get(x_165, 0); -lean_inc(x_186); -lean_dec_ref(x_165); -x_96 = x_186; -x_97 = x_185; -x_98 = x_184; -goto block_122; -} -} -else -{ -uint8_t x_187; -lean_dec_ref(x_79); -lean_dec(x_72); -lean_dec(x_70); -lean_dec_ref(x_44); -lean_dec_ref(x_42); -lean_dec_ref(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_187 = !lean_is_exclusive(x_163); -if (x_187 == 0) -{ -lean_object* x_188; uint8_t x_189; -x_188 = lean_ctor_get(x_163, 0); -lean_dec(x_188); -x_189 = !lean_is_exclusive(x_164); -if (x_189 == 0) -{ -return x_163; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_190 = lean_ctor_get(x_164, 0); -x_191 = lean_ctor_get(x_164, 1); -lean_inc(x_191); -lean_inc(x_190); -lean_dec(x_164); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set(x_192, 1, x_191); -lean_ctor_set(x_163, 0, x_192); -return x_163; -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_193 = lean_ctor_get(x_163, 1); -lean_inc(x_193); -lean_dec(x_163); -x_194 = lean_ctor_get(x_164, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_164, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_196 = x_164; -} else { - lean_dec_ref(x_164); - x_196 = lean_box(0); -} -if (lean_is_scalar(x_196)) { - x_197 = lean_alloc_ctor(1, 2, 0); -} else { - x_197 = x_196; -} -lean_ctor_set(x_197, 0, x_194); -lean_ctor_set(x_197, 1, x_195); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_193); -return x_198; -} -} +x_129 = x_169; +goto block_168; } } block_95: { lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec_ref(x_82); +lean_dec_ref(x_83); x_91 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_91, 0, x_90); -x_92 = l_Lake_CacheMap_insertCore(x_80, x_91, x_87); -x_93 = lean_st_ref_set(x_83, x_92, x_86); -lean_dec(x_83); +x_92 = l_Lake_CacheMap_insertCore(x_80, x_91, x_89); +x_93 = lean_st_ref_set(x_87, x_92, x_88); +lean_dec(x_87); x_94 = lean_ctor_get(x_93, 1); lean_inc(x_94); lean_dec_ref(x_93); x_30 = x_84; x_31 = x_85; -x_32 = x_88; -x_33 = x_89; +x_32 = x_86; +x_33 = x_82; x_34 = x_94; goto block_39; } @@ -22121,14 +22201,14 @@ x_117 = l_Lake_Hash_hex(x_112); x_118 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; x_119 = lean_string_append(x_117, x_118); x_120 = lean_string_append(x_119, x_113); -x_82 = x_110; -x_83 = x_103; +x_82 = x_111; +x_83 = x_110; x_84 = x_96; x_85 = x_108; -x_86 = x_107; -x_87 = x_106; -x_88 = x_109; -x_89 = x_111; +x_86 = x_109; +x_87 = x_103; +x_88 = x_107; +x_89 = x_106; x_90 = x_120; goto block_95; } @@ -22136,14 +22216,14 @@ else { lean_object* x_121; x_121 = l_Lake_Hash_hex(x_112); -x_82 = x_110; -x_83 = x_103; +x_82 = x_111; +x_83 = x_110; x_84 = x_96; x_85 = x_108; -x_86 = x_107; -x_87 = x_106; -x_88 = x_109; -x_89 = x_111; +x_86 = x_109; +x_87 = x_103; +x_88 = x_107; +x_89 = x_106; x_90 = x_121; goto block_95; } @@ -22176,11 +22256,225 @@ lean_dec(x_72); return x_123; } } +block_168: +{ +lean_object* x_130; lean_object* x_131; +lean_inc_ref(x_11); +lean_inc_ref(x_1); +lean_inc(x_72); +lean_inc_ref(x_79); +lean_inc(x_70); +x_130 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_80, x_70, x_79, x_72, x_1, x_6, x_44, x_129, x_7, x_8, x_9, x_10, x_11, x_78, x_76); +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; +x_132 = lean_ctor_get(x_131, 0); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; uint8_t x_142; +x_133 = lean_ctor_get(x_130, 1); +lean_inc(x_133); +lean_dec_ref(x_130); +x_134 = lean_ctor_get(x_131, 1); +lean_inc(x_134); +lean_dec_ref(x_131); +x_135 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_42, x_70, x_81, x_8, x_9, x_10, x_11, x_134, x_133); +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec_ref(x_135); +x_138 = lean_ctor_get(x_136, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_136, 1); +lean_inc(x_139); +lean_dec(x_136); +x_140 = 0; +x_141 = lean_unbox(x_138); +x_142 = l_Lake_instDecidableEqOutputStatus(x_141, x_140); +if (x_142 == 0) +{ +lean_object* x_143; uint8_t x_144; lean_object* x_145; +lean_dec_ref(x_44); +lean_dec_ref(x_42); +lean_dec_ref(x_2); +x_143 = lean_box(0); +x_144 = lean_unbox(x_138); +lean_dec(x_138); +lean_inc(x_72); +x_145 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_144, x_1, x_4, x_3, x_6, x_129, x_72, x_79, x_80, x_143, x_7, x_8, x_9, x_10, x_11, x_139, x_137); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_123 = x_145; +goto block_128; +} +else +{ +lean_object* x_146; lean_object* x_147; +lean_inc_ref(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_7); +lean_inc_ref(x_4); +lean_inc_ref(x_1); +x_146 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_42, x_44, x_7, x_8, x_9, x_10, x_11, x_139, x_137); +lean_dec_ref(x_44); +lean_dec_ref(x_42); +x_147 = lean_ctor_get(x_146, 0); +lean_inc(x_147); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; uint8_t x_151; lean_object* x_152; +x_148 = lean_ctor_get(x_146, 1); +lean_inc(x_148); +lean_dec_ref(x_146); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec_ref(x_147); +x_150 = lean_box(0); +x_151 = lean_unbox(x_138); +lean_dec(x_138); +lean_inc(x_72); +x_152 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_151, x_1, x_4, x_3, x_6, x_129, x_72, x_79, x_80, x_150, x_7, x_8, x_9, x_10, x_11, x_149, x_148); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_123 = x_152; +goto block_128; +} +else +{ +lean_dec_ref(x_147); +lean_dec(x_138); +lean_dec_ref(x_79); +lean_dec(x_72); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_4); +lean_dec_ref(x_1); +return x_146; +} } } else { -uint8_t x_202; +lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_inc_ref(x_132); +lean_dec_ref(x_79); +lean_dec(x_70); +lean_dec_ref(x_44); +lean_dec_ref(x_42); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_153 = lean_ctor_get(x_130, 1); +lean_inc(x_153); +lean_dec_ref(x_130); +x_154 = lean_ctor_get(x_131, 1); +lean_inc(x_154); +lean_dec_ref(x_131); +x_155 = lean_ctor_get(x_132, 0); +lean_inc(x_155); +lean_dec_ref(x_132); +x_96 = x_155; +x_97 = x_154; +x_98 = x_153; +goto block_122; +} +} +else +{ +uint8_t x_156; +lean_dec_ref(x_79); +lean_dec(x_72); +lean_dec(x_70); +lean_dec_ref(x_44); +lean_dec_ref(x_42); +lean_dec_ref(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_4); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_156 = !lean_is_exclusive(x_130); +if (x_156 == 0) +{ +lean_object* x_157; uint8_t x_158; +x_157 = lean_ctor_get(x_130, 0); +lean_dec(x_157); +x_158 = !lean_is_exclusive(x_131); +if (x_158 == 0) +{ +return x_130; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_131, 0); +x_160 = lean_ctor_get(x_131, 1); +lean_inc(x_160); +lean_inc(x_159); +lean_dec(x_131); +x_161 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_161, 0, x_159); +lean_ctor_set(x_161, 1, x_160); +lean_ctor_set(x_130, 0, x_161); +return x_130; +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; +x_162 = lean_ctor_get(x_130, 1); +lean_inc(x_162); +lean_dec(x_130); +x_163 = lean_ctor_get(x_131, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_131, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_165 = x_131; +} else { + lean_dec_ref(x_131); + x_165 = lean_box(0); +} +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); +} else { + x_166 = x_165; +} +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_162); +return x_167; +} +} +} +} +} +else +{ +uint8_t x_204; lean_dec_ref(x_44); lean_dec_ref(x_11); lean_dec(x_10); @@ -22190,278 +22484,298 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_202 = !lean_is_exclusive(x_45); -if (x_202 == 0) -{ -lean_object* x_203; uint8_t x_204; -x_203 = lean_ctor_get(x_45, 0); -lean_dec(x_203); -x_204 = !lean_is_exclusive(x_46); +x_204 = !lean_is_exclusive(x_45); if (x_204 == 0) { -lean_object* x_205; -x_205 = lean_ctor_get(x_46, 1); -lean_ctor_set(x_12, 0, x_205); +lean_object* x_205; uint8_t x_206; +x_205 = lean_ctor_get(x_45, 0); +lean_dec(x_205); +x_206 = !lean_is_exclusive(x_46); +if (x_206 == 0) +{ +lean_object* x_207; +x_207 = lean_ctor_get(x_46, 1); +lean_ctor_set(x_12, 0, x_207); lean_ctor_set(x_46, 1, x_12); return x_45; } else { -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_46, 0); -x_207 = lean_ctor_get(x_46, 1); -lean_inc(x_207); -lean_inc(x_206); +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_46, 0); +x_209 = lean_ctor_get(x_46, 1); +lean_inc(x_209); +lean_inc(x_208); lean_dec(x_46); -lean_ctor_set(x_12, 0, x_207); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_12); -lean_ctor_set(x_45, 0, x_208); +lean_ctor_set(x_12, 0, x_209); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_12); +lean_ctor_set(x_45, 0, x_210); return x_45; } } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_209 = lean_ctor_get(x_45, 1); -lean_inc(x_209); -lean_dec(x_45); -x_210 = lean_ctor_get(x_46, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_46, 1); +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_211 = lean_ctor_get(x_45, 1); lean_inc(x_211); +lean_dec(x_45); +x_212 = lean_ctor_get(x_46, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_46, 1); +lean_inc(x_213); if (lean_is_exclusive(x_46)) { lean_ctor_release(x_46, 0); lean_ctor_release(x_46, 1); - x_212 = x_46; + x_214 = x_46; } else { lean_dec_ref(x_46); - x_212 = lean_box(0); + x_214 = lean_box(0); } -lean_ctor_set(x_12, 0, x_211); -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_213); +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); } else { - x_213 = x_212; + x_215 = x_214; } -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_12); -x_214 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_209); -return x_214; +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_12); +x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_211); +return x_216; } } } else { -lean_object* x_215; uint8_t x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_215 = lean_ctor_get(x_12, 0); -x_216 = lean_ctor_get_uint8(x_12, sizeof(void*)*3); -x_217 = lean_ctor_get(x_12, 1); -x_218 = lean_ctor_get(x_12, 2); -lean_inc(x_218); +lean_object* x_217; uint8_t x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_217 = lean_ctor_get(x_12, 0); +x_218 = lean_ctor_get_uint8(x_12, sizeof(void*)*3); +x_219 = lean_ctor_get(x_12, 1); +x_220 = lean_ctor_get(x_12, 2); +lean_inc(x_220); +lean_inc(x_219); lean_inc(x_217); -lean_inc(x_215); lean_dec(x_12); -x_219 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; +x_221 = l_Lake_buildFileUnlessUpToDate_x27___closed__0; lean_inc_ref(x_1); -x_220 = lean_string_append(x_1, x_219); -lean_inc_ref(x_220); -x_221 = l_Lake_readTraceFile(x_220, x_215, x_13); -x_222 = lean_ctor_get(x_221, 0); -lean_inc(x_222); -if (lean_obj_tag(x_222) == 0) +x_222 = lean_string_append(x_1, x_221); +lean_inc_ref(x_222); +x_223 = l_Lake_readTraceFile(x_222, x_217, x_13); +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +if (lean_obj_tag(x_224) == 0) { if (lean_obj_tag(x_8) == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -lean_dec_ref(x_221); -x_224 = lean_ctor_get(x_222, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_222, 1); +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; uint8_t x_236; uint8_t x_237; +x_225 = lean_ctor_get(x_223, 1); lean_inc(x_225); -lean_dec_ref(x_222); -x_226 = lean_ctor_get(x_217, 2); -lean_inc_ref(x_217); -x_227 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_227, 0, x_225); -lean_ctor_set(x_227, 1, x_217); -lean_ctor_set(x_227, 2, x_218); -lean_ctor_set_uint8(x_227, sizeof(void*)*3, x_216); -x_228 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_217, x_224, x_226, x_11, x_227, x_223); -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_229, 0); -x_231 = lean_unbox(x_230); -if (x_231 == 0) -{ -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_228, 1); +lean_dec_ref(x_223); +x_226 = lean_ctor_get(x_224, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_224, 1); +lean_inc(x_227); +lean_dec_ref(x_224); +x_228 = lean_ctor_get(x_219, 2); +lean_inc_ref(x_219); +x_229 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_229, 0, x_227); +lean_ctor_set(x_229, 1, x_219); +lean_ctor_set(x_229, 2, x_220); +lean_ctor_set_uint8(x_229, sizeof(void*)*3, x_218); +x_230 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_219, x_226, x_228, x_8, x_9, x_10, x_11, x_229, x_225); +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_230, 1); lean_inc(x_232); -lean_dec_ref(x_228); -x_233 = lean_ctor_get(x_229, 1); +lean_dec_ref(x_230); +x_233 = lean_ctor_get(x_231, 0); lean_inc(x_233); -lean_dec(x_229); -x_234 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_217, x_220, x_7, x_8, x_9, x_10, x_11, x_233, x_232); -lean_dec_ref(x_220); -lean_dec_ref(x_217); -x_235 = lean_ctor_get(x_234, 0); -lean_inc(x_235); -if (lean_obj_tag(x_235) == 0) +x_234 = lean_ctor_get(x_231, 1); +lean_inc(x_234); +lean_dec(x_231); +x_235 = 0; +x_236 = lean_unbox(x_233); +lean_dec(x_233); +x_237 = l_Lake_instDecidableEqOutputStatus(x_236, x_235); +if (x_237 == 0) { -lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_236 = lean_ctor_get(x_234, 1); -lean_inc(x_236); -lean_dec_ref(x_234); -x_237 = lean_ctor_get(x_235, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_235, 1); -lean_inc(x_238); -lean_dec_ref(x_235); -x_14 = x_237; -x_15 = x_238; -x_16 = x_236; -goto block_29; -} -else -{ -lean_dec_ref(x_235); -return x_234; -} -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -lean_dec_ref(x_220); -lean_dec_ref(x_217); +lean_object* x_238; lean_object* x_239; +lean_dec_ref(x_222); +lean_dec_ref(x_219); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_7); lean_dec_ref(x_2); -x_239 = lean_ctor_get(x_228, 1); -lean_inc(x_239); -lean_dec_ref(x_228); -x_240 = lean_ctor_get(x_229, 1); -lean_inc(x_240); -lean_dec(x_229); -x_241 = l_Lake_computeArtifact___redArg(x_1, x_4, x_3, x_11, x_240, x_239); +x_238 = l_Lake_computeArtifact___redArg(x_1, x_4, x_3, x_11, x_234, x_232); lean_dec_ref(x_11); -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -if (lean_obj_tag(x_242) == 0) +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +if (lean_obj_tag(x_239) == 0) { -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec_ref(x_241); -x_244 = lean_ctor_get(x_242, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_242, 1); -lean_inc(x_245); -lean_dec_ref(x_242); -x_14 = x_244; -x_15 = x_245; -x_16 = x_243; +lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec_ref(x_238); +x_241 = lean_ctor_get(x_239, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_239, 1); +lean_inc(x_242); +lean_dec_ref(x_239); +x_14 = x_241; +x_15 = x_242; +x_16 = x_240; goto block_29; } else { -lean_dec_ref(x_242); -return x_241; +lean_dec_ref(x_239); +return x_238; +} +} +else +{ +lean_object* x_243; lean_object* x_244; +x_243 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_219, x_222, x_7, x_8, x_9, x_10, x_11, x_234, x_232); +lean_dec_ref(x_222); +lean_dec_ref(x_219); +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec_ref(x_243); +x_246 = lean_ctor_get(x_244, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_244, 1); +lean_inc(x_247); +lean_dec_ref(x_244); +x_14 = x_246; +x_15 = x_247; +x_16 = x_245; +goto block_29; +} +else +{ +lean_dec_ref(x_244); +return x_243; } } } else { -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint64_t x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_301; uint8_t x_307; uint8_t x_308; -x_246 = lean_ctor_get(x_221, 1); -lean_inc(x_246); -lean_dec_ref(x_221); -x_247 = lean_ctor_get(x_222, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_222, 1); +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; uint64_t x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_303; uint8_t x_309; uint8_t x_344; uint8_t x_345; +x_248 = lean_ctor_get(x_223, 1); lean_inc(x_248); -lean_dec_ref(x_222); -x_249 = lean_ctor_get(x_8, 0); +lean_dec_ref(x_223); +x_249 = lean_ctor_get(x_224, 0); lean_inc(x_249); -lean_inc_ref(x_217); -x_250 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set(x_250, 1, x_217); -lean_ctor_set(x_250, 2, x_218); -lean_ctor_set_uint8(x_250, sizeof(void*)*3, x_216); -x_251 = l_Lake_Package_isArtifactCacheEnabled___at___Lake_buildArtifactUnlessUpToDate_spec__0___redArg(x_249, x_11, x_250, x_246); -x_252 = lean_ctor_get(x_251, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_11, 1); -x_254 = lean_ctor_get(x_251, 1); +x_250 = lean_ctor_get(x_224, 1); +lean_inc(x_250); +lean_dec_ref(x_224); +x_251 = lean_ctor_get(x_8, 0); +lean_inc(x_251); +lean_inc_ref(x_219); +x_252 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_219); +lean_ctor_set(x_252, 2, x_220); +lean_ctor_set_uint8(x_252, sizeof(void*)*3, x_218); +x_253 = l_Lake_Package_isArtifactCacheEnabled___at___Lake_buildArtifactUnlessUpToDate_spec__0___redArg(x_251, x_11, x_252, x_248); +x_254 = lean_ctor_get(x_253, 0); lean_inc(x_254); -lean_dec_ref(x_251); -x_255 = lean_ctor_get(x_252, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_252, 1); +x_255 = lean_ctor_get(x_11, 1); +x_256 = lean_ctor_get(x_253, 1); lean_inc(x_256); -lean_dec(x_252); -x_257 = lean_ctor_get(x_253, 2); -x_258 = lean_ctor_get_uint64(x_217, sizeof(void*)*3); -x_259 = lean_ctor_get(x_217, 2); -x_307 = 1; -x_308 = lean_unbox(x_255); -if (x_308 == 0) +lean_dec_ref(x_253); +x_257 = lean_ctor_get(x_254, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_254, 1); +lean_inc(x_258); +lean_dec(x_254); +x_259 = lean_ctor_get(x_255, 2); +x_260 = lean_ctor_get_uint64(x_219, sizeof(void*)*3); +x_261 = lean_ctor_get(x_219, 2); +x_344 = 1; +x_345 = lean_unbox(x_257); +if (x_345 == 0) { -lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; -lean_inc(x_247); -x_309 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_217, x_247, x_259, x_11, x_256, x_254); -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_310, 0); -x_312 = lean_unbox(x_311); -if (x_312 == 0) +lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; uint8_t x_351; uint8_t x_352; uint8_t x_353; +lean_inc(x_249); +x_346 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_219, x_249, x_261, x_8, x_9, x_10, x_11, x_258, x_256); +x_347 = lean_ctor_get(x_346, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_346, 1); +lean_inc(x_348); +lean_dec_ref(x_346); +x_349 = lean_ctor_get(x_347, 0); +lean_inc(x_349); +x_350 = lean_ctor_get(x_347, 1); +lean_inc(x_350); +lean_dec(x_347); +x_351 = 0; +x_352 = lean_unbox(x_349); +lean_dec(x_349); +x_353 = l_Lake_instDecidableEqOutputStatus(x_352, x_351); +if (x_353 == 0) { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec(x_255); -x_313 = lean_ctor_get(x_309, 1); -lean_inc(x_313); -lean_dec_ref(x_309); -x_314 = lean_ctor_get(x_310, 1); -lean_inc(x_314); -lean_dec(x_310); +uint8_t x_354; lean_object* x_355; +lean_dec(x_249); +lean_dec_ref(x_222); +lean_dec_ref(x_219); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_2); +x_354 = lean_unbox(x_257); +lean_dec(x_257); +x_355 = l_Lake_computeArtifact___redArg(x_1, x_4, x_354, x_11, x_350, x_348); +lean_dec_ref(x_11); +x_303 = x_355; +goto block_308; +} +else +{ +lean_object* x_356; lean_object* x_357; +lean_dec(x_257); lean_inc_ref(x_11); lean_inc_ref(x_1); -lean_inc(x_249); -lean_inc_ref(x_257); -x_315 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_258, x_247, x_257, x_249, x_1, x_6, x_220, x_307, x_7, x_8, x_9, x_10, x_11, x_314, x_313); -x_316 = lean_ctor_get(x_315, 0); -lean_inc(x_316); -if (lean_obj_tag(x_316) == 0) +lean_inc(x_251); +lean_inc_ref(x_259); +x_356 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_260, x_249, x_259, x_251, x_1, x_6, x_222, x_344, x_7, x_8, x_9, x_10, x_11, x_350, x_348); +x_357 = lean_ctor_get(x_356, 0); +lean_inc(x_357); +if (lean_obj_tag(x_357) == 0) { -lean_object* x_317; -x_317 = lean_ctor_get(x_316, 0); -if (lean_obj_tag(x_317) == 0) +lean_object* x_358; +x_358 = lean_ctor_get(x_357, 0); +if (lean_obj_tag(x_358) == 0) { -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_315, 1); -lean_inc(x_318); -lean_dec_ref(x_315); -x_319 = lean_ctor_get(x_316, 1); -lean_inc(x_319); -lean_dec_ref(x_316); -x_320 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_217, x_220, x_7, x_8, x_9, x_10, x_11, x_319, x_318); -lean_dec_ref(x_220); -lean_dec_ref(x_217); -x_301 = x_320; -goto block_306; +lean_object* x_359; lean_object* x_360; lean_object* x_361; +x_359 = lean_ctor_get(x_356, 1); +lean_inc(x_359); +lean_dec_ref(x_356); +x_360 = lean_ctor_get(x_357, 1); +lean_inc(x_360); +lean_dec_ref(x_357); +x_361 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_219, x_222, x_7, x_8, x_9, x_10, x_11, x_360, x_359); +lean_dec_ref(x_222); +lean_dec_ref(x_219); +x_303 = x_361; +goto block_308; } else { -lean_object* x_321; lean_object* x_322; lean_object* x_323; -lean_inc_ref(x_317); -lean_dec_ref(x_220); -lean_dec_ref(x_217); +lean_object* x_362; lean_object* x_363; lean_object* x_364; +lean_inc_ref(x_358); +lean_dec_ref(x_222); +lean_dec_ref(x_219); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22470,27 +22784,27 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_321 = lean_ctor_get(x_315, 1); -lean_inc(x_321); -lean_dec_ref(x_315); -x_322 = lean_ctor_get(x_316, 1); -lean_inc(x_322); -lean_dec_ref(x_316); -x_323 = lean_ctor_get(x_317, 0); -lean_inc(x_323); -lean_dec_ref(x_317); -x_274 = x_323; -x_275 = x_322; -x_276 = x_321; -goto block_300; +x_362 = lean_ctor_get(x_356, 1); +lean_inc(x_362); +lean_dec_ref(x_356); +x_363 = lean_ctor_get(x_357, 1); +lean_inc(x_363); +lean_dec_ref(x_357); +x_364 = lean_ctor_get(x_358, 0); +lean_inc(x_364); +lean_dec_ref(x_358); +x_276 = x_364; +x_277 = x_363; +x_278 = x_362; +goto block_302; } } else { -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; -lean_dec(x_249); -lean_dec_ref(x_220); -lean_dec_ref(x_217); +lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_251); +lean_dec_ref(x_222); +lean_dec_ref(x_219); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22499,126 +22813,253 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_324 = lean_ctor_get(x_315, 1); -lean_inc(x_324); -if (lean_is_exclusive(x_315)) { - lean_ctor_release(x_315, 0); - lean_ctor_release(x_315, 1); - x_325 = x_315; +x_365 = lean_ctor_get(x_356, 1); +lean_inc(x_365); +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + x_366 = x_356; } else { - lean_dec_ref(x_315); - x_325 = lean_box(0); + lean_dec_ref(x_356); + x_366 = lean_box(0); } -x_326 = lean_ctor_get(x_316, 0); -lean_inc(x_326); -x_327 = lean_ctor_get(x_316, 1); -lean_inc(x_327); -if (lean_is_exclusive(x_316)) { - lean_ctor_release(x_316, 0); - lean_ctor_release(x_316, 1); - x_328 = x_316; +x_367 = lean_ctor_get(x_357, 0); +lean_inc(x_367); +x_368 = lean_ctor_get(x_357, 1); +lean_inc(x_368); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_369 = x_357; } else { - lean_dec_ref(x_316); - x_328 = lean_box(0); + lean_dec_ref(x_357); + x_369 = lean_box(0); } -if (lean_is_scalar(x_328)) { - x_329 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_369)) { + x_370 = lean_alloc_ctor(1, 2, 0); } else { - x_329 = x_328; + x_370 = x_369; } -lean_ctor_set(x_329, 0, x_326); -lean_ctor_set(x_329, 1, x_327); -if (lean_is_scalar(x_325)) { - x_330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_370, 0, x_367); +lean_ctor_set(x_370, 1, x_368); +if (lean_is_scalar(x_366)) { + x_371 = lean_alloc_ctor(0, 2, 0); } else { - x_330 = x_325; + x_371 = x_366; +} +lean_ctor_set(x_371, 0, x_370); +lean_ctor_set(x_371, 1, x_365); +return x_371; } -lean_ctor_set(x_330, 0, x_329); -lean_ctor_set(x_330, 1, x_324); -return x_330; } } else { -lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; -lean_dec(x_247); -lean_dec_ref(x_220); -lean_dec_ref(x_217); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_2); -x_331 = lean_ctor_get(x_309, 1); -lean_inc(x_331); -lean_dec_ref(x_309); -x_332 = lean_ctor_get(x_310, 1); -lean_inc(x_332); -lean_dec(x_310); -x_333 = lean_unbox(x_255); -lean_dec(x_255); -x_334 = l_Lake_computeArtifact___redArg(x_1, x_4, x_333, x_11, x_332, x_331); -lean_dec_ref(x_11); -x_301 = x_334; -goto block_306; -} -} -else -{ -uint8_t x_335; -lean_inc_ref(x_257); -lean_dec(x_255); +lean_inc_ref(x_259); +lean_dec(x_257); if (x_5 == 0) { -lean_object* x_368; uint8_t x_369; -x_368 = lean_ctor_get(x_249, 4); -x_369 = lean_ctor_get_uint8(x_368, sizeof(void*)*26 + 4); -x_335 = x_369; -goto block_367; +lean_object* x_372; uint8_t x_373; +x_372 = lean_ctor_get(x_251, 4); +x_373 = lean_ctor_get_uint8(x_372, sizeof(void*)*26 + 4); +x_309 = x_373; +goto block_343; } else { -x_335 = x_307; -goto block_367; +x_309 = x_344; +goto block_343; } -block_367: +} +block_275: { -lean_object* x_336; lean_object* x_337; +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; +lean_dec_ref(x_263); +x_271 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_271, 0, x_270); +x_272 = l_Lake_CacheMap_insertCore(x_260, x_271, x_269); +x_273 = lean_st_ref_set(x_267, x_272, x_268); +lean_dec(x_267); +x_274 = lean_ctor_get(x_273, 1); +lean_inc(x_274); +lean_dec_ref(x_273); +x_30 = x_264; +x_31 = x_265; +x_32 = x_266; +x_33 = x_262; +x_34 = x_274; +goto block_39; +} +block_302: +{ +lean_object* x_279; +x_279 = lean_ctor_get(x_251, 21); +lean_inc(x_279); +lean_dec(x_251); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; uint8_t x_281; lean_object* x_282; +x_280 = lean_ctor_get(x_277, 0); +lean_inc_ref(x_280); +x_281 = lean_ctor_get_uint8(x_277, sizeof(void*)*3); +x_282 = lean_ctor_get(x_277, 2); +lean_inc(x_282); +lean_dec_ref(x_277); +x_30 = x_276; +x_31 = x_280; +x_32 = x_281; +x_33 = x_282; +x_34 = x_278; +goto block_39; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; lean_object* x_290; lean_object* x_291; uint64_t x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; uint8_t x_296; +x_283 = lean_ctor_get(x_279, 0); +lean_inc(x_283); +lean_dec_ref(x_279); +x_284 = lean_st_ref_take(x_283, x_278); +x_285 = lean_ctor_get(x_276, 0); +x_286 = lean_ctor_get(x_284, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_284, 1); +lean_inc(x_287); +lean_dec_ref(x_284); +x_288 = lean_ctor_get(x_277, 0); +lean_inc_ref(x_288); +x_289 = lean_ctor_get_uint8(x_277, sizeof(void*)*3); +x_290 = lean_ctor_get(x_277, 1); +lean_inc_ref(x_290); +x_291 = lean_ctor_get(x_277, 2); +lean_inc(x_291); +lean_dec_ref(x_277); +x_292 = lean_ctor_get_uint64(x_285, sizeof(void*)*1); +x_293 = lean_ctor_get(x_285, 0); +x_294 = lean_string_utf8_byte_size(x_293); +x_295 = lean_unsigned_to_nat(0u); +x_296 = lean_nat_dec_eq(x_294, x_295); +lean_dec(x_294); +if (x_296 == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; +x_297 = l_Lake_Hash_hex(x_292); +x_298 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; +x_299 = lean_string_append(x_297, x_298); +x_300 = lean_string_append(x_299, x_293); +x_262 = x_291; +x_263 = x_290; +x_264 = x_276; +x_265 = x_288; +x_266 = x_289; +x_267 = x_283; +x_268 = x_287; +x_269 = x_286; +x_270 = x_300; +goto block_275; +} +else +{ +lean_object* x_301; +x_301 = l_Lake_Hash_hex(x_292); +x_262 = x_291; +x_263 = x_290; +x_264 = x_276; +x_265 = x_288; +x_266 = x_289; +x_267 = x_283; +x_268 = x_287; +x_269 = x_286; +x_270 = x_301; +goto block_275; +} +} +} +block_308: +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_303, 0); +if (lean_obj_tag(x_304) == 0) +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +lean_inc_ref(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec_ref(x_303); +x_306 = lean_ctor_get(x_304, 0); +lean_inc(x_306); +x_307 = lean_ctor_get(x_304, 1); +lean_inc(x_307); +lean_dec_ref(x_304); +x_276 = x_306; +x_277 = x_307; +x_278 = x_305; +goto block_302; +} +else +{ +lean_dec(x_251); +return x_303; +} +} +block_343: +{ +lean_object* x_310; lean_object* x_311; lean_inc_ref(x_11); lean_inc_ref(x_1); +lean_inc(x_251); +lean_inc_ref(x_259); lean_inc(x_249); -lean_inc_ref(x_257); -lean_inc(x_247); -x_336 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_258, x_247, x_257, x_249, x_1, x_6, x_220, x_335, x_7, x_8, x_9, x_10, x_11, x_256, x_254); -x_337 = lean_ctor_get(x_336, 0); -lean_inc(x_337); -if (lean_obj_tag(x_337) == 0) +x_310 = l_Lake_buildArtifactUnlessUpToDate___lam__1(x_260, x_249, x_259, x_251, x_1, x_6, x_222, x_309, x_7, x_8, x_9, x_10, x_11, x_258, x_256); +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_338; -x_338 = lean_ctor_get(x_337, 0); -if (lean_obj_tag(x_338) == 0) +lean_object* x_312; +x_312 = lean_ctor_get(x_311, 0); +if (lean_obj_tag(x_312) == 0) { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; uint8_t x_344; -x_339 = lean_ctor_get(x_336, 1); -lean_inc(x_339); -lean_dec_ref(x_336); -x_340 = lean_ctor_get(x_337, 1); -lean_inc(x_340); -lean_dec_ref(x_337); -x_341 = l_Lake_SavedTrace_replayIfUpToDate___at___Lake_buildFileUnlessUpToDate_x27_spec__0___redArg(x_1, x_217, x_247, x_259, x_11, x_340, x_339); -x_342 = lean_ctor_get(x_341, 0); -lean_inc(x_342); -x_343 = lean_ctor_get(x_342, 0); -x_344 = lean_unbox(x_343); -if (x_344 == 0) +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; uint8_t x_321; uint8_t x_322; +x_313 = lean_ctor_get(x_310, 1); +lean_inc(x_313); +lean_dec_ref(x_310); +x_314 = lean_ctor_get(x_311, 1); +lean_inc(x_314); +lean_dec_ref(x_311); +x_315 = l_Lake_SavedTrace_replayIfUpToDate_x27___at___Lake_buildFileUnlessUpToDate_x27_spec__0(x_7, x_1, x_219, x_249, x_261, x_8, x_9, x_10, x_11, x_314, x_313); +x_316 = lean_ctor_get(x_315, 0); +lean_inc(x_316); +x_317 = lean_ctor_get(x_315, 1); +lean_inc(x_317); +lean_dec_ref(x_315); +x_318 = lean_ctor_get(x_316, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_316, 1); +lean_inc(x_319); +lean_dec(x_316); +x_320 = 0; +x_321 = lean_unbox(x_318); +x_322 = l_Lake_instDecidableEqOutputStatus(x_321, x_320); +if (x_322 == 0) { -lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_345 = lean_ctor_get(x_341, 1); -lean_inc(x_345); -lean_dec_ref(x_341); -x_346 = lean_ctor_get(x_342, 1); -lean_inc(x_346); -lean_dec(x_342); +lean_object* x_323; uint8_t x_324; lean_object* x_325; +lean_dec_ref(x_222); +lean_dec_ref(x_219); +lean_dec_ref(x_2); +x_323 = lean_box(0); +x_324 = lean_unbox(x_318); +lean_dec(x_318); +lean_inc(x_251); +x_325 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_324, x_1, x_4, x_3, x_6, x_309, x_251, x_259, x_260, x_323, x_7, x_8, x_9, x_10, x_11, x_319, x_317); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_303 = x_325; +goto block_308; +} +else +{ +lean_object* x_326; lean_object* x_327; lean_inc_ref(x_11); lean_inc(x_10); lean_inc(x_9); @@ -22626,35 +23067,38 @@ lean_inc_ref(x_8); lean_inc_ref(x_7); lean_inc_ref(x_4); lean_inc_ref(x_1); -x_347 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_217, x_220, x_7, x_8, x_9, x_10, x_11, x_346, x_345); -lean_dec_ref(x_220); -lean_dec_ref(x_217); -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -if (lean_obj_tag(x_348) == 0) +x_326 = l___private_Lake_Build_Common_0__Lake_buildArtifactUnlessUpToDate_doBuild(x_1, x_2, x_4, x_219, x_222, x_7, x_8, x_9, x_10, x_11, x_319, x_317); +lean_dec_ref(x_222); +lean_dec_ref(x_219); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +if (lean_obj_tag(x_327) == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec_ref(x_347); -x_350 = lean_ctor_get(x_348, 1); -lean_inc(x_350); -lean_dec_ref(x_348); -x_351 = lean_box(0); -lean_inc(x_249); -x_352 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_1, x_4, x_3, x_6, x_249, x_257, x_258, x_5, x_351, x_7, x_8, x_9, x_10, x_11, x_350, x_349); +lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +lean_dec_ref(x_326); +x_329 = lean_ctor_get(x_327, 1); +lean_inc(x_329); +lean_dec_ref(x_327); +x_330 = lean_box(0); +x_331 = lean_unbox(x_318); +lean_dec(x_318); +lean_inc(x_251); +x_332 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_331, x_1, x_4, x_3, x_6, x_309, x_251, x_259, x_260, x_330, x_7, x_8, x_9, x_10, x_11, x_329, x_328); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); -x_301 = x_352; -goto block_306; +x_303 = x_332; +goto block_308; } else { -lean_dec_ref(x_348); -lean_dec_ref(x_257); -lean_dec(x_249); +lean_dec_ref(x_327); +lean_dec(x_318); +lean_dec_ref(x_259); +lean_dec(x_251); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22662,40 +23106,18 @@ lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_1); -return x_347; +return x_326; +} } } else { -lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec_ref(x_220); -lean_dec_ref(x_217); -lean_dec_ref(x_2); -x_353 = lean_ctor_get(x_341, 1); -lean_inc(x_353); -lean_dec_ref(x_341); -x_354 = lean_ctor_get(x_342, 1); -lean_inc(x_354); -lean_dec(x_342); -x_355 = lean_box(0); -lean_inc(x_249); -x_356 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_1, x_4, x_3, x_6, x_249, x_257, x_258, x_5, x_355, x_7, x_8, x_9, x_10, x_11, x_354, x_353); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_301 = x_356; -goto block_306; -} -} -else -{ -lean_object* x_357; lean_object* x_358; lean_object* x_359; -lean_inc_ref(x_338); -lean_dec_ref(x_257); -lean_dec(x_247); -lean_dec_ref(x_220); -lean_dec_ref(x_217); +lean_object* x_333; lean_object* x_334; lean_object* x_335; +lean_inc_ref(x_312); +lean_dec_ref(x_259); +lean_dec(x_249); +lean_dec_ref(x_222); +lean_dec_ref(x_219); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22704,29 +23126,29 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_357 = lean_ctor_get(x_336, 1); -lean_inc(x_357); -lean_dec_ref(x_336); -x_358 = lean_ctor_get(x_337, 1); -lean_inc(x_358); -lean_dec_ref(x_337); -x_359 = lean_ctor_get(x_338, 0); -lean_inc(x_359); -lean_dec_ref(x_338); -x_274 = x_359; -x_275 = x_358; -x_276 = x_357; -goto block_300; +x_333 = lean_ctor_get(x_310, 1); +lean_inc(x_333); +lean_dec_ref(x_310); +x_334 = lean_ctor_get(x_311, 1); +lean_inc(x_334); +lean_dec_ref(x_311); +x_335 = lean_ctor_get(x_312, 0); +lean_inc(x_335); +lean_dec_ref(x_312); +x_276 = x_335; +x_277 = x_334; +x_278 = x_333; +goto block_302; } } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; -lean_dec_ref(x_257); +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_dec_ref(x_259); +lean_dec(x_251); lean_dec(x_249); -lean_dec(x_247); -lean_dec_ref(x_220); -lean_dec_ref(x_217); +lean_dec_ref(x_222); +lean_dec_ref(x_219); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22735,182 +23157,51 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_360 = lean_ctor_get(x_336, 1); -lean_inc(x_360); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_361 = x_336; +x_336 = lean_ctor_get(x_310, 1); +lean_inc(x_336); +if (lean_is_exclusive(x_310)) { + lean_ctor_release(x_310, 0); + lean_ctor_release(x_310, 1); + x_337 = x_310; } else { - lean_dec_ref(x_336); - x_361 = lean_box(0); + lean_dec_ref(x_310); + x_337 = lean_box(0); } -x_362 = lean_ctor_get(x_337, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_337, 1); -lean_inc(x_363); -if (lean_is_exclusive(x_337)) { - lean_ctor_release(x_337, 0); - lean_ctor_release(x_337, 1); - x_364 = x_337; +x_338 = lean_ctor_get(x_311, 0); +lean_inc(x_338); +x_339 = lean_ctor_get(x_311, 1); +lean_inc(x_339); +if (lean_is_exclusive(x_311)) { + lean_ctor_release(x_311, 0); + lean_ctor_release(x_311, 1); + x_340 = x_311; } else { - lean_dec_ref(x_337); - x_364 = lean_box(0); + lean_dec_ref(x_311); + x_340 = lean_box(0); } -if (lean_is_scalar(x_364)) { - x_365 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_340)) { + x_341 = lean_alloc_ctor(1, 2, 0); } else { - x_365 = x_364; + x_341 = x_340; } -lean_ctor_set(x_365, 0, x_362); -lean_ctor_set(x_365, 1, x_363); -if (lean_is_scalar(x_361)) { - x_366 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_341, 0, x_338); +lean_ctor_set(x_341, 1, x_339); +if (lean_is_scalar(x_337)) { + x_342 = lean_alloc_ctor(0, 2, 0); } else { - x_366 = x_361; + x_342 = x_337; } -lean_ctor_set(x_366, 0, x_365); -lean_ctor_set(x_366, 1, x_360); -return x_366; -} -} -} -block_273: -{ -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec_ref(x_260); -x_269 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_269, 0, x_268); -x_270 = l_Lake_CacheMap_insertCore(x_258, x_269, x_265); -x_271 = lean_st_ref_set(x_261, x_270, x_264); -lean_dec(x_261); -x_272 = lean_ctor_get(x_271, 1); -lean_inc(x_272); -lean_dec_ref(x_271); -x_30 = x_262; -x_31 = x_263; -x_32 = x_266; -x_33 = x_267; -x_34 = x_272; -goto block_39; -} -block_300: -{ -lean_object* x_277; -x_277 = lean_ctor_get(x_249, 21); -lean_inc(x_277); -lean_dec(x_249); -if (lean_obj_tag(x_277) == 0) -{ -lean_object* x_278; uint8_t x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_275, 0); -lean_inc_ref(x_278); -x_279 = lean_ctor_get_uint8(x_275, sizeof(void*)*3); -x_280 = lean_ctor_get(x_275, 2); -lean_inc(x_280); -lean_dec_ref(x_275); -x_30 = x_274; -x_31 = x_278; -x_32 = x_279; -x_33 = x_280; -x_34 = x_276; -goto block_39; -} -else -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; uint64_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; -x_281 = lean_ctor_get(x_277, 0); -lean_inc(x_281); -lean_dec_ref(x_277); -x_282 = lean_st_ref_take(x_281, x_276); -x_283 = lean_ctor_get(x_274, 0); -x_284 = lean_ctor_get(x_282, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_282, 1); -lean_inc(x_285); -lean_dec_ref(x_282); -x_286 = lean_ctor_get(x_275, 0); -lean_inc_ref(x_286); -x_287 = lean_ctor_get_uint8(x_275, sizeof(void*)*3); -x_288 = lean_ctor_get(x_275, 1); -lean_inc_ref(x_288); -x_289 = lean_ctor_get(x_275, 2); -lean_inc(x_289); -lean_dec_ref(x_275); -x_290 = lean_ctor_get_uint64(x_283, sizeof(void*)*1); -x_291 = lean_ctor_get(x_283, 0); -x_292 = lean_string_utf8_byte_size(x_291); -x_293 = lean_unsigned_to_nat(0u); -x_294 = lean_nat_dec_eq(x_292, x_293); -lean_dec(x_292); -if (x_294 == 0) -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_295 = l_Lake_Hash_hex(x_290); -x_296 = l_Lake_instToOutputJsonArtifact___lam__0___closed__0; -x_297 = lean_string_append(x_295, x_296); -x_298 = lean_string_append(x_297, x_291); -x_260 = x_288; -x_261 = x_281; -x_262 = x_274; -x_263 = x_286; -x_264 = x_285; -x_265 = x_284; -x_266 = x_287; -x_267 = x_289; -x_268 = x_298; -goto block_273; -} -else -{ -lean_object* x_299; -x_299 = l_Lake_Hash_hex(x_290); -x_260 = x_288; -x_261 = x_281; -x_262 = x_274; -x_263 = x_286; -x_264 = x_285; -x_265 = x_284; -x_266 = x_287; -x_267 = x_289; -x_268 = x_299; -goto block_273; -} -} -} -block_306: -{ -lean_object* x_302; -x_302 = lean_ctor_get(x_301, 0); -if (lean_obj_tag(x_302) == 0) -{ -lean_object* x_303; lean_object* x_304; lean_object* x_305; -lean_inc_ref(x_302); -x_303 = lean_ctor_get(x_301, 1); -lean_inc(x_303); -lean_dec_ref(x_301); -x_304 = lean_ctor_get(x_302, 0); -lean_inc(x_304); -x_305 = lean_ctor_get(x_302, 1); -lean_inc(x_305); -lean_dec_ref(x_302); -x_274 = x_304; -x_275 = x_305; -x_276 = x_303; -goto block_300; -} -else -{ -lean_dec(x_249); -return x_301; +lean_ctor_set(x_342, 0, x_341); +lean_ctor_set(x_342, 1, x_336); +return x_342; } } } } else { -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; -lean_dec_ref(x_220); +lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +lean_dec_ref(x_222); lean_dec_ref(x_11); lean_dec(x_10); lean_dec(x_9); @@ -22919,48 +23210,48 @@ lean_dec_ref(x_7); lean_dec_ref(x_4); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_370 = lean_ctor_get(x_221, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_221)) { - lean_ctor_release(x_221, 0); - lean_ctor_release(x_221, 1); - x_371 = x_221; +x_374 = lean_ctor_get(x_223, 1); +lean_inc(x_374); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_375 = x_223; } else { - lean_dec_ref(x_221); - x_371 = lean_box(0); + lean_dec_ref(x_223); + x_375 = lean_box(0); } -x_372 = lean_ctor_get(x_222, 0); -lean_inc(x_372); -x_373 = lean_ctor_get(x_222, 1); -lean_inc(x_373); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_374 = x_222; +x_376 = lean_ctor_get(x_224, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_224, 1); +lean_inc(x_377); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_378 = x_224; } else { - lean_dec_ref(x_222); - x_374 = lean_box(0); + lean_dec_ref(x_224); + x_378 = lean_box(0); } -x_375 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_375, 0, x_373); -lean_ctor_set(x_375, 1, x_217); -lean_ctor_set(x_375, 2, x_218); -lean_ctor_set_uint8(x_375, sizeof(void*)*3, x_216); -if (lean_is_scalar(x_374)) { - x_376 = lean_alloc_ctor(1, 2, 0); +x_379 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_379, 0, x_377); +lean_ctor_set(x_379, 1, x_219); +lean_ctor_set(x_379, 2, x_220); +lean_ctor_set_uint8(x_379, sizeof(void*)*3, x_218); +if (lean_is_scalar(x_378)) { + x_380 = lean_alloc_ctor(1, 2, 0); } else { - x_376 = x_374; + x_380 = x_378; } -lean_ctor_set(x_376, 0, x_372); -lean_ctor_set(x_376, 1, x_375); -if (lean_is_scalar(x_371)) { - x_377 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_380, 0, x_376); +lean_ctor_set(x_380, 1, x_379); +if (lean_is_scalar(x_375)) { + x_381 = lean_alloc_ctor(0, 2, 0); } else { - x_377 = x_371; + x_381 = x_375; } -lean_ctor_set(x_377, 0, x_376); -lean_ctor_set(x_377, 1, x_370); -return x_377; +lean_ctor_set(x_381, 0, x_380); +lean_ctor_set(x_381, 1, x_374); +return x_381; } } block_29: @@ -23093,21 +23384,39 @@ lean_dec_ref(x_7); return x_19; } } -LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { +LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___lam__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; _start: { -uint8_t x_17; uint8_t x_18; uint64_t x_19; uint8_t x_20; lean_object* x_21; -x_17 = lean_unbox(x_3); -x_18 = lean_unbox(x_4); -x_19 = lean_unbox_uint64(x_7); -lean_dec(x_7); -x_20 = lean_unbox(x_8); -x_21 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_1, x_2, x_17, x_18, x_5, x_6, x_19, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +uint8_t x_18; uint8_t x_19; uint8_t x_20; uint8_t x_21; uint64_t x_22; lean_object* x_23; +x_18 = lean_unbox(x_1); +x_19 = lean_unbox(x_4); +x_20 = lean_unbox(x_5); +x_21 = lean_unbox(x_6); +x_22 = lean_unbox_uint64(x_9); +lean_dec(x_9); +x_23 = l_Lake_buildArtifactUnlessUpToDate___lam__2(x_18, x_2, x_3, x_19, x_20, x_21, x_7, x_8, x_22, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); -lean_dec(x_11); -lean_dec_ref(x_10); -return x_21; +lean_dec_ref(x_11); +return x_23; } } LEAN_EXPORT lean_object* l_Lake_buildArtifactUnlessUpToDate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { @@ -24251,13 +24560,13 @@ block_17: lean_object* x_14; lean_object* x_15; lean_object* x_16; x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_11); +lean_ctor_set(x_14, 1, x_10); x_15 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_10); +lean_ctor_set(x_15, 1, x_12); x_16 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_12); +lean_ctor_set(x_16, 1, x_11); return x_16; } block_54: @@ -24299,9 +24608,9 @@ lean_object* x_39; lean_object* x_40; lean_dec_ref(x_37); x_39 = l_IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1___redArg___closed__4; x_40 = l_panic___at___IO_FS_withIsolatedStreams___at___Lake_inputBinFile_spec__1_spec__3(x_39); -x_10 = x_33; -x_11 = x_32; -x_12 = x_36; +x_10 = x_32; +x_11 = x_36; +x_12 = x_33; x_13 = x_40; goto block_17; } @@ -24309,9 +24618,9 @@ else { lean_object* x_41; x_41 = lean_string_from_utf8_unchecked(x_37); -x_10 = x_33; -x_11 = x_32; -x_12 = x_36; +x_10 = x_32; +x_11 = x_36; +x_12 = x_33; x_13 = x_41; goto block_17; } @@ -30739,9 +31048,9 @@ goto block_152; block_144: { lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_nat_add(x_139, x_140); +x_141 = lean_nat_add(x_138, x_140); lean_dec(x_140); -lean_dec(x_139); +lean_dec(x_138); if (lean_is_scalar(x_135)) { x_142 = lean_alloc_ctor(0, 5, 0); } else { @@ -30760,7 +31069,7 @@ if (lean_is_scalar(x_125)) { lean_ctor_set(x_143, 0, x_137); lean_ctor_set(x_143, 1, x_128); lean_ctor_set(x_143, 2, x_129); -lean_ctor_set(x_143, 3, x_138); +lean_ctor_set(x_143, 3, x_139); lean_ctor_set(x_143, 4, x_142); return x_143; } @@ -30786,8 +31095,8 @@ if (lean_obj_tag(x_131) == 0) lean_object* x_150; x_150 = lean_ctor_get(x_131, 0); lean_inc(x_150); -x_138 = x_148; -x_139 = x_149; +x_138 = x_149; +x_139 = x_148; x_140 = x_150; goto block_144; } @@ -30795,8 +31104,8 @@ else { lean_object* x_151; x_151 = lean_unsigned_to_nat(0u); -x_138 = x_148; -x_139 = x_149; +x_138 = x_149; +x_139 = x_148; x_140 = x_151; goto block_144; } @@ -36539,8 +36848,8 @@ l_Lake_instFromJsonBuildMetadata = _init_l_Lake_instFromJsonBuildMetadata(); lean_mark_persistent(l_Lake_instFromJsonBuildMetadata); l_Lake_readTraceFile___closed__0 = _init_l_Lake_readTraceFile___closed__0(); lean_mark_persistent(l_Lake_readTraceFile___closed__0); -l_Lake_checkHashUpToDate___redArg___closed__0 = _init_l_Lake_checkHashUpToDate___redArg___closed__0(); -lean_mark_persistent(l_Lake_checkHashUpToDate___redArg___closed__0); +l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0 = _init_l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0(); +lean_mark_persistent(l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___redArg___closed__0); l_Lake_instToOutputJsonPUnit = _init_l_Lake_instToOutputJsonPUnit(); lean_mark_persistent(l_Lake_instToOutputJsonPUnit); l_Lake_instToOutputJsonArtifact___lam__0___closed__0 = _init_l_Lake_instToOutputJsonArtifact___lam__0___closed__0(); diff --git a/stage0/stdlib/Lake/Build/Module.c b/stage0/stdlib/Lake/Build/Module.c index f5db587062..30b0b411d2 100644 --- a/stage0/stdlib/Lake/Build/Module.c +++ b/stage0/stdlib/Lake/Build/Module.c @@ -27,13 +27,13 @@ LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHas extern lean_object* l_Lake_Module_importArtsFacet; LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__9(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_prepareLeanCommand_mkSpawnArgs(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___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_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_Lake_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__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*); static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0; 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_object*); lean_object* l_Lake_JobResult_prependLog___redArg(lean_object*, lean_object*); extern lean_object* l_Lake_Module_coExportFacet; -lean_object* l_Lake_Cache_saveArtifact(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); +lean_object* l_Lake_Cache_saveArtifact(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*); 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_object*); lean_object* l_Lean_Json_compress(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___lam__1(lean_object*); @@ -86,6 +86,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupExternalModu lean_object* l_Lean_LeanOptions_ofArray(lean_object*); static lean_object* l_Lake_Module_precompileImportsFacetConfig___closed__0; static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__13; +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(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_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*); uint8_t l_Array_isEmpty___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__1___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -119,12 +120,12 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule LEAN_EXPORT lean_object* l_Lake_Module_exportInfoFacetConfig___lam__0(uint8_t, lean_object*); 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*, 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*); static uint8_t l___private_Lake_Build_Module_0__Lake_computeModuleDeps___closed__0; -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_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_recFetchSetup___lam__6___boxed(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_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lake_Module_importsFacetConfig___closed__0; static lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux___closed__8; -lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__1; 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*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_fetchImportLibs_spec__0___closed__0; @@ -139,7 +140,6 @@ lean_object* lean_io_metadata(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lake_recBuildExternDynlibs_spec__2_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_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_importInfoFacetConfig_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1_spec__2___redArg___lam__0(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___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__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_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__6___lam__0(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanBcToO___lam__0___closed__0; @@ -150,7 +150,7 @@ LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig; static lean_object* l_Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__2; static lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__1; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__1_spec__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_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(uint8_t, 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_object*); LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Cache_writeOutputsCore(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); @@ -213,7 +213,7 @@ lean_object* l_Lake_Cache_getArtifact(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport_spec__0___lam__1___boxed(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_Lean_instToJsonModuleHeader_toJson(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(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_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__0___closed__4; lean_object* l_Lake_CacheMap_insertCore(uint64_t, lean_object*, lean_object*); lean_object* lean_task_bind(lean_object*, lean_object*, lean_object*, uint8_t); @@ -224,7 +224,8 @@ static lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportIn LEAN_EXPORT lean_object* l_Lake_Module_setupFacetConfig___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_elem___at_____private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_TargetArray_fetchIn___at_____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_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(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_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(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_string_length(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_restoreModuleArtifact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_EquipT_instMonad___redArg(lean_object*); @@ -281,7 +282,6 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_setupEditedModule 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_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__2; -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_setupFacetConfig_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_prepareLeanCommand_spec__0___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -323,6 +323,7 @@ lean_object* l_Lake_Module_getMTime(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_Module_computeExportInfo___lam__0___closed__2; LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__1___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1___redArg___closed__2; +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___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_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__3; static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__3; 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*); @@ -338,6 +339,7 @@ lean_object* l_Lake_createParentDirs(lean_object*, lean_object*); static lean_object* l_Lake_getArtifacts_x3f___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__3___closed__0; lean_object* l_Lake_Module_checkExists(lean_object*, lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); +uint8_t l_Lake_instDecidableEqOutputStatus(uint8_t, uint8_t); 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_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__3(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_EXPORT lean_object* l_Lake_Module_cacheOutputHashes(lean_object*, lean_object*); @@ -384,10 +386,9 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___La lean_object* l_Array_shrink___redArg(lean_object*, 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_mkLoadOrder___redArg(lean_object*, 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_Lake_Job_mapM___at___Lake_Module_oleanFacetConfig_spec__0___redArg___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_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_headerFacetConfig___lam__1(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f(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_object*); 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_object*); static lean_object* l_Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__10; @@ -402,6 +403,7 @@ LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_inputFacetConfig_ static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_leanArtsFacetConfig; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4(lean_object*, lean_object*); lean_object* l_Lake_removeFileIfExists(lean_object*, lean_object*); 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_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*); @@ -427,11 +429,13 @@ LEAN_EXPORT lean_object* l_Lake_Package_isArtifactCacheEnabled___at_____private_ 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_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_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__2___redArg(lean_object*, lean_object*, lean_object*); +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_object*); LEAN_EXPORT lean_object* l_Lake_Module_importAllArtsFacetConfig; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_formatQuery___at___Lake_Module_inputFacetConfig_spec__0___redArg___closed__0; lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____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_object*); +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__3___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Workspace_findModule_x3f(lean_object*, lean_object*); lean_object* lean_array_pop(lean_object*); @@ -473,10 +477,10 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe LEAN_EXPORT lean_object* l_Lake_Module_precompileImportsFacetConfig; 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*); static lean_object* l_List_toString___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0___closed__1; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0___closed__8; LEAN_EXPORT lean_object* l_Lake_TargetArray_fetchIn___at_____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_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____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*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg___boxed(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_____private_Lake_Build_Module_0__Lake_fetchImportInfo_spec__0___lam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_NameMap_insert_spec__0___redArg(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*); @@ -495,7 +499,6 @@ LEAN_EXPORT lean_object* l_Array_Array_repr___at_____private_Lake_Build_Module_0 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*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*); lean_object* l_Lake_BuildType_leanOptions(uint8_t); -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildAction___at_____private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__1_spec__1_spec__3(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_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -515,7 +518,6 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_restoreNee 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_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_prepareLeanCommand_mkArgs___redArg___closed__1; 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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f___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_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_object* lean_string_utf8_prev(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____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*); @@ -525,7 +527,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m 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_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*, 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_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(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___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*); LEAN_EXPORT lean_object* l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_setupFacetConfig_spec__0(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -571,7 +573,7 @@ static lean_object* l___private_Lake_Build_Module_0__Lake_Module_buildLean___clo LEAN_EXPORT lean_object* l_Lake_Module_bcoFacetConfig; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_OrdHashSet_appendArray___at_____private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_fetchTransImportArts___closed__0; -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(lean_object*, lean_object*, lean_object*, uint64_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(uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_importsFacetConfig_spec__0(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__9___redArg(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_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__5___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -610,7 +612,7 @@ uint8_t l_IO_FS_instOrdSystemTime_ord(lean_object*, lean_object*); lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at___IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1_spec__3(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__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_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___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_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___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_EXPORT lean_object* l_List_foldl___at___List_foldl___at___Std_Format_joinSep___at___Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_recBuildExternDynlibs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -622,13 +624,12 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLe LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_Build_Module_0__Lake_setupEditedModule_spec__0___redArg(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lake_instDecidableEqVerbosity(uint8_t, uint8_t); lean_object* l_Lake_BuildType_leanArgs(uint8_t); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(lean_object*, size_t, size_t, 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*); static lean_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__1; LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at_____private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__0___boxed(lean_object*, lean_object*); extern lean_object* l_Lake_Module_importInfoFacet; LEAN_EXPORT lean_object* l_Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0(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_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_Lake_Job_mapM___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__9___redArg___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_prepareLeanCommand___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_setupServerModule___lam__0___closed__0; @@ -658,13 +659,13 @@ static lean_object* l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs lean_object* l_Lake_Package_cacheScope(lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportInfo_nil___closed__1; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_instInhabitedModuleDeps; +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4___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_object* l___private_Lake_Build_Module_0__Lake_computeTransImportsAux___closed__0; 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_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_____private_Lake_Build_Module_0__Lake_mkLoadOrder_go_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_ModuleImportData_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___Array_Array_repr___at_____private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr_spec__0_spec__0(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(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(lean_object*, 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_Module_fetchOLeanCore(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_IO_withStderr___at___IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1_spec__4___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_Module_restoreNeededArtifacts___redArg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -677,7 +678,6 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_collectImportsAux static lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__0; uint8_t l_Lake_Backend_orPreferLeft(uint8_t, uint8_t); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_Build_Module_0__Lake_computeTransImportsAux_spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern uint64_t l_Lake_Hash_nil; @@ -696,7 +696,6 @@ static lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___ static lean_object* l_List_mapTR_loop___at___Lake_formatCycle___at_____private_Lake_Build_Module_0__Lake_mkLoadOrder_spec__1_spec__1___closed__0; LEAN_EXPORT lean_object* l_Lake_Module_importArtsFacetConfig___lam__1(lean_object*); 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_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4___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_noIRError; static lean_object* l___private_Lake_Build_Module_0__Lake_mkLoadOrder___redArg___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lake_Build_Module_0__Lake_setupEditedModule_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -717,6 +716,7 @@ LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Module_0__L LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__0(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_instDataKindDynlib; extern lean_object* l_Lake_Module_coFacet; +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_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_Lake_Module_headerFacetConfig___lam__2(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_____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_object*); @@ -731,7 +731,6 @@ lean_object* l_Lake_Artifact_trace(lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_prepareLeanCommand_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_recBuildLeanCToOExport(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_restoreModuleArtifact___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_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__9___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0(lean_object*, lean_object*); @@ -898,6 +897,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutp 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_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_dynlibFacetConfig_spec__0(uint8_t, lean_object*); static lean_object* l_Lake_OrdHashSet_empty___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__7___closed__5; +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lake_OrdHashSet_appendArray___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1___redArg___closed__3; lean_object* lean_io_wait(lean_object*, lean_object*); @@ -953,6 +953,8 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_resolveModuleOutp LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_fetchTransImportArts_spec__0_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_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Module_0__Lake_Module_recParseImports_spec__0_spec__2_spec__2(lean_object*, lean_object*); extern lean_object* l_Lake_LeanLib_sharedFacet; +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(uint64_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___Lake_recBuildExternDynlibs_spec__2_spec__2___closed__0; extern lean_object* l_Lake_Module_oleanFacet; LEAN_EXPORT lean_object* l_Lake_Module_importInfoFacetConfig___lam__1___boxed(lean_object*, lean_object*); @@ -1005,9 +1007,11 @@ LEAN_EXPORT lean_object* l_Lake_prepareLeanCommand(lean_object*, lean_object*, l 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_Lake_Module_leanFacetConfig; LEAN_EXPORT lean_object* l_IO_withStdout___at___IO_FS_withIsolatedStreams___at_____private_Lake_Build_Module_0__Lake_Module_recFetchInput_spec__1_spec__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_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Module_depsFacetConfig_spec__0___redArg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_oFacetConfig; static lean_object* l_Lake_Module_bcoFacetConfig___closed__1; +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_setupServerModule___closed__0; static lean_object* l___private_Lake_Build_Module_0__Lake_instReprModuleDeps_repr___redArg___closed__3; LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Module_0__Lake_Module_computeExportInfo_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*); @@ -28689,369 +28693,325 @@ lean_closure_set(x_6, 4, x_5); return x_6; } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (x_1 == 0) -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_7 = lean_ctor_get(x_4, 1); +lean_inc(x_7); lean_dec_ref(x_4); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_6); -return x_9; +x_8 = lean_ctor_get(x_5, 0); +x_9 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); +x_10 = lean_ctor_get(x_5, 1); +x_11 = lean_ctor_get(x_5, 2); +x_12 = lean_ctor_get(x_7, 2); +lean_inc_ref(x_12); +lean_dec(x_7); +x_13 = 0; +x_14 = l_Lake_Cache_saveArtifact(x_12, x_2, x_3, x_13, x_13, x_1, x_6); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_5); +lean_ctor_set(x_14, 0, x_17); +return x_14; } else { -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; -x_10 = lean_ctor_get(x_4, 1); -lean_inc(x_10); -lean_dec_ref(x_4); -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -x_13 = lean_ctor_get(x_5, 1); -x_14 = lean_ctor_get(x_5, 2); -x_15 = lean_ctor_get(x_10, 2); -lean_inc_ref(x_15); -lean_dec(x_10); -x_16 = 0; -x_17 = l_Lake_Cache_saveArtifact(x_15, x_2, x_3, x_16, x_16, x_6); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_19); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = lean_ctor_get(x_14, 0); +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_14); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_5); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_5); -lean_ctor_set(x_17, 0, x_21); -return x_17; -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_22 = lean_ctor_get(x_17, 0); -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_17); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_22); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_5); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_23); -return x_26; +lean_ctor_set(x_21, 1, x_19); +return x_21; } } else { -uint8_t x_27; -lean_inc(x_14); -lean_inc_ref(x_13); -lean_inc_ref(x_11); -x_27 = !lean_is_exclusive(x_5); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_5, 2); -lean_dec(x_28); -x_29 = lean_ctor_get(x_5, 1); -lean_dec(x_29); -x_30 = lean_ctor_get(x_5, 0); -lean_dec(x_30); -x_31 = !lean_is_exclusive(x_17); -if (x_31 == 0) -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_32 = lean_ctor_get(x_17, 0); -x_33 = lean_io_error_to_string(x_32); -x_34 = 3; -x_35 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_34); -x_36 = lean_array_get_size(x_11); -x_37 = lean_array_push(x_11, x_35); -lean_ctor_set(x_5, 0, x_37); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_5); -lean_ctor_set_tag(x_17, 0); -lean_ctor_set(x_17, 0, x_38); -return x_17; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_39 = lean_ctor_get(x_17, 0); -x_40 = lean_ctor_get(x_17, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_17); -x_41 = lean_io_error_to_string(x_39); -x_42 = 3; -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); -x_44 = lean_array_get_size(x_11); -x_45 = lean_array_push(x_11, x_43); -lean_ctor_set(x_5, 0, x_45); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_5); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_40); -return x_47; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -lean_dec(x_5); -x_48 = lean_ctor_get(x_17, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_17, 1); -lean_inc(x_49); -if (lean_is_exclusive(x_17)) { - lean_ctor_release(x_17, 0); - lean_ctor_release(x_17, 1); - x_50 = x_17; -} else { - lean_dec_ref(x_17); - x_50 = lean_box(0); -} -x_51 = lean_io_error_to_string(x_48); -x_52 = 3; -x_53 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); -x_54 = lean_array_get_size(x_11); -x_55 = lean_array_push(x_11, x_53); -x_56 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_13); -lean_ctor_set(x_56, 2, x_14); -lean_ctor_set_uint8(x_56, sizeof(void*)*3, x_12); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_54); -lean_ctor_set(x_57, 1, x_56); -if (lean_is_scalar(x_50)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_50; - lean_ctor_set_tag(x_58, 0); -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_49); -return x_58; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -if (x_1 == 0) -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_10); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_dec_ref(x_8); -x_15 = lean_ctor_get(x_9, 0); -x_16 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); -x_17 = lean_ctor_get(x_9, 1); -x_18 = lean_ctor_get(x_9, 2); -x_19 = lean_ctor_get(x_14, 2); -lean_inc_ref(x_19); -lean_dec(x_14); -x_20 = 0; -x_21 = l_Lake_Cache_saveArtifact(x_19, x_2, x_3, x_20, x_20, x_10); -if (lean_obj_tag(x_21) == 0) -{ uint8_t x_22; -x_22 = !lean_is_exclusive(x_21); +lean_inc(x_11); +lean_inc_ref(x_10); +lean_inc_ref(x_8); +x_22 = !lean_is_exclusive(x_5); if (x_22 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_21, 0); -x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_23); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_5, 2); +lean_dec(x_23); +x_24 = lean_ctor_get(x_5, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_5, 0); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_14); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_27 = lean_ctor_get(x_14, 0); +x_28 = lean_io_error_to_string(x_27); +x_29 = 3; +x_30 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set_uint8(x_30, sizeof(void*)*1, x_29); +x_31 = lean_array_get_size(x_8); +x_32 = lean_array_push(x_8, x_30); +lean_ctor_set(x_5, 0, x_32); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_5); +lean_ctor_set_tag(x_14, 0); +lean_ctor_set(x_14, 0, x_33); +return x_14; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_34 = lean_ctor_get(x_14, 0); +x_35 = lean_ctor_get(x_14, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_14); +x_36 = lean_io_error_to_string(x_34); +x_37 = 3; +x_38 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set_uint8(x_38, sizeof(void*)*1, x_37); +x_39 = lean_array_get_size(x_8); +x_40 = lean_array_push(x_8, x_38); +lean_ctor_set(x_5, 0, x_40); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_5); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_35); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_5); +x_43 = lean_ctor_get(x_14, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_14, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + x_45 = x_14; +} else { + lean_dec_ref(x_14); + x_45 = lean_box(0); +} +x_46 = lean_io_error_to_string(x_43); +x_47 = 3; +x_48 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set_uint8(x_48, sizeof(void*)*1, x_47); +x_49 = lean_array_get_size(x_8); +x_50 = lean_array_push(x_8, x_48); +x_51 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_10); +lean_ctor_set(x_51, 2, x_11); +lean_ctor_set_uint8(x_51, sizeof(void*)*3, x_9); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_51); +if (lean_is_scalar(x_45)) { + x_53 = lean_alloc_ctor(0, 2, 0); +} else { + x_53 = x_45; + lean_ctor_set_tag(x_53, 0); +} +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_44); +return x_53; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +lean_dec_ref(x_8); +x_12 = lean_ctor_get(x_9, 0); +x_13 = lean_ctor_get_uint8(x_9, sizeof(void*)*3); +x_14 = lean_ctor_get(x_9, 1); +x_15 = lean_ctor_get(x_9, 2); +x_16 = lean_ctor_get(x_11, 2); +lean_inc_ref(x_16); +lean_dec(x_11); +x_17 = 0; +x_18 = l_Lake_Cache_saveArtifact(x_16, x_2, x_3, x_17, x_17, x_1, x_10); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_9); +lean_ctor_set(x_18, 0, x_21); +return x_18; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_18, 0); +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_18); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_9); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_9); -lean_ctor_set(x_21, 0, x_25); -return x_21; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_26 = lean_ctor_get(x_21, 0); -x_27 = lean_ctor_get(x_21, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_21); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_26); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_9); -x_30 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_27); -return x_30; +lean_ctor_set(x_25, 1, x_23); +return x_25; } } else { -uint8_t x_31; -lean_inc(x_18); -lean_inc_ref(x_17); -lean_inc_ref(x_15); -x_31 = !lean_is_exclusive(x_9); -if (x_31 == 0) +uint8_t x_26; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_12); +x_26 = !lean_is_exclusive(x_9); +if (x_26 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_32 = lean_ctor_get(x_9, 2); -lean_dec(x_32); -x_33 = lean_ctor_get(x_9, 1); -lean_dec(x_33); -x_34 = lean_ctor_get(x_9, 0); -lean_dec(x_34); -x_35 = !lean_is_exclusive(x_21); -if (x_35 == 0) +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_9, 2); +lean_dec(x_27); +x_28 = lean_ctor_get(x_9, 1); +lean_dec(x_28); +x_29 = lean_ctor_get(x_9, 0); +lean_dec(x_29); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) { -lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_36 = lean_ctor_get(x_21, 0); -x_37 = lean_io_error_to_string(x_36); -x_38 = 3; -x_39 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_38); -x_40 = lean_array_get_size(x_15); -x_41 = lean_array_push(x_15, x_39); -lean_ctor_set(x_9, 0, x_41); -x_42 = lean_alloc_ctor(1, 2, 0); +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_31 = lean_ctor_get(x_18, 0); +x_32 = lean_io_error_to_string(x_31); +x_33 = 3; +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); +x_35 = lean_array_get_size(x_12); +x_36 = lean_array_push(x_12, x_34); +lean_ctor_set(x_9, 0, x_36); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_9); +lean_ctor_set_tag(x_18, 0); +lean_ctor_set(x_18, 0, x_37); +return x_18; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_38 = lean_ctor_get(x_18, 0); +x_39 = lean_ctor_get(x_18, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_18); +x_40 = lean_io_error_to_string(x_38); +x_41 = 3; +x_42 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_9); -lean_ctor_set_tag(x_21, 0); -lean_ctor_set(x_21, 0, x_42); -return x_21; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_43 = lean_ctor_get(x_21, 0); -x_44 = lean_ctor_get(x_21, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_21); -x_45 = lean_io_error_to_string(x_43); -x_46 = 3; -x_47 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46); -x_48 = lean_array_get_size(x_15); -x_49 = lean_array_push(x_15, x_47); -lean_ctor_set(x_9, 0, x_49); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_9); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_44); -return x_51; +lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41); +x_43 = lean_array_get_size(x_12); +x_44 = lean_array_push(x_12, x_42); +lean_ctor_set(x_9, 0, x_44); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_9); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_39); +return x_46; } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_dec(x_9); -x_52 = lean_ctor_get(x_21, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_21, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_21)) { - lean_ctor_release(x_21, 0); - lean_ctor_release(x_21, 1); - x_54 = x_21; +x_47 = lean_ctor_get(x_18, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_18, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_49 = x_18; } else { - lean_dec_ref(x_21); - x_54 = lean_box(0); + lean_dec_ref(x_18); + x_49 = lean_box(0); } -x_55 = lean_io_error_to_string(x_52); -x_56 = 3; -x_57 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); -x_58 = lean_array_get_size(x_15); -x_59 = lean_array_push(x_15, x_57); -x_60 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_17); -lean_ctor_set(x_60, 2, x_18); -lean_ctor_set_uint8(x_60, sizeof(void*)*3, x_16); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_58); -lean_ctor_set(x_61, 1, x_60); -if (lean_is_scalar(x_54)) { - x_62 = lean_alloc_ctor(0, 2, 0); +x_50 = lean_io_error_to_string(x_47); +x_51 = 3; +x_52 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_51); +x_53 = lean_array_get_size(x_12); +x_54 = lean_array_push(x_12, x_52); +x_55 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_14); +lean_ctor_set(x_55, 2, x_15); +lean_ctor_set_uint8(x_55, sizeof(void*)*3, x_13); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_55); +if (lean_is_scalar(x_49)) { + x_57 = lean_alloc_ctor(0, 2, 0); } else { - x_62 = x_54; - lean_ctor_set_tag(x_62, 0); + x_57 = x_49; + lean_ctor_set_tag(x_57, 0); } -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_53); -return x_62; +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_48); +return x_57; } } } } -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; lean_object* x_8; x_7 = lean_unbox(x_1); -x_8 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(x_7, x_2, x_3, x_4, x_5, x_6); +x_8 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___redArg(x_7, x_2, x_3, x_4, x_5, x_6); return x_8; } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { uint8_t x_11; lean_object* x_12; x_11 = lean_unbox(x_1); -x_12 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cache(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -29059,1745 +29019,1373 @@ lean_dec_ref(x_4); return x_12; } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_6 = l_System_FilePath_pathExists(x_1, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_unbox(x_7); -lean_dec(x_7); -if (x_8 == 0) +if (x_2 == 0) { -uint8_t x_9; +lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_dec_ref(x_5); +lean_dec_ref(x_4); lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_9 = !lean_is_exclusive(x_6); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_6, 0); -lean_dec(x_10); -x_11 = lean_box(0); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_4); -lean_ctor_set(x_6, 0, x_12); -return x_6; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_6, 1); -lean_inc(x_13); -lean_dec(x_6); -x_14 = lean_box(0); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_4); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_13); -return x_16; -} -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; -x_17 = lean_ctor_get(x_3, 1); -lean_inc(x_17); -lean_dec_ref(x_3); -x_18 = lean_ctor_get(x_6, 1); -lean_inc(x_18); -lean_dec_ref(x_6); -x_19 = lean_ctor_get(x_4, 0); -x_20 = lean_ctor_get_uint8(x_4, sizeof(void*)*3); -x_21 = lean_ctor_get(x_4, 1); -x_22 = lean_ctor_get(x_4, 2); -x_23 = lean_ctor_get(x_17, 2); -lean_inc_ref(x_23); -lean_dec(x_17); -x_24 = 0; -x_25 = l_Lake_Cache_saveArtifact(x_23, x_1, x_2, x_24, x_24, x_18); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_28, 0, x_27); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_4); -lean_ctor_set(x_25, 0, x_29); -return x_25; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_30 = lean_ctor_get(x_25, 0); -x_31 = lean_ctor_get(x_25, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_25); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_30); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_4); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_31); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_inc(x_22); -lean_inc_ref(x_21); -lean_inc_ref(x_19); -x_35 = !lean_is_exclusive(x_4); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_36 = lean_ctor_get(x_4, 2); -lean_dec(x_36); -x_37 = lean_ctor_get(x_4, 1); -lean_dec(x_37); -x_38 = lean_ctor_get(x_4, 0); -lean_dec(x_38); -x_39 = !lean_is_exclusive(x_25); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_40 = lean_ctor_get(x_25, 0); -x_41 = lean_io_error_to_string(x_40); -x_42 = 3; -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_42); -x_44 = lean_array_get_size(x_19); -x_45 = lean_array_push(x_19, x_43); -lean_ctor_set(x_4, 0, x_45); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_4); -lean_ctor_set_tag(x_25, 0); -lean_ctor_set(x_25, 0, x_46); -return x_25; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_47 = lean_ctor_get(x_25, 0); -x_48 = lean_ctor_get(x_25, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_25); -x_49 = lean_io_error_to_string(x_47); -x_50 = 3; -x_51 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set_uint8(x_51, sizeof(void*)*1, x_50); -x_52 = lean_array_get_size(x_19); -x_53 = lean_array_push(x_19, x_51); -lean_ctor_set(x_4, 0, x_53); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_4); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_48); -return x_55; -} -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_4); -x_56 = lean_ctor_get(x_25, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_25, 1); -lean_inc(x_57); -if (lean_is_exclusive(x_25)) { - lean_ctor_release(x_25, 0); - lean_ctor_release(x_25, 1); - x_58 = x_25; -} else { - lean_dec_ref(x_25); - x_58 = lean_box(0); -} -x_59 = lean_io_error_to_string(x_56); -x_60 = 3; -x_61 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60); -x_62 = lean_array_get_size(x_19); -x_63 = lean_array_push(x_19, x_61); -x_64 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_21); -lean_ctor_set(x_64, 2, x_22); -lean_ctor_set_uint8(x_64, sizeof(void*)*3, x_20); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_64); -if (lean_is_scalar(x_58)) { - x_66 = lean_alloc_ctor(0, 2, 0); -} else { - x_66 = x_58; - lean_ctor_set_tag(x_66, 0); -} -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_57); -return x_66; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = l_System_FilePath_pathExists(x_1, x_9); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) -{ -uint8_t x_13; -lean_dec_ref(x_7); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_13 = !lean_is_exclusive(x_10); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_10, 0); -lean_dec(x_14); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_8); -lean_ctor_set(x_10, 0, x_16); +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_6); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_7); return x_10; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_dec(x_10); -x_18 = lean_box(0); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_8); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_17); -return x_20; +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_dec_ref(x_5); +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get_uint8(x_6, sizeof(void*)*3); +x_14 = lean_ctor_get(x_6, 1); +x_15 = lean_ctor_get(x_6, 2); +x_16 = lean_ctor_get(x_11, 2); +lean_inc_ref(x_16); +lean_dec(x_11); +x_17 = 0; +x_18 = l_Lake_Cache_saveArtifact(x_16, x_3, x_4, x_17, x_17, x_1, x_7); +if (lean_obj_tag(x_18) == 0) +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_18, 0); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_6); +lean_ctor_set(x_18, 0, x_22); +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_6); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_24); +return x_27; } } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; -x_21 = lean_ctor_get(x_7, 1); -lean_inc(x_21); -lean_dec_ref(x_7); -x_22 = lean_ctor_get(x_10, 1); -lean_inc(x_22); -lean_dec_ref(x_10); -x_23 = lean_ctor_get(x_8, 0); -x_24 = lean_ctor_get_uint8(x_8, sizeof(void*)*3); -x_25 = lean_ctor_get(x_8, 1); -x_26 = lean_ctor_get(x_8, 2); -x_27 = lean_ctor_get(x_21, 2); -lean_inc_ref(x_27); -lean_dec(x_21); -x_28 = 0; -x_29 = l_Lake_Cache_saveArtifact(x_27, x_1, x_2, x_28, x_28, x_22); -if (lean_obj_tag(x_29) == 0) +uint8_t x_28; +lean_inc(x_15); +lean_inc_ref(x_14); +lean_inc_ref(x_12); +x_28 = !lean_is_exclusive(x_6); +if (x_28 == 0) { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_29, 0); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_31); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_8); -lean_ctor_set(x_29, 0, x_33); -return x_29; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_29, 0); -x_35 = lean_ctor_get(x_29, 1); -lean_inc(x_35); -lean_inc(x_34); +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_6, 2); lean_dec(x_29); -x_36 = lean_alloc_ctor(1, 1, 0); +x_30 = lean_ctor_get(x_6, 1); +lean_dec(x_30); +x_31 = lean_ctor_get(x_6, 0); +lean_dec(x_31); +x_32 = !lean_is_exclusive(x_18); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_33 = lean_ctor_get(x_18, 0); +x_34 = lean_io_error_to_string(x_33); +x_35 = 3; +x_36 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_36, 0, x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_8); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -return x_38; -} +lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35); +x_37 = lean_array_get_size(x_12); +x_38 = lean_array_push(x_12, x_36); +lean_ctor_set(x_6, 0, x_38); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_6); +lean_ctor_set_tag(x_18, 0); +lean_ctor_set(x_18, 0, x_39); +return x_18; } else { -uint8_t x_39; -lean_inc(x_26); -lean_inc_ref(x_25); -lean_inc_ref(x_23); -x_39 = !lean_is_exclusive(x_8); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_40 = lean_ctor_get(x_8, 2); -lean_dec(x_40); -x_41 = lean_ctor_get(x_8, 1); -lean_dec(x_41); -x_42 = lean_ctor_get(x_8, 0); -lean_dec(x_42); -x_43 = !lean_is_exclusive(x_29); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_44 = lean_ctor_get(x_29, 0); -x_45 = lean_io_error_to_string(x_44); -x_46 = 3; -x_47 = lean_alloc_ctor(0, 1, 1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_40 = lean_ctor_get(x_18, 0); +x_41 = lean_ctor_get(x_18, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_18); +x_42 = lean_io_error_to_string(x_40); +x_43 = 3; +x_44 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set_uint8(x_44, sizeof(void*)*1, x_43); +x_45 = lean_array_get_size(x_12); +x_46 = lean_array_push(x_12, x_44); +lean_ctor_set(x_6, 0, x_46); +x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_45); -lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46); -x_48 = lean_array_get_size(x_23); -x_49 = lean_array_push(x_23, x_47); -lean_ctor_set(x_8, 0, x_49); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_8); -lean_ctor_set_tag(x_29, 0); -lean_ctor_set(x_29, 0, x_50); -return x_29; +lean_ctor_set(x_47, 1, x_6); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_41); +return x_48; +} } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_51 = lean_ctor_get(x_29, 0); -x_52 = lean_ctor_get(x_29, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_29); -x_53 = lean_io_error_to_string(x_51); -x_54 = 3; -x_55 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set_uint8(x_55, sizeof(void*)*1, x_54); -x_56 = lean_array_get_size(x_23); -x_57 = lean_array_push(x_23, x_55); -lean_ctor_set(x_8, 0, x_57); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_dec(x_6); +x_49 = lean_ctor_get(x_18, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_18, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_51 = x_18; +} else { + lean_dec_ref(x_18); + x_51 = lean_box(0); +} +x_52 = lean_io_error_to_string(x_49); +x_53 = 3; +x_54 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_54, 0, x_52); +lean_ctor_set_uint8(x_54, sizeof(void*)*1, x_53); +x_55 = lean_array_get_size(x_12); +x_56 = lean_array_push(x_12, x_54); +x_57 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_14); +lean_ctor_set(x_57, 2, x_15); +lean_ctor_set_uint8(x_57, sizeof(void*)*3, x_13); x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_8); -x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_57); +if (lean_is_scalar(x_51)) { + x_59 = lean_alloc_ctor(0, 2, 0); +} else { + x_59 = x_51; + lean_ctor_set_tag(x_59, 0); +} lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_52); +lean_ctor_set(x_59, 1, x_50); return x_59; } } -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_8); -x_60 = lean_ctor_get(x_29, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_29, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_29)) { - lean_ctor_release(x_29, 0); - lean_ctor_release(x_29, 1); - x_62 = x_29; -} else { - lean_dec_ref(x_29); - x_62 = lean_box(0); -} -x_63 = lean_io_error_to_string(x_60); -x_64 = 3; -x_65 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set_uint8(x_65, sizeof(void*)*1, x_64); -x_66 = lean_array_get_size(x_23); -x_67 = lean_array_push(x_23, x_65); -x_68 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_25); -lean_ctor_set(x_68, 2, x_26); -lean_ctor_set_uint8(x_68, sizeof(void*)*3, x_24); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_66); -lean_ctor_set(x_69, 1, x_68); -if (lean_is_scalar(x_62)) { - x_70 = lean_alloc_ctor(0, 2, 0); -} else { - x_70 = x_62; - lean_ctor_set_tag(x_70, 0); -} -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_61); -return x_70; } } } -} -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(uint8_t x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_10; -x_10 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIfExists_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); +if (x_2 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec_ref(x_9); +lean_dec_ref(x_4); lean_dec_ref(x_3); +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_11); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_dec_ref(x_9); +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get_uint8(x_10, sizeof(void*)*3); +x_18 = lean_ctor_get(x_10, 1); +x_19 = lean_ctor_get(x_10, 2); +x_20 = lean_ctor_get(x_15, 2); +lean_inc_ref(x_20); +lean_dec(x_15); +x_21 = 0; +x_22 = l_Lake_Cache_saveArtifact(x_20, x_3, x_4, x_21, x_21, x_1, x_11); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_22, 0); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_10); +lean_ctor_set(x_22, 0, x_26); +return x_22; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_22, 0); +x_28 = lean_ctor_get(x_22, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_22); +x_29 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_29, 0, x_27); +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_10); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_28); +return x_31; +} +} +else +{ +uint8_t x_32; +lean_inc(x_19); +lean_inc_ref(x_18); +lean_inc_ref(x_16); +x_32 = !lean_is_exclusive(x_10); +if (x_32 == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_33 = lean_ctor_get(x_10, 2); +lean_dec(x_33); +x_34 = lean_ctor_get(x_10, 1); +lean_dec(x_34); +x_35 = lean_ctor_get(x_10, 0); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_22); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_37 = lean_ctor_get(x_22, 0); +x_38 = lean_io_error_to_string(x_37); +x_39 = 3; +x_40 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39); +x_41 = lean_array_get_size(x_16); +x_42 = lean_array_push(x_16, x_40); +lean_ctor_set(x_10, 0, x_42); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_10); +lean_ctor_set_tag(x_22, 0); +lean_ctor_set(x_22, 0, x_43); +return x_22; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_44 = lean_ctor_get(x_22, 0); +x_45 = lean_ctor_get(x_22, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_22); +x_46 = lean_io_error_to_string(x_44); +x_47 = 3; +x_48 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set_uint8(x_48, sizeof(void*)*1, x_47); +x_49 = lean_array_get_size(x_16); +x_50 = lean_array_push(x_16, x_48); +lean_ctor_set(x_10, 0, x_50); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_10); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_45); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +lean_dec(x_10); +x_53 = lean_ctor_get(x_22, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_22, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_55 = x_22; +} else { + lean_dec_ref(x_22); + x_55 = lean_box(0); +} +x_56 = lean_io_error_to_string(x_53); +x_57 = 3; +x_58 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_57); +x_59 = lean_array_get_size(x_16); +x_60 = lean_array_push(x_16, x_58); +x_61 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_18); +lean_ctor_set(x_61, 2, x_19); +lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_17); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_59); +lean_ctor_set(x_62, 1, x_61); +if (lean_is_scalar(x_55)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_55; + lean_ctor_set_tag(x_63, 0); +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_54); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; uint8_t x_9; lean_object* x_10; +x_8 = lean_unbox(x_1); +x_9 = lean_unbox(x_2); +x_10 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___redArg(x_8, x_9, x_3, x_4, x_5, x_6, x_7); return x_10; } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_5, 0); -lean_inc_ref(x_6); -x_7 = lean_ctor_get(x_6, 4); -lean_inc_ref(x_7); -x_8 = lean_ctor_get(x_2, 1); -lean_inc(x_8); -lean_dec_ref(x_2); -x_9 = lean_ctor_get(x_1, 1); -lean_inc(x_9); +uint8_t x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_unbox(x_1); +x_13 = lean_unbox(x_2); +x_14 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts_cacheIf_x3f(x_12, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_7, 0); +lean_inc_ref(x_8); +x_9 = lean_ctor_get(x_8, 4); +lean_inc_ref(x_9); +x_10 = lean_ctor_get(x_4, 1); +lean_inc(x_10); +lean_dec_ref(x_4); +x_11 = lean_ctor_get(x_1, 1); +lean_inc(x_11); lean_dec_ref(x_1); -x_10 = lean_ctor_get(x_6, 2); -lean_inc_ref(x_10); -lean_dec_ref(x_6); -x_11 = lean_ctor_get(x_7, 6); -lean_inc_ref(x_11); -x_12 = lean_ctor_get(x_7, 7); +x_12 = lean_ctor_get(x_8, 2); lean_inc_ref(x_12); -x_13 = lean_ctor_get(x_7, 10); +lean_dec_ref(x_8); +x_13 = lean_ctor_get(x_9, 6); lean_inc_ref(x_13); -lean_dec_ref(x_7); -x_14 = lean_ctor_get(x_3, 0); -x_15 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); -x_16 = lean_ctor_get(x_3, 1); -x_17 = lean_ctor_get(x_3, 2); -x_18 = lean_ctor_get(x_8, 2); -lean_inc_ref(x_18); -if (lean_is_exclusive(x_8)) { - lean_ctor_release(x_8, 0); - lean_ctor_release(x_8, 1); - lean_ctor_release(x_8, 2); - lean_ctor_release(x_8, 3); - lean_ctor_release(x_8, 4); - lean_ctor_release(x_8, 5); - lean_ctor_release(x_8, 6); - x_19 = x_8; +x_14 = lean_ctor_get(x_9, 7); +lean_inc_ref(x_14); +x_15 = lean_ctor_get(x_9, 10); +lean_inc_ref(x_15); +lean_dec_ref(x_9); +x_16 = lean_ctor_get(x_5, 0); +x_17 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); +x_18 = lean_ctor_get(x_5, 1); +x_19 = lean_ctor_get(x_5, 2); +x_20 = lean_ctor_get(x_10, 2); +lean_inc_ref(x_20); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + lean_ctor_release(x_10, 2); + lean_ctor_release(x_10, 3); + lean_ctor_release(x_10, 4); + lean_ctor_release(x_10, 5); + lean_ctor_release(x_10, 6); + x_21 = x_10; } else { - lean_dec_ref(x_8); - x_19 = lean_box(0); + lean_dec_ref(x_10); + x_21 = lean_box(0); } -x_20 = l_Lake_Module_clearOutputArtifacts___closed__0; -x_21 = l_System_FilePath_normalize(x_11); -x_22 = l_Lake_joinRelative(x_10, x_21); -lean_dec_ref(x_21); -x_23 = l_System_FilePath_normalize(x_12); -lean_inc_ref(x_22); -x_24 = l_Lake_joinRelative(x_22, x_23); +x_22 = l_Lake_Module_clearOutputArtifacts___closed__0; +x_23 = l_System_FilePath_normalize(x_13); +x_24 = l_Lake_joinRelative(x_12, x_23); lean_dec_ref(x_23); -x_25 = l_Lean_modToFilePath(x_24, x_9, x_20); -x_26 = 0; -lean_inc_ref(x_18); -x_27 = l_Lake_Cache_saveArtifact(x_18, x_25, x_20, x_26, x_26, x_4); -if (lean_obj_tag(x_27) == 0) +x_25 = l_System_FilePath_normalize(x_14); +lean_inc_ref(x_24); +x_26 = l_Lake_joinRelative(x_24, x_25); +lean_dec_ref(x_25); +x_27 = l_Lean_modToFilePath(x_26, x_11, x_22); +x_28 = 0; +lean_inc_ref(x_20); +x_29 = l_Lake_Cache_saveArtifact(x_20, x_27, x_22, x_28, x_28, x_3, x_6); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_30 = x_27; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_32 = x_29; } else { - lean_dec_ref(x_27); - x_30 = lean_box(0); + lean_dec_ref(x_29); + x_32 = lean_box(0); } -x_279 = l_Lake_Module_clearOutputArtifacts___closed__1; -x_280 = l_Lean_modToFilePath(x_24, x_9, x_279); -x_281 = l_System_FilePath_pathExists(x_280, x_29); -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_unbox(x_282); -lean_dec(x_282); -if (x_283 == 0) +if (x_2 == 0) { -lean_object* x_284; lean_object* x_285; -lean_dec_ref(x_280); -x_284 = lean_ctor_get(x_281, 1); -lean_inc(x_284); -lean_dec_ref(x_281); -x_285 = lean_box(0); -x_207 = x_285; -x_208 = x_3; -x_209 = x_284; -goto block_278; +lean_object* x_231; +x_231 = lean_box(0); +x_184 = x_231; +x_185 = x_5; +x_186 = x_31; +goto block_230; } else { -uint8_t x_286; -x_286 = !lean_is_exclusive(x_281); -if (x_286 == 0) +lean_object* x_232; lean_object* x_233; lean_object* x_234; +x_232 = l_Lake_Module_clearOutputArtifacts___closed__1; +x_233 = l_Lean_modToFilePath(x_26, x_11, x_232); +lean_inc_ref(x_20); +x_234 = l_Lake_Cache_saveArtifact(x_20, x_233, x_232, x_28, x_28, x_3, x_31); +if (lean_obj_tag(x_234) == 0) { -lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_281, 1); -x_288 = lean_ctor_get(x_281, 0); -lean_dec(x_288); -lean_inc_ref(x_18); -x_289 = l_Lake_Cache_saveArtifact(x_18, x_280, x_279, x_26, x_26, x_287); -if (lean_obj_tag(x_289) == 0) -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; -lean_free_object(x_281); -x_290 = lean_ctor_get(x_289, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_289, 1); -lean_inc(x_291); -lean_dec_ref(x_289); -x_292 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_292, 0, x_290); -x_207 = x_292; -x_208 = x_3; -x_209 = x_291; -goto block_278; +lean_object* x_235; lean_object* x_236; lean_object* x_237; +x_235 = lean_ctor_get(x_234, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_234, 1); +lean_inc(x_236); +lean_dec_ref(x_234); +x_237 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_237, 0, x_235); +x_184 = x_237; +x_185 = x_5; +x_186 = x_236; +goto block_230; } else { -uint8_t x_293; +uint8_t x_238; +lean_dec(x_32); lean_dec(x_30); -lean_dec(x_28); +lean_dec_ref(x_26); lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_inc(x_17); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_inc(x_19); +lean_inc_ref(x_18); lean_inc_ref(x_16); -lean_inc_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_9); -x_293 = !lean_is_exclusive(x_3); -if (x_293 == 0) +lean_dec_ref(x_15); +lean_dec(x_11); +x_238 = !lean_is_exclusive(x_5); +if (x_238 == 0) { -lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -x_294 = lean_ctor_get(x_3, 2); -lean_dec(x_294); -x_295 = lean_ctor_get(x_3, 1); -lean_dec(x_295); -x_296 = lean_ctor_get(x_3, 0); -lean_dec(x_296); -x_297 = !lean_is_exclusive(x_289); -if (x_297 == 0) +lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; +x_239 = lean_ctor_get(x_5, 2); +lean_dec(x_239); +x_240 = lean_ctor_get(x_5, 1); +lean_dec(x_240); +x_241 = lean_ctor_get(x_5, 0); +lean_dec(x_241); +x_242 = !lean_is_exclusive(x_234); +if (x_242 == 0) { -lean_object* x_298; lean_object* x_299; uint8_t x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; -x_298 = lean_ctor_get(x_289, 0); -x_299 = lean_io_error_to_string(x_298); -x_300 = 3; -x_301 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_301, 0, x_299); -lean_ctor_set_uint8(x_301, sizeof(void*)*1, x_300); -x_302 = lean_array_get_size(x_14); -x_303 = lean_array_push(x_14, x_301); -lean_ctor_set(x_3, 0, x_303); -lean_ctor_set_tag(x_281, 1); -lean_ctor_set(x_281, 1, x_3); -lean_ctor_set(x_281, 0, x_302); -lean_ctor_set_tag(x_289, 0); -lean_ctor_set(x_289, 0, x_281); -return x_289; +lean_object* x_243; lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_243 = lean_ctor_get(x_234, 0); +x_244 = lean_io_error_to_string(x_243); +x_245 = 3; +x_246 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set_uint8(x_246, sizeof(void*)*1, x_245); +x_247 = lean_array_get_size(x_16); +x_248 = lean_array_push(x_16, x_246); +lean_ctor_set(x_5, 0, x_248); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_5); +lean_ctor_set_tag(x_234, 0); +lean_ctor_set(x_234, 0, x_249); +return x_234; } else { -lean_object* x_304; lean_object* x_305; lean_object* x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_304 = lean_ctor_get(x_289, 0); -x_305 = lean_ctor_get(x_289, 1); -lean_inc(x_305); -lean_inc(x_304); -lean_dec(x_289); -x_306 = lean_io_error_to_string(x_304); -x_307 = 3; -x_308 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_308, 0, x_306); -lean_ctor_set_uint8(x_308, sizeof(void*)*1, x_307); -x_309 = lean_array_get_size(x_14); -x_310 = lean_array_push(x_14, x_308); -lean_ctor_set(x_3, 0, x_310); -lean_ctor_set_tag(x_281, 1); -lean_ctor_set(x_281, 1, x_3); -lean_ctor_set(x_281, 0, x_309); -x_311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_311, 0, x_281); -lean_ctor_set(x_311, 1, x_305); -return x_311; +lean_object* x_250; lean_object* x_251; lean_object* x_252; uint8_t x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; +x_250 = lean_ctor_get(x_234, 0); +x_251 = lean_ctor_get(x_234, 1); +lean_inc(x_251); +lean_inc(x_250); +lean_dec(x_234); +x_252 = lean_io_error_to_string(x_250); +x_253 = 3; +x_254 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_254, 0, x_252); +lean_ctor_set_uint8(x_254, sizeof(void*)*1, x_253); +x_255 = lean_array_get_size(x_16); +x_256 = lean_array_push(x_16, x_254); +lean_ctor_set(x_5, 0, x_256); +x_257 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_257, 0, x_255); +lean_ctor_set(x_257, 1, x_5); +x_258 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_251); +return x_258; } } else { -lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec(x_3); -x_312 = lean_ctor_get(x_289, 0); -lean_inc(x_312); -x_313 = lean_ctor_get(x_289, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - x_314 = x_289; -} else { - lean_dec_ref(x_289); - x_314 = lean_box(0); -} -x_315 = lean_io_error_to_string(x_312); -x_316 = 3; -x_317 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_317, 0, x_315); -lean_ctor_set_uint8(x_317, sizeof(void*)*1, x_316); -x_318 = lean_array_get_size(x_14); -x_319 = lean_array_push(x_14, x_317); -x_320 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_16); -lean_ctor_set(x_320, 2, x_17); -lean_ctor_set_uint8(x_320, sizeof(void*)*3, x_15); -lean_ctor_set_tag(x_281, 1); -lean_ctor_set(x_281, 1, x_320); -lean_ctor_set(x_281, 0, x_318); -if (lean_is_scalar(x_314)) { - x_321 = lean_alloc_ctor(0, 2, 0); -} else { - x_321 = x_314; - lean_ctor_set_tag(x_321, 0); -} -lean_ctor_set(x_321, 0, x_281); -lean_ctor_set(x_321, 1, x_313); -return x_321; -} -} -} -else -{ -lean_object* x_322; lean_object* x_323; -x_322 = lean_ctor_get(x_281, 1); -lean_inc(x_322); -lean_dec(x_281); -lean_inc_ref(x_18); -x_323 = l_Lake_Cache_saveArtifact(x_18, x_280, x_279, x_26, x_26, x_322); -if (lean_obj_tag(x_323) == 0) -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; -x_324 = lean_ctor_get(x_323, 0); -lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 1); -lean_inc(x_325); -lean_dec_ref(x_323); -x_326 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_326, 0, x_324); -x_207 = x_326; -x_208 = x_3; -x_209 = x_325; -goto block_278; -} -else -{ -lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; uint8_t x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_9); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - x_327 = x_3; -} else { - lean_dec_ref(x_3); - x_327 = lean_box(0); -} -x_328 = lean_ctor_get(x_323, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_323, 1); -lean_inc(x_329); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - lean_ctor_release(x_323, 1); - x_330 = x_323; -} else { - lean_dec_ref(x_323); - x_330 = lean_box(0); -} -x_331 = lean_io_error_to_string(x_328); -x_332 = 3; -x_333 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_333, 0, x_331); -lean_ctor_set_uint8(x_333, sizeof(void*)*1, x_332); -x_334 = lean_array_get_size(x_14); -x_335 = lean_array_push(x_14, x_333); -if (lean_is_scalar(x_327)) { - x_336 = lean_alloc_ctor(0, 3, 1); -} else { - x_336 = x_327; -} -lean_ctor_set(x_336, 0, x_335); -lean_ctor_set(x_336, 1, x_16); -lean_ctor_set(x_336, 2, x_17); -lean_ctor_set_uint8(x_336, sizeof(void*)*3, x_15); -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_334); -lean_ctor_set(x_337, 1, x_336); -if (lean_is_scalar(x_330)) { - x_338 = lean_alloc_ctor(0, 2, 0); -} else { - x_338 = x_330; - lean_ctor_set_tag(x_338, 0); -} -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_329); -return x_338; -} -} -} -block_42: -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -if (lean_is_scalar(x_19)) { - x_39 = lean_alloc_ctor(0, 7, 0); -} else { - x_39 = x_19; -} -lean_ctor_set(x_39, 0, x_28); -lean_ctor_set(x_39, 1, x_31); -lean_ctor_set(x_39, 2, x_33); -lean_ctor_set(x_39, 3, x_34); -lean_ctor_set(x_39, 4, x_32); -lean_ctor_set(x_39, 5, x_35); -lean_ctor_set(x_39, 6, x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_37); -if (lean_is_scalar(x_30)) { - x_41 = lean_alloc_ctor(0, 2, 0); -} else { - x_41 = x_30; -} -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_38); -return x_41; -} -block_129: -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = l_Lake_Module_clearOutputArtifacts___closed__3; -x_53 = l_Lean_modToFilePath(x_24, x_9, x_52); -lean_dec_ref(x_24); -lean_inc_ref(x_18); -x_54 = l_Lake_Cache_saveArtifact(x_18, x_53, x_52, x_26, x_26, x_51); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec_ref(x_54); -x_57 = l_Lake_Module_clearOutputArtifacts___closed__5; -x_58 = l_System_FilePath_normalize(x_13); -x_59 = l_Lake_joinRelative(x_22, x_58); -lean_dec_ref(x_58); -x_60 = l_Lean_modToFilePath(x_59, x_9, x_57); -lean_inc_ref(x_18); -x_61 = l_Lake_Cache_saveArtifact(x_18, x_60, x_57, x_26, x_26, x_56); -if (lean_obj_tag(x_61) == 0) -{ -lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec_ref(x_61); -x_64 = l_Lake_Module_cacheOutputHashes___closed__0; -if (x_64 == 0) -{ -lean_object* x_65; -lean_dec_ref(x_59); -lean_dec(x_50); -lean_dec_ref(x_49); -lean_dec_ref(x_47); -lean_dec_ref(x_18); -lean_dec(x_9); -x_65 = lean_box(0); -x_31 = x_43; -x_32 = x_45; -x_33 = x_44; -x_34 = x_55; -x_35 = x_62; -x_36 = x_65; -x_37 = x_46; -x_38 = x_63; -goto block_42; -} -else -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = l_Lake_Module_clearOutputArtifacts___closed__6; -x_67 = l_Lean_modToFilePath(x_59, x_9, x_66); -lean_dec(x_9); -lean_dec_ref(x_59); -x_68 = l_Lake_Cache_saveArtifact(x_18, x_67, x_66, x_26, x_26, x_63); -if (lean_obj_tag(x_68) == 0) -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -lean_dec(x_50); -lean_dec_ref(x_49); -lean_dec_ref(x_47); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -lean_dec_ref(x_68); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_69); -x_31 = x_43; -x_32 = x_45; -x_33 = x_44; -x_34 = x_55; -x_35 = x_62; -x_36 = x_71; -x_37 = x_46; -x_38 = x_70; -goto block_42; -} -else -{ -uint8_t x_72; -lean_dec(x_62); -lean_dec(x_55); -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_30); -lean_dec(x_28); -lean_dec(x_19); -x_72 = !lean_is_exclusive(x_68); -if (x_72 == 0) -{ -lean_object* x_73; lean_object* x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_73 = lean_ctor_get(x_68, 0); -x_74 = lean_io_error_to_string(x_73); -x_75 = 3; -x_76 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set_uint8(x_76, sizeof(void*)*1, x_75); -x_77 = lean_array_get_size(x_47); -x_78 = lean_array_push(x_47, x_76); -x_79 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_49); -lean_ctor_set(x_79, 2, x_50); -lean_ctor_set_uint8(x_79, sizeof(void*)*3, x_48); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set_tag(x_68, 0); -lean_ctor_set(x_68, 0, x_80); -return x_68; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_81 = lean_ctor_get(x_68, 0); -x_82 = lean_ctor_get(x_68, 1); -lean_inc(x_82); -lean_inc(x_81); -lean_dec(x_68); -x_83 = lean_io_error_to_string(x_81); -x_84 = 3; -x_85 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_84); -x_86 = lean_array_get_size(x_47); -x_87 = lean_array_push(x_47, x_85); -x_88 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_49); -lean_ctor_set(x_88, 2, x_50); -lean_ctor_set_uint8(x_88, sizeof(void*)*3, x_48); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_82); -return x_90; -} -} -} -} -else -{ -uint8_t x_91; -lean_dec_ref(x_59); -lean_dec(x_55); -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_30); -lean_dec(x_28); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec(x_9); -x_91 = !lean_is_exclusive(x_61); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_92 = lean_ctor_get(x_61, 0); -x_93 = lean_io_error_to_string(x_92); -x_94 = 3; -x_95 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set_uint8(x_95, sizeof(void*)*1, x_94); -x_96 = lean_array_get_size(x_47); -x_97 = lean_array_push(x_47, x_95); -x_98 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_49); -lean_ctor_set(x_98, 2, x_50); -lean_ctor_set_uint8(x_98, sizeof(void*)*3, x_48); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_96); -lean_ctor_set(x_99, 1, x_98); -lean_ctor_set_tag(x_61, 0); -lean_ctor_set(x_61, 0, x_99); -return x_61; -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_100 = lean_ctor_get(x_61, 0); -x_101 = lean_ctor_get(x_61, 1); -lean_inc(x_101); -lean_inc(x_100); -lean_dec(x_61); -x_102 = lean_io_error_to_string(x_100); -x_103 = 3; -x_104 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set_uint8(x_104, sizeof(void*)*1, x_103); -x_105 = lean_array_get_size(x_47); -x_106 = lean_array_push(x_47, x_104); -x_107 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_49); -lean_ctor_set(x_107, 2, x_50); -lean_ctor_set_uint8(x_107, sizeof(void*)*3, x_48); -x_108 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_107); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_101); -return x_109; -} -} -} -else -{ -uint8_t x_110; -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec(x_44); -lean_dec(x_43); -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_13); -lean_dec(x_9); -x_110 = !lean_is_exclusive(x_54); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_111 = lean_ctor_get(x_54, 0); -x_112 = lean_io_error_to_string(x_111); -x_113 = 3; -x_114 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set_uint8(x_114, sizeof(void*)*1, x_113); -x_115 = lean_array_get_size(x_47); -x_116 = lean_array_push(x_47, x_114); -x_117 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_49); -lean_ctor_set(x_117, 2, x_50); -lean_ctor_set_uint8(x_117, sizeof(void*)*3, x_48); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_115); -lean_ctor_set(x_118, 1, x_117); -lean_ctor_set_tag(x_54, 0); -lean_ctor_set(x_54, 0, x_118); -return x_54; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_119 = lean_ctor_get(x_54, 0); -x_120 = lean_ctor_get(x_54, 1); -lean_inc(x_120); -lean_inc(x_119); -lean_dec(x_54); -x_121 = lean_io_error_to_string(x_119); -x_122 = 3; -x_123 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set_uint8(x_123, sizeof(void*)*1, x_122); -x_124 = lean_array_get_size(x_47); -x_125 = lean_array_push(x_47, x_123); -x_126 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_49); -lean_ctor_set(x_126, 2, x_50); -lean_ctor_set_uint8(x_126, sizeof(void*)*3, x_48); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_126); -x_128 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_128, 0, x_127); -lean_ctor_set(x_128, 1, x_120); -return x_128; -} -} -} -block_206: -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; -x_134 = l_Lake_Module_clearOutputArtifacts___closed__4; -x_135 = l_Lean_modToFilePath(x_24, x_9, x_134); -x_136 = l_System_FilePath_pathExists(x_135, x_133); -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_unbox(x_137); -lean_dec(x_137); -if (x_138 == 0) -{ -lean_object* x_139; lean_object* x_140; uint8_t x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -lean_dec_ref(x_135); -x_139 = lean_ctor_get(x_136, 1); -lean_inc(x_139); -lean_dec_ref(x_136); -x_140 = lean_ctor_get(x_132, 0); -lean_inc_ref(x_140); -x_141 = lean_ctor_get_uint8(x_132, sizeof(void*)*3); -x_142 = lean_ctor_get(x_132, 1); -lean_inc_ref(x_142); -x_143 = lean_ctor_get(x_132, 2); -lean_inc(x_143); -x_144 = lean_box(0); -x_43 = x_130; -x_44 = x_131; -x_45 = x_144; -x_46 = x_132; -x_47 = x_140; -x_48 = x_141; -x_49 = x_142; -x_50 = x_143; -x_51 = x_139; -goto block_129; -} -else -{ -uint8_t x_145; -x_145 = !lean_is_exclusive(x_136); -if (x_145 == 0) -{ -lean_object* x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_146 = lean_ctor_get(x_136, 1); -x_147 = lean_ctor_get(x_136, 0); -lean_dec(x_147); -x_148 = lean_ctor_get(x_132, 0); -lean_inc_ref(x_148); -x_149 = lean_ctor_get_uint8(x_132, sizeof(void*)*3); -x_150 = lean_ctor_get(x_132, 1); -lean_inc_ref(x_150); -x_151 = lean_ctor_get(x_132, 2); -lean_inc(x_151); -lean_inc_ref(x_18); -x_152 = l_Lake_Cache_saveArtifact(x_18, x_135, x_134, x_26, x_26, x_146); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_free_object(x_136); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -lean_dec_ref(x_152); -x_155 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_155, 0, x_153); -x_43 = x_130; -x_44 = x_131; -x_45 = x_155; -x_46 = x_132; -x_47 = x_148; -x_48 = x_149; -x_49 = x_150; -x_50 = x_151; -x_51 = x_154; -goto block_129; -} -else -{ -uint8_t x_156; -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_13); -lean_dec(x_9); -x_156 = !lean_is_exclusive(x_132); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -x_157 = lean_ctor_get(x_132, 2); -lean_dec(x_157); -x_158 = lean_ctor_get(x_132, 1); -lean_dec(x_158); -x_159 = lean_ctor_get(x_132, 0); -lean_dec(x_159); -x_160 = !lean_is_exclusive(x_152); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_161 = lean_ctor_get(x_152, 0); -x_162 = lean_io_error_to_string(x_161); -x_163 = 3; -x_164 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set_uint8(x_164, sizeof(void*)*1, x_163); -x_165 = lean_array_get_size(x_148); -x_166 = lean_array_push(x_148, x_164); -lean_ctor_set(x_132, 0, x_166); -lean_ctor_set_tag(x_136, 1); -lean_ctor_set(x_136, 1, x_132); -lean_ctor_set(x_136, 0, x_165); -lean_ctor_set_tag(x_152, 0); -lean_ctor_set(x_152, 0, x_136); -return x_152; -} -else -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_167 = lean_ctor_get(x_152, 0); -x_168 = lean_ctor_get(x_152, 1); -lean_inc(x_168); -lean_inc(x_167); -lean_dec(x_152); -x_169 = lean_io_error_to_string(x_167); -x_170 = 3; -x_171 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_171, 0, x_169); -lean_ctor_set_uint8(x_171, sizeof(void*)*1, x_170); -x_172 = lean_array_get_size(x_148); -x_173 = lean_array_push(x_148, x_171); -lean_ctor_set(x_132, 0, x_173); -lean_ctor_set_tag(x_136, 1); -lean_ctor_set(x_136, 1, x_132); -lean_ctor_set(x_136, 0, x_172); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_136); -lean_ctor_set(x_174, 1, x_168); -return x_174; -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -lean_dec(x_132); -x_175 = lean_ctor_get(x_152, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_152, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_177 = x_152; -} else { - lean_dec_ref(x_152); - x_177 = lean_box(0); -} -x_178 = lean_io_error_to_string(x_175); -x_179 = 3; -x_180 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set_uint8(x_180, sizeof(void*)*1, x_179); -x_181 = lean_array_get_size(x_148); -x_182 = lean_array_push(x_148, x_180); -x_183 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_183, 0, x_182); -lean_ctor_set(x_183, 1, x_150); -lean_ctor_set(x_183, 2, x_151); -lean_ctor_set_uint8(x_183, sizeof(void*)*3, x_149); -lean_ctor_set_tag(x_136, 1); -lean_ctor_set(x_136, 1, x_183); -lean_ctor_set(x_136, 0, x_181); -if (lean_is_scalar(x_177)) { - x_184 = lean_alloc_ctor(0, 2, 0); -} else { - x_184 = x_177; - lean_ctor_set_tag(x_184, 0); -} -lean_ctor_set(x_184, 0, x_136); -lean_ctor_set(x_184, 1, x_176); -return x_184; -} -} -} -else -{ -lean_object* x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; -x_185 = lean_ctor_get(x_136, 1); -lean_inc(x_185); -lean_dec(x_136); -x_186 = lean_ctor_get(x_132, 0); -lean_inc_ref(x_186); -x_187 = lean_ctor_get_uint8(x_132, sizeof(void*)*3); -x_188 = lean_ctor_get(x_132, 1); -lean_inc_ref(x_188); -x_189 = lean_ctor_get(x_132, 2); -lean_inc(x_189); -lean_inc_ref(x_18); -x_190 = l_Lake_Cache_saveArtifact(x_18, x_135, x_134, x_26, x_26, x_185); -if (lean_obj_tag(x_190) == 0) -{ -lean_object* x_191; lean_object* x_192; lean_object* x_193; -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec_ref(x_190); -x_193 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_193, 0, x_191); -x_43 = x_130; -x_44 = x_131; -x_45 = x_193; -x_46 = x_132; -x_47 = x_186; -x_48 = x_187; -x_49 = x_188; -x_50 = x_189; -x_51 = x_192; -goto block_129; -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; -lean_dec(x_131); -lean_dec(x_130); -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_13); -lean_dec(x_9); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - lean_ctor_release(x_132, 2); - x_194 = x_132; -} else { - lean_dec_ref(x_132); - x_194 = lean_box(0); -} -x_195 = lean_ctor_get(x_190, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_190, 1); -lean_inc(x_196); -if (lean_is_exclusive(x_190)) { - lean_ctor_release(x_190, 0); - lean_ctor_release(x_190, 1); - x_197 = x_190; -} else { - lean_dec_ref(x_190); - x_197 = lean_box(0); -} -x_198 = lean_io_error_to_string(x_195); -x_199 = 3; -x_200 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_200, 0, x_198); -lean_ctor_set_uint8(x_200, sizeof(void*)*1, x_199); -x_201 = lean_array_get_size(x_186); -x_202 = lean_array_push(x_186, x_200); -if (lean_is_scalar(x_194)) { - x_203 = lean_alloc_ctor(0, 3, 1); -} else { - x_203 = x_194; -} -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_188); -lean_ctor_set(x_203, 2, x_189); -lean_ctor_set_uint8(x_203, sizeof(void*)*3, x_187); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_201); -lean_ctor_set(x_204, 1, x_203); -if (lean_is_scalar(x_197)) { - x_205 = lean_alloc_ctor(0, 2, 0); -} else { - x_205 = x_197; - lean_ctor_set_tag(x_205, 0); -} -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_196); -return x_205; -} -} -} -} -block_278: -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; -x_210 = l_Lake_Module_clearOutputArtifacts___closed__2; -x_211 = l_Lean_modToFilePath(x_24, x_9, x_210); -x_212 = l_System_FilePath_pathExists(x_211, x_209); -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_unbox(x_213); -lean_dec(x_213); -if (x_214 == 0) -{ -lean_object* x_215; lean_object* x_216; -lean_dec_ref(x_211); -x_215 = lean_ctor_get(x_212, 1); -lean_inc(x_215); -lean_dec_ref(x_212); -x_216 = lean_box(0); -x_130 = x_207; -x_131 = x_216; -x_132 = x_208; -x_133 = x_215; -goto block_206; -} -else -{ -uint8_t x_217; -x_217 = !lean_is_exclusive(x_212); -if (x_217 == 0) -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_218 = lean_ctor_get(x_212, 1); -x_219 = lean_ctor_get(x_212, 0); -lean_dec(x_219); -x_220 = lean_ctor_get(x_208, 0); -x_221 = lean_ctor_get_uint8(x_208, sizeof(void*)*3); -x_222 = lean_ctor_get(x_208, 1); -x_223 = lean_ctor_get(x_208, 2); -lean_inc_ref(x_18); -x_224 = l_Lake_Cache_saveArtifact(x_18, x_211, x_210, x_26, x_26, x_218); -if (lean_obj_tag(x_224) == 0) -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; -lean_free_object(x_212); -x_225 = lean_ctor_get(x_224, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); -lean_inc(x_226); -lean_dec_ref(x_224); -x_227 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_227, 0, x_225); -x_130 = x_207; -x_131 = x_227; -x_132 = x_208; -x_133 = x_226; -goto block_206; -} -else -{ -uint8_t x_228; -lean_inc(x_223); -lean_inc_ref(x_222); -lean_inc_ref(x_220); -lean_dec(x_207); -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_13); -lean_dec(x_9); -x_228 = !lean_is_exclusive(x_208); -if (x_228 == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; -x_229 = lean_ctor_get(x_208, 2); -lean_dec(x_229); -x_230 = lean_ctor_get(x_208, 1); -lean_dec(x_230); -x_231 = lean_ctor_get(x_208, 0); -lean_dec(x_231); -x_232 = !lean_is_exclusive(x_224); -if (x_232 == 0) -{ -lean_object* x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -x_233 = lean_ctor_get(x_224, 0); -x_234 = lean_io_error_to_string(x_233); -x_235 = 3; -x_236 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set_uint8(x_236, sizeof(void*)*1, x_235); -x_237 = lean_array_get_size(x_220); -x_238 = lean_array_push(x_220, x_236); -lean_ctor_set(x_208, 0, x_238); -lean_ctor_set_tag(x_212, 1); -lean_ctor_set(x_212, 1, x_208); -lean_ctor_set(x_212, 0, x_237); -lean_ctor_set_tag(x_224, 0); -lean_ctor_set(x_224, 0, x_212); -return x_224; -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_239 = lean_ctor_get(x_224, 0); -x_240 = lean_ctor_get(x_224, 1); -lean_inc(x_240); -lean_inc(x_239); -lean_dec(x_224); -x_241 = lean_io_error_to_string(x_239); -x_242 = 3; -x_243 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set_uint8(x_243, sizeof(void*)*1, x_242); -x_244 = lean_array_get_size(x_220); -x_245 = lean_array_push(x_220, x_243); -lean_ctor_set(x_208, 0, x_245); -lean_ctor_set_tag(x_212, 1); -lean_ctor_set(x_212, 1, x_208); -lean_ctor_set(x_212, 0, x_244); -x_246 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_246, 0, x_212); -lean_ctor_set(x_246, 1, x_240); -return x_246; -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; -lean_dec(x_208); -x_247 = lean_ctor_get(x_224, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_224, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_249 = x_224; -} else { - lean_dec_ref(x_224); - x_249 = lean_box(0); -} -x_250 = lean_io_error_to_string(x_247); -x_251 = 3; -x_252 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_252, 0, x_250); -lean_ctor_set_uint8(x_252, sizeof(void*)*1, x_251); -x_253 = lean_array_get_size(x_220); -x_254 = lean_array_push(x_220, x_252); -x_255 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_255, 0, x_254); -lean_ctor_set(x_255, 1, x_222); -lean_ctor_set(x_255, 2, x_223); -lean_ctor_set_uint8(x_255, sizeof(void*)*3, x_221); -lean_ctor_set_tag(x_212, 1); -lean_ctor_set(x_212, 1, x_255); -lean_ctor_set(x_212, 0, x_253); -if (lean_is_scalar(x_249)) { - x_256 = lean_alloc_ctor(0, 2, 0); -} else { - x_256 = x_249; - lean_ctor_set_tag(x_256, 0); -} -lean_ctor_set(x_256, 0, x_212); -lean_ctor_set(x_256, 1, x_248); -return x_256; -} -} -} -else -{ -lean_object* x_257; lean_object* x_258; uint8_t x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_257 = lean_ctor_get(x_212, 1); -lean_inc(x_257); -lean_dec(x_212); -x_258 = lean_ctor_get(x_208, 0); -x_259 = lean_ctor_get_uint8(x_208, sizeof(void*)*3); -x_260 = lean_ctor_get(x_208, 1); -x_261 = lean_ctor_get(x_208, 2); -lean_inc_ref(x_18); -x_262 = l_Lake_Cache_saveArtifact(x_18, x_211, x_210, x_26, x_26, x_257); -if (lean_obj_tag(x_262) == 0) -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_262, 0); -lean_inc(x_263); -x_264 = lean_ctor_get(x_262, 1); -lean_inc(x_264); -lean_dec_ref(x_262); -x_265 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_265, 0, x_263); -x_130 = x_207; -x_131 = x_265; -x_132 = x_208; -x_133 = x_264; -goto block_206; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_inc(x_261); -lean_inc_ref(x_260); -lean_inc_ref(x_258); -lean_dec(x_207); -lean_dec(x_30); -lean_dec(x_28); -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_dec_ref(x_13); -lean_dec(x_9); -if (lean_is_exclusive(x_208)) { - lean_ctor_release(x_208, 0); - lean_ctor_release(x_208, 1); - lean_ctor_release(x_208, 2); - x_266 = x_208; -} else { - lean_dec_ref(x_208); - x_266 = lean_box(0); -} -x_267 = lean_ctor_get(x_262, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_262, 1); -lean_inc(x_268); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_269 = x_262; -} else { - lean_dec_ref(x_262); - x_269 = lean_box(0); -} -x_270 = lean_io_error_to_string(x_267); -x_271 = 3; -x_272 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_272, 0, x_270); -lean_ctor_set_uint8(x_272, sizeof(void*)*1, x_271); -x_273 = lean_array_get_size(x_258); -x_274 = lean_array_push(x_258, x_272); -if (lean_is_scalar(x_266)) { - x_275 = lean_alloc_ctor(0, 3, 1); -} else { - x_275 = x_266; -} -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_275, 1, x_260); -lean_ctor_set(x_275, 2, x_261); -lean_ctor_set_uint8(x_275, sizeof(void*)*3, x_259); -x_276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_276, 0, x_273); -lean_ctor_set(x_276, 1, x_275); -if (lean_is_scalar(x_269)) { - x_277 = lean_alloc_ctor(0, 2, 0); -} else { - x_277 = x_269; - lean_ctor_set_tag(x_277, 0); -} -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_268); -return x_277; -} -} -} -} -} -else -{ -uint8_t x_339; -lean_dec_ref(x_24); -lean_dec_ref(x_22); -lean_dec(x_19); -lean_dec_ref(x_18); -lean_inc(x_17); -lean_inc_ref(x_16); -lean_inc_ref(x_14); -lean_dec_ref(x_13); -lean_dec(x_9); -x_339 = !lean_is_exclusive(x_3); -if (x_339 == 0) -{ -lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; -x_340 = lean_ctor_get(x_3, 2); -lean_dec(x_340); -x_341 = lean_ctor_get(x_3, 1); -lean_dec(x_341); -x_342 = lean_ctor_get(x_3, 0); -lean_dec(x_342); -x_343 = !lean_is_exclusive(x_27); -if (x_343 == 0) -{ -lean_object* x_344; lean_object* x_345; uint8_t x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; -x_344 = lean_ctor_get(x_27, 0); -x_345 = lean_io_error_to_string(x_344); -x_346 = 3; -x_347 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_347, 0, x_345); -lean_ctor_set_uint8(x_347, sizeof(void*)*1, x_346); -x_348 = lean_array_get_size(x_14); -x_349 = lean_array_push(x_14, x_347); -lean_ctor_set(x_3, 0, x_349); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_3); -lean_ctor_set_tag(x_27, 0); -lean_ctor_set(x_27, 0, x_350); -return x_27; -} -else -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; uint8_t x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_351 = lean_ctor_get(x_27, 0); -x_352 = lean_ctor_get(x_27, 1); -lean_inc(x_352); -lean_inc(x_351); -lean_dec(x_27); -x_353 = lean_io_error_to_string(x_351); -x_354 = 3; -x_355 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_355, 0, x_353); -lean_ctor_set_uint8(x_355, sizeof(void*)*1, x_354); -x_356 = lean_array_get_size(x_14); -x_357 = lean_array_push(x_14, x_355); -lean_ctor_set(x_3, 0, x_357); -x_358 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_358, 0, x_356); -lean_ctor_set(x_358, 1, x_3); -x_359 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_359, 1, x_352); -return x_359; -} -} -else -{ -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; uint8_t x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; -lean_dec(x_3); -x_360 = lean_ctor_get(x_27, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_27, 1); -lean_inc(x_361); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_362 = x_27; -} else { - lean_dec_ref(x_27); - x_362 = lean_box(0); -} -x_363 = lean_io_error_to_string(x_360); -x_364 = 3; -x_365 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_365, 0, x_363); -lean_ctor_set_uint8(x_365, sizeof(void*)*1, x_364); -x_366 = lean_array_get_size(x_14); -x_367 = lean_array_push(x_14, x_365); -x_368 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_368, 0, x_367); -lean_ctor_set(x_368, 1, x_16); -lean_ctor_set(x_368, 2, x_17); -lean_ctor_set_uint8(x_368, sizeof(void*)*3, x_15); -x_369 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_369, 0, x_366); -lean_ctor_set(x_369, 1, x_368); -if (lean_is_scalar(x_362)) { - x_370 = lean_alloc_ctor(0, 2, 0); -} else { - x_370 = x_362; - lean_ctor_set_tag(x_370, 0); -} -lean_ctor_set(x_370, 0, x_369); -lean_ctor_set(x_370, 1, x_361); -return x_370; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(x_1, x_6, x_7, x_8); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec_ref(x_2); +x_259 = lean_ctor_get(x_234, 0); +lean_inc(x_259); +x_260 = lean_ctor_get(x_234, 1); +lean_inc(x_260); +if (lean_is_exclusive(x_234)) { + lean_ctor_release(x_234, 0); + lean_ctor_release(x_234, 1); + x_261 = x_234; +} else { + lean_dec_ref(x_234); + x_261 = lean_box(0); +} +x_262 = lean_io_error_to_string(x_259); +x_263 = 3; +x_264 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_264, 0, x_262); +lean_ctor_set_uint8(x_264, sizeof(void*)*1, x_263); +x_265 = lean_array_get_size(x_16); +x_266 = lean_array_push(x_16, x_264); +x_267 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_267, 0, x_266); +lean_ctor_set(x_267, 1, x_18); +lean_ctor_set(x_267, 2, x_19); +lean_ctor_set_uint8(x_267, sizeof(void*)*3, x_17); +x_268 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_268, 0, x_265); +lean_ctor_set(x_268, 1, x_267); +if (lean_is_scalar(x_261)) { + x_269 = lean_alloc_ctor(0, 2, 0); +} else { + x_269 = x_261; + lean_ctor_set_tag(x_269, 0); +} +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_260); +return x_269; +} +} +} +block_44: +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +if (lean_is_scalar(x_21)) { + x_41 = lean_alloc_ctor(0, 7, 0); +} else { + x_41 = x_21; +} +lean_ctor_set(x_41, 0, x_30); +lean_ctor_set(x_41, 1, x_33); +lean_ctor_set(x_41, 2, x_36); +lean_ctor_set(x_41, 3, x_37); +lean_ctor_set(x_41, 4, x_35); +lean_ctor_set(x_41, 5, x_34); +lean_ctor_set(x_41, 6, x_38); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_39); +if (lean_is_scalar(x_32)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_32; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +block_131: +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = l_Lake_Module_clearOutputArtifacts___closed__3; +x_55 = l_Lean_modToFilePath(x_26, x_11, x_54); +lean_dec_ref(x_26); +lean_inc_ref(x_20); +x_56 = l_Lake_Cache_saveArtifact(x_20, x_55, x_54, x_28, x_28, x_3, x_53); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_56, 1); +lean_inc(x_58); +lean_dec_ref(x_56); +x_59 = l_Lake_Module_clearOutputArtifacts___closed__5; +x_60 = l_System_FilePath_normalize(x_15); +x_61 = l_Lake_joinRelative(x_24, x_60); +lean_dec_ref(x_60); +x_62 = l_Lean_modToFilePath(x_61, x_11, x_59); +lean_inc_ref(x_20); +x_63 = l_Lake_Cache_saveArtifact(x_20, x_62, x_59, x_28, x_28, x_3, x_58); +if (lean_obj_tag(x_63) == 0) +{ +lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec_ref(x_63); +x_66 = l_Lake_Module_cacheOutputHashes___closed__0; +if (x_66 == 0) +{ +lean_object* x_67; +lean_dec_ref(x_61); +lean_dec(x_52); +lean_dec_ref(x_51); +lean_dec_ref(x_49); +lean_dec_ref(x_20); +lean_dec(x_11); +x_67 = lean_box(0); +x_33 = x_45; +x_34 = x_64; +x_35 = x_47; +x_36 = x_46; +x_37 = x_57; +x_38 = x_67; +x_39 = x_48; +x_40 = x_65; +goto block_44; +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = l_Lake_Module_clearOutputArtifacts___closed__6; +x_69 = l_Lean_modToFilePath(x_61, x_11, x_68); +lean_dec(x_11); +lean_dec_ref(x_61); +x_70 = l_Lake_Cache_saveArtifact(x_20, x_69, x_68, x_28, x_28, x_3, x_65); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_52); +lean_dec_ref(x_51); +lean_dec_ref(x_49); +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_70, 1); +lean_inc(x_72); +lean_dec_ref(x_70); +x_73 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_73, 0, x_71); +x_33 = x_45; +x_34 = x_64; +x_35 = x_47; +x_36 = x_46; +x_37 = x_57; +x_38 = x_73; +x_39 = x_48; +x_40 = x_72; +goto block_44; +} +else +{ +uint8_t x_74; +lean_dec(x_64); +lean_dec(x_57); +lean_dec_ref(x_48); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_21); +x_74 = !lean_is_exclusive(x_70); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_75 = lean_ctor_get(x_70, 0); +x_76 = lean_io_error_to_string(x_75); +x_77 = 3; +x_78 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set_uint8(x_78, sizeof(void*)*1, x_77); +x_79 = lean_array_get_size(x_49); +x_80 = lean_array_push(x_49, x_78); +x_81 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_51); +lean_ctor_set(x_81, 2, x_52); +lean_ctor_set_uint8(x_81, sizeof(void*)*3, x_50); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_79); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set_tag(x_70, 0); +lean_ctor_set(x_70, 0, x_82); +return x_70; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_83 = lean_ctor_get(x_70, 0); +x_84 = lean_ctor_get(x_70, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_70); +x_85 = lean_io_error_to_string(x_83); +x_86 = 3; +x_87 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set_uint8(x_87, sizeof(void*)*1, x_86); +x_88 = lean_array_get_size(x_49); +x_89 = lean_array_push(x_49, x_87); +x_90 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_51); +lean_ctor_set(x_90, 2, x_52); +lean_ctor_set_uint8(x_90, sizeof(void*)*3, x_50); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_88); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_84); +return x_92; +} +} +} +} +else +{ +uint8_t x_93; +lean_dec_ref(x_61); +lean_dec(x_57); +lean_dec_ref(x_48); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_30); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_dec(x_11); +x_93 = !lean_is_exclusive(x_63); +if (x_93 == 0) +{ +lean_object* x_94; lean_object* x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_94 = lean_ctor_get(x_63, 0); +x_95 = lean_io_error_to_string(x_94); +x_96 = 3; +x_97 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set_uint8(x_97, sizeof(void*)*1, x_96); +x_98 = lean_array_get_size(x_49); +x_99 = lean_array_push(x_49, x_97); +x_100 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_51); +lean_ctor_set(x_100, 2, x_52); +lean_ctor_set_uint8(x_100, sizeof(void*)*3, x_50); +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_98); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set_tag(x_63, 0); +lean_ctor_set(x_63, 0, x_101); +return x_63; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_102 = lean_ctor_get(x_63, 0); +x_103 = lean_ctor_get(x_63, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_63); +x_104 = lean_io_error_to_string(x_102); +x_105 = 3; +x_106 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set_uint8(x_106, sizeof(void*)*1, x_105); +x_107 = lean_array_get_size(x_49); +x_108 = lean_array_push(x_49, x_106); +x_109 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_51); +lean_ctor_set(x_109, 2, x_52); +lean_ctor_set_uint8(x_109, sizeof(void*)*3, x_50); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_103); +return x_111; +} +} +} +else +{ +uint8_t x_112; +lean_dec_ref(x_48); +lean_dec(x_47); +lean_dec(x_46); +lean_dec(x_45); +lean_dec(x_32); +lean_dec(x_30); +lean_dec_ref(x_24); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_dec_ref(x_15); +lean_dec(x_11); +x_112 = !lean_is_exclusive(x_56); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_113 = lean_ctor_get(x_56, 0); +x_114 = lean_io_error_to_string(x_113); +x_115 = 3; +x_116 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set_uint8(x_116, sizeof(void*)*1, x_115); +x_117 = lean_array_get_size(x_49); +x_118 = lean_array_push(x_49, x_116); +x_119 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_51); +lean_ctor_set(x_119, 2, x_52); +lean_ctor_set_uint8(x_119, sizeof(void*)*3, x_50); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_117); +lean_ctor_set(x_120, 1, x_119); +lean_ctor_set_tag(x_56, 0); +lean_ctor_set(x_56, 0, x_120); +return x_56; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_121 = lean_ctor_get(x_56, 0); +x_122 = lean_ctor_get(x_56, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_56); +x_123 = lean_io_error_to_string(x_121); +x_124 = 3; +x_125 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set_uint8(x_125, sizeof(void*)*1, x_124); +x_126 = lean_array_get_size(x_49); +x_127 = lean_array_push(x_49, x_125); +x_128 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_51); +lean_ctor_set(x_128, 2, x_52); +lean_ctor_set_uint8(x_128, sizeof(void*)*3, x_50); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_128); +x_130 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_122); +return x_130; +} +} +} +block_183: +{ +if (x_2 == 0) +{ +lean_object* x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; +x_136 = lean_ctor_get(x_134, 0); +lean_inc_ref(x_136); +x_137 = lean_ctor_get_uint8(x_134, sizeof(void*)*3); +x_138 = lean_ctor_get(x_134, 1); +lean_inc_ref(x_138); +x_139 = lean_ctor_get(x_134, 2); +lean_inc(x_139); +x_140 = lean_box(0); +x_45 = x_132; +x_46 = x_133; +x_47 = x_140; +x_48 = x_134; +x_49 = x_136; +x_50 = x_137; +x_51 = x_138; +x_52 = x_139; +x_53 = x_135; +goto block_131; +} +else +{ +lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_141 = lean_ctor_get(x_134, 0); +lean_inc_ref(x_141); +x_142 = lean_ctor_get_uint8(x_134, sizeof(void*)*3); +x_143 = lean_ctor_get(x_134, 1); +lean_inc_ref(x_143); +x_144 = lean_ctor_get(x_134, 2); +lean_inc(x_144); +x_145 = l_Lake_Module_clearOutputArtifacts___closed__4; +x_146 = l_Lean_modToFilePath(x_26, x_11, x_145); +lean_inc_ref(x_20); +x_147 = l_Lake_Cache_saveArtifact(x_20, x_146, x_145, x_28, x_28, x_3, x_135); +if (lean_obj_tag(x_147) == 0) +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_147, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_147, 1); +lean_inc(x_149); +lean_dec_ref(x_147); +x_150 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_150, 0, x_148); +x_45 = x_132; +x_46 = x_133; +x_47 = x_150; +x_48 = x_134; +x_49 = x_141; +x_50 = x_142; +x_51 = x_143; +x_52 = x_144; +x_53 = x_149; +goto block_131; +} +else +{ +uint8_t x_151; +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_32); +lean_dec(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_24); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_dec_ref(x_15); +lean_dec(x_11); +x_151 = !lean_is_exclusive(x_134); +if (x_151 == 0) +{ +lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_152 = lean_ctor_get(x_134, 2); +lean_dec(x_152); +x_153 = lean_ctor_get(x_134, 1); +lean_dec(x_153); +x_154 = lean_ctor_get(x_134, 0); +lean_dec(x_154); +x_155 = !lean_is_exclusive(x_147); +if (x_155 == 0) +{ +lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_156 = lean_ctor_get(x_147, 0); +x_157 = lean_io_error_to_string(x_156); +x_158 = 3; +x_159 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_159, 0, x_157); +lean_ctor_set_uint8(x_159, sizeof(void*)*1, x_158); +x_160 = lean_array_get_size(x_141); +x_161 = lean_array_push(x_141, x_159); +lean_ctor_set(x_134, 0, x_161); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_134); +lean_ctor_set_tag(x_147, 0); +lean_ctor_set(x_147, 0, x_162); +return x_147; +} +else +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_163 = lean_ctor_get(x_147, 0); +x_164 = lean_ctor_get(x_147, 1); +lean_inc(x_164); +lean_inc(x_163); +lean_dec(x_147); +x_165 = lean_io_error_to_string(x_163); +x_166 = 3; +x_167 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_167, 0, x_165); +lean_ctor_set_uint8(x_167, sizeof(void*)*1, x_166); +x_168 = lean_array_get_size(x_141); +x_169 = lean_array_push(x_141, x_167); +lean_ctor_set(x_134, 0, x_169); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_134); +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_164); +return x_171; +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; uint8_t x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec(x_134); +x_172 = lean_ctor_get(x_147, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_147, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_147)) { + lean_ctor_release(x_147, 0); + lean_ctor_release(x_147, 1); + x_174 = x_147; +} else { + lean_dec_ref(x_147); + x_174 = lean_box(0); +} +x_175 = lean_io_error_to_string(x_172); +x_176 = 3; +x_177 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set_uint8(x_177, sizeof(void*)*1, x_176); +x_178 = lean_array_get_size(x_141); +x_179 = lean_array_push(x_141, x_177); +x_180 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_143); +lean_ctor_set(x_180, 2, x_144); +lean_ctor_set_uint8(x_180, sizeof(void*)*3, x_142); +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_178); +lean_ctor_set(x_181, 1, x_180); +if (lean_is_scalar(x_174)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_174; + lean_ctor_set_tag(x_182, 0); +} +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_173); +return x_182; +} +} +} +} +block_230: +{ +if (x_2 == 0) +{ +lean_object* x_187; +x_187 = lean_box(0); +x_132 = x_184; +x_133 = x_187; +x_134 = x_185; +x_135 = x_186; +goto block_183; +} +else +{ +lean_object* x_188; uint8_t x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_188 = lean_ctor_get(x_185, 0); +x_189 = lean_ctor_get_uint8(x_185, sizeof(void*)*3); +x_190 = lean_ctor_get(x_185, 1); +x_191 = lean_ctor_get(x_185, 2); +x_192 = l_Lake_Module_clearOutputArtifacts___closed__2; +x_193 = l_Lean_modToFilePath(x_26, x_11, x_192); +lean_inc_ref(x_20); +x_194 = l_Lake_Cache_saveArtifact(x_20, x_193, x_192, x_28, x_28, x_3, x_186); +if (lean_obj_tag(x_194) == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec_ref(x_194); +x_197 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_197, 0, x_195); +x_132 = x_184; +x_133 = x_197; +x_134 = x_185; +x_135 = x_196; +goto block_183; +} +else +{ +uint8_t x_198; +lean_inc(x_191); +lean_inc_ref(x_190); +lean_inc_ref(x_188); +lean_dec(x_184); +lean_dec(x_32); +lean_dec(x_30); +lean_dec_ref(x_26); +lean_dec_ref(x_24); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_dec_ref(x_15); +lean_dec(x_11); +x_198 = !lean_is_exclusive(x_185); +if (x_198 == 0) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; +x_199 = lean_ctor_get(x_185, 2); +lean_dec(x_199); +x_200 = lean_ctor_get(x_185, 1); +lean_dec(x_200); +x_201 = lean_ctor_get(x_185, 0); +lean_dec(x_201); +x_202 = !lean_is_exclusive(x_194); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; uint8_t x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_203 = lean_ctor_get(x_194, 0); +x_204 = lean_io_error_to_string(x_203); +x_205 = 3; +x_206 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_206, 0, x_204); +lean_ctor_set_uint8(x_206, sizeof(void*)*1, x_205); +x_207 = lean_array_get_size(x_188); +x_208 = lean_array_push(x_188, x_206); +lean_ctor_set(x_185, 0, x_208); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_207); +lean_ctor_set(x_209, 1, x_185); +lean_ctor_set_tag(x_194, 0); +lean_ctor_set(x_194, 0, x_209); +return x_194; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_210 = lean_ctor_get(x_194, 0); +x_211 = lean_ctor_get(x_194, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_194); +x_212 = lean_io_error_to_string(x_210); +x_213 = 3; +x_214 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set_uint8(x_214, sizeof(void*)*1, x_213); +x_215 = lean_array_get_size(x_188); +x_216 = lean_array_push(x_188, x_214); +lean_ctor_set(x_185, 0, x_216); +x_217 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_217, 0, x_215); +lean_ctor_set(x_217, 1, x_185); +x_218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_211); +return x_218; +} +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +lean_dec(x_185); +x_219 = lean_ctor_get(x_194, 0); +lean_inc(x_219); +x_220 = lean_ctor_get(x_194, 1); +lean_inc(x_220); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_221 = x_194; +} else { + lean_dec_ref(x_194); + x_221 = lean_box(0); +} +x_222 = lean_io_error_to_string(x_219); +x_223 = 3; +x_224 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set_uint8(x_224, sizeof(void*)*1, x_223); +x_225 = lean_array_get_size(x_188); +x_226 = lean_array_push(x_188, x_224); +x_227 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_190); +lean_ctor_set(x_227, 2, x_191); +lean_ctor_set_uint8(x_227, sizeof(void*)*3, x_189); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_225); +lean_ctor_set(x_228, 1, x_227); +if (lean_is_scalar(x_221)) { + x_229 = lean_alloc_ctor(0, 2, 0); +} else { + x_229 = x_221; + lean_ctor_set_tag(x_229, 0); +} +lean_ctor_set(x_229, 0, x_228); +lean_ctor_set(x_229, 1, x_220); +return x_229; +} +} +} +} +} +else +{ +uint8_t x_270; +lean_dec_ref(x_26); +lean_dec_ref(x_24); +lean_dec(x_21); +lean_dec_ref(x_20); +lean_inc(x_19); +lean_inc_ref(x_18); +lean_inc_ref(x_16); +lean_dec_ref(x_15); +lean_dec(x_11); +x_270 = !lean_is_exclusive(x_5); +if (x_270 == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; uint8_t x_274; +x_271 = lean_ctor_get(x_5, 2); +lean_dec(x_271); +x_272 = lean_ctor_get(x_5, 1); +lean_dec(x_272); +x_273 = lean_ctor_get(x_5, 0); +lean_dec(x_273); +x_274 = !lean_is_exclusive(x_29); +if (x_274 == 0) +{ +lean_object* x_275; lean_object* x_276; uint8_t x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +x_275 = lean_ctor_get(x_29, 0); +x_276 = lean_io_error_to_string(x_275); +x_277 = 3; +x_278 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_278, 0, x_276); +lean_ctor_set_uint8(x_278, sizeof(void*)*1, x_277); +x_279 = lean_array_get_size(x_16); +x_280 = lean_array_push(x_16, x_278); +lean_ctor_set(x_5, 0, x_280); +x_281 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_281, 0, x_279); +lean_ctor_set(x_281, 1, x_5); +lean_ctor_set_tag(x_29, 0); +lean_ctor_set(x_29, 0, x_281); +return x_29; +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; +x_282 = lean_ctor_get(x_29, 0); +x_283 = lean_ctor_get(x_29, 1); +lean_inc(x_283); +lean_inc(x_282); +lean_dec(x_29); +x_284 = lean_io_error_to_string(x_282); +x_285 = 3; +x_286 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set_uint8(x_286, sizeof(void*)*1, x_285); +x_287 = lean_array_get_size(x_16); +x_288 = lean_array_push(x_16, x_286); +lean_ctor_set(x_5, 0, x_288); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_5); +x_290 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_283); +return x_290; +} +} +else +{ +lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; uint8_t x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_5); +x_291 = lean_ctor_get(x_29, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_29, 1); +lean_inc(x_292); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_293 = x_29; +} else { + lean_dec_ref(x_29); + x_293 = lean_box(0); +} +x_294 = lean_io_error_to_string(x_291); +x_295 = 3; +x_296 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_296, 0, x_294); +lean_ctor_set_uint8(x_296, sizeof(void*)*1, x_295); +x_297 = lean_array_get_size(x_16); +x_298 = lean_array_push(x_16, x_296); +x_299 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_299, 0, x_298); +lean_ctor_set(x_299, 1, x_18); +lean_ctor_set(x_299, 2, x_19); +lean_ctor_set_uint8(x_299, sizeof(void*)*3, x_17); +x_300 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_299); +if (lean_is_scalar(x_293)) { + x_301 = lean_alloc_ctor(0, 2, 0); +} else { + x_301 = x_293; + lean_ctor_set_tag(x_301, 0); +} +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_292); +return x_301; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(x_1, x_2, x_3, x_8, x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +uint8_t x_7; uint8_t x_8; lean_object* x_9; +x_7 = lean_unbox(x_2); +x_8 = lean_unbox(x_3); +x_9 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(x_1, x_7, x_8, x_4, x_5, x_6); return x_9; } } +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_2); +x_12 = lean_unbox(x_3); +x_13 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts(x_1, x_11, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec_ref(x_4); +return x_13; +} +} static lean_object* _init_l___private_Lake_Build_Module_0__Lake_restoreModuleArtifact___redArg___closed__0() { _start: { @@ -32627,11 +32215,11 @@ if (lean_is_scalar(x_20)) { x_42 = x_20; } lean_ctor_set(x_42, 0, x_31); -lean_ctor_set(x_42, 1, x_36); -lean_ctor_set(x_42, 2, x_35); -lean_ctor_set(x_42, 3, x_34); -lean_ctor_set(x_42, 4, x_38); -lean_ctor_set(x_42, 5, x_37); +lean_ctor_set(x_42, 1, x_34); +lean_ctor_set(x_42, 2, x_37); +lean_ctor_set(x_42, 3, x_35); +lean_ctor_set(x_42, 4, x_36); +lean_ctor_set(x_42, 5, x_38); lean_ctor_set(x_42, 6, x_39); if (lean_is_scalar(x_33)) { x_43 = lean_alloc_ctor(0, 2, 0); @@ -32677,9 +32265,9 @@ lean_inc(x_60); lean_dec_ref(x_57); x_34 = x_46; x_35 = x_47; -x_36 = x_48; -x_37 = x_59; -x_38 = x_49; +x_36 = x_49; +x_37 = x_48; +x_38 = x_59; x_39 = x_19; x_40 = x_60; x_41 = x_58; @@ -32722,9 +32310,9 @@ lean_dec_ref(x_69); lean_ctor_set(x_19, 0, x_71); x_34 = x_46; x_35 = x_47; -x_36 = x_48; -x_37 = x_62; -x_38 = x_49; +x_36 = x_49; +x_37 = x_48; +x_38 = x_62; x_39 = x_19; x_40 = x_72; x_41 = x_70; @@ -32737,8 +32325,8 @@ lean_free_object(x_19); lean_dec(x_62); lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -lean_dec_ref(x_46); +lean_dec_ref(x_47); +lean_dec(x_46); lean_dec(x_33); lean_dec(x_31); lean_dec(x_30); @@ -32829,9 +32417,9 @@ x_93 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_93, 0, x_91); x_34 = x_46; x_35 = x_47; -x_36 = x_48; -x_37 = x_62; -x_38 = x_49; +x_36 = x_49; +x_37 = x_48; +x_38 = x_62; x_39 = x_93; x_40 = x_92; x_41 = x_90; @@ -32843,8 +32431,8 @@ lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean lean_dec(x_62); lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -lean_dec_ref(x_46); +lean_dec_ref(x_47); +lean_dec(x_46); lean_dec(x_33); lean_dec(x_31); lean_dec(x_30); @@ -32896,8 +32484,8 @@ uint8_t x_101; lean_dec_ref(x_54); lean_dec(x_49); lean_dec(x_48); -lean_dec(x_47); -lean_dec_ref(x_46); +lean_dec_ref(x_47); +lean_dec(x_46); lean_dec(x_33); lean_dec(x_31); lean_dec(x_30); @@ -32984,9 +32572,9 @@ lean_inc(x_123); x_124 = lean_ctor_get(x_121, 1); lean_inc(x_124); lean_dec_ref(x_121); -x_46 = x_123; -x_47 = x_115; -x_48 = x_114; +x_46 = x_114; +x_47 = x_123; +x_48 = x_115; x_49 = x_17; x_50 = x_124; x_51 = x_122; @@ -33026,9 +32614,9 @@ x_136 = lean_ctor_get(x_133, 1); lean_inc(x_136); lean_dec_ref(x_133); lean_ctor_set(x_17, 0, x_135); -x_46 = x_126; -x_47 = x_115; -x_48 = x_114; +x_46 = x_114; +x_47 = x_126; +x_48 = x_115; x_49 = x_17; x_50 = x_136; x_51 = x_134; @@ -33133,9 +32721,9 @@ lean_inc(x_156); lean_dec_ref(x_153); x_157 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_157, 0, x_155); -x_46 = x_126; -x_47 = x_115; -x_48 = x_114; +x_46 = x_114; +x_47 = x_126; +x_48 = x_115; x_49 = x_157; x_50 = x_156; x_51 = x_154; @@ -33641,8 +33229,8 @@ x_30 = lean_box(0); x_31 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_31, 0, x_12); lean_ctor_set(x_31, 1, x_19); -lean_ctor_set(x_31, 2, x_21); -lean_ctor_set(x_31, 3, x_22); +lean_ctor_set(x_31, 2, x_22); +lean_ctor_set(x_31, 3, x_21); lean_ctor_set(x_31, 4, x_20); lean_ctor_set(x_31, 5, x_23); lean_ctor_set(x_31, 6, x_28); @@ -33661,8 +33249,8 @@ lean_ctor_set(x_34, 0, x_33); x_35 = lean_alloc_ctor(0, 8, 0); lean_ctor_set(x_35, 0, x_12); lean_ctor_set(x_35, 1, x_19); -lean_ctor_set(x_35, 2, x_21); -lean_ctor_set(x_35, 3, x_22); +lean_ctor_set(x_35, 2, x_22); +lean_ctor_set(x_35, 3, x_21); lean_ctor_set(x_35, 4, x_20); lean_ctor_set(x_35, 5, x_23); lean_ctor_set(x_35, 6, x_28); @@ -33683,8 +33271,8 @@ lean_object* x_42; lean_dec_ref(x_17); x_42 = lean_box(0); x_20 = x_41; -x_21 = x_37; -x_22 = x_38; +x_21 = x_38; +x_22 = x_37; x_23 = x_42; goto block_36; } @@ -33697,8 +33285,8 @@ lean_dec_ref(x_17); x_45 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_45, 0, x_44); x_20 = x_41; -x_21 = x_37; -x_22 = x_38; +x_21 = x_38; +x_22 = x_37; x_23 = x_45; goto block_36; } @@ -35985,7 +35573,7 @@ x_23 = lean_ctor_get(x_14, 0); x_24 = lean_ctor_get_uint8(x_23, sizeof(void*)*2 + 2); if (x_24 == 0) { -lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_180; lean_object* x_181; lean_object* x_182; x_25 = lean_ctor_get(x_15, 0); lean_inc_ref(x_25); x_26 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); @@ -36228,8 +35816,8 @@ block_159: { lean_object* x_58; lean_object* x_59; lean_inc_ref(x_14); -x_58 = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(x_49, x_52, x_57, x_7, x_11, x_12, x_13, x_14, x_51, x_54); -lean_dec_ref(x_49); +x_58 = l___private_Lake_Build_Module_0__Lake_fetchTransImportArts(x_56, x_54, x_57, x_7, x_11, x_12, x_13, x_14, x_49, x_48); +lean_dec_ref(x_56); x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); if (lean_obj_tag(x_59) == 0) @@ -36254,16 +35842,16 @@ x_70 = lean_ctor_get(x_63, 2); x_71 = lean_ctor_get(x_64, 6); x_72 = lean_ctor_get(x_64, 10); x_73 = lean_alloc_ctor(0, 6, 1); -lean_ctor_set(x_73, 0, x_53); -lean_ctor_set(x_73, 1, x_50); +lean_ctor_set(x_73, 0, x_51); +lean_ctor_set(x_73, 1, x_55); lean_ctor_set(x_73, 2, x_66); -lean_ctor_set(x_73, 3, x_55); -lean_ctor_set(x_73, 4, x_48); -lean_ctor_set(x_73, 5, x_56); -lean_ctor_set_uint8(x_73, sizeof(void*)*6, x_47); +lean_ctor_set(x_73, 3, x_47); +lean_ctor_set(x_73, 4, x_52); +lean_ctor_set(x_73, 5, x_53); +lean_ctor_set_uint8(x_73, sizeof(void*)*6, x_50); lean_inc_ref(x_4); lean_inc_ref(x_3); -x_74 = l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(x_3, x_4, x_47); +x_74 = l___private_Lake_Build_Module_0__Lake_Module_mkArtifacts(x_3, x_4, x_50); x_75 = l_Lake_Workspace_leanPath(x_30); x_76 = l_Lake_buildAction___at_____private_Lake_Build_Module_0__Lake_Module_buildLean_spec__0___closed__0; lean_inc_ref(x_71); @@ -36298,7 +35886,7 @@ lean_object* x_87; lean_object* x_88; lean_object* x_89; x_87 = lean_ctor_get(x_86, 1); lean_inc(x_87); lean_dec_ref(x_86); -x_88 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_3, x_47, x_14, x_85, x_87); +x_88 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_3, x_50, x_14, x_85, x_87); lean_dec_ref(x_14); x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); @@ -36597,11 +36185,11 @@ goto block_45; else { lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_56); -lean_dec_ref(x_55); +lean_dec(x_55); lean_dec(x_53); -lean_dec(x_50); -lean_dec_ref(x_48); +lean_dec_ref(x_52); +lean_dec(x_51); +lean_dec_ref(x_47); lean_dec_ref(x_25); lean_dec_ref(x_14); lean_dec_ref(x_6); @@ -36655,16 +36243,16 @@ x_170 = lean_ctor_get(x_2, 5); lean_inc(x_170); lean_dec_ref(x_2); x_171 = 1; -x_47 = x_163; -x_48 = x_169; -x_49 = x_164; -x_50 = x_166; -x_51 = x_161; -x_52 = x_167; -x_53 = x_165; -x_54 = x_162; -x_55 = x_168; -x_56 = x_170; +x_47 = x_168; +x_48 = x_162; +x_49 = x_161; +x_50 = x_163; +x_51 = x_165; +x_52 = x_169; +x_53 = x_170; +x_54 = x_167; +x_55 = x_166; +x_56 = x_164; x_57 = x_171; goto block_159; } @@ -36687,16 +36275,16 @@ lean_inc_ref(x_177); x_178 = lean_ctor_get(x_2, 5); lean_inc(x_178); lean_dec_ref(x_2); -x_47 = x_163; -x_48 = x_177; -x_49 = x_172; -x_50 = x_174; -x_51 = x_161; -x_52 = x_175; -x_53 = x_173; -x_54 = x_162; -x_55 = x_176; -x_56 = x_178; +x_47 = x_176; +x_48 = x_162; +x_49 = x_161; +x_50 = x_163; +x_51 = x_173; +x_52 = x_177; +x_53 = x_178; +x_54 = x_175; +x_55 = x_174; +x_56 = x_172; x_57 = x_24; goto block_159; } @@ -37981,7 +37569,46 @@ goto block_94; } } } -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_unbox_uint64(x_6); +x_9 = lean_unbox_uint64(x_7); +x_10 = lean_uint64_dec_eq(x_8, x_9); +return x_10; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -38076,598 +37703,709 @@ return x_28; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_7; -x_7 = lean_usize_dec_eq(x_2, x_3); -if (x_7 == 0) +uint64_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_9 = lean_box_uint64(x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4(x_10, x_3); +lean_dec_ref(x_10); +if (x_11 == 0) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_5, 0); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*2); +if (x_13 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; -x_9 = lean_ctor_get(x_5, 0); -x_10 = lean_array_uget(x_1, x_2); -x_11 = lean_box(0); -x_12 = lean_array_push(x_9, x_10); -lean_ctor_set(x_5, 0, x_12); -x_13 = 1; -x_14 = lean_usize_add(x_2, x_13); -x_2 = x_14; -x_4 = x_11; -goto _start; +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec_ref(x_1); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_6); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_7); +return x_17; } else { -lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -x_18 = lean_ctor_get(x_5, 1); -x_19 = lean_ctor_get(x_5, 2); +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5(x_1, x_4, x_7); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_16); -lean_dec(x_5); -x_20 = lean_array_uget(x_1, x_2); -x_21 = lean_box(0); -x_22 = lean_array_push(x_16, x_20); -x_23 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_18); -lean_ctor_set(x_23, 2, x_19); -lean_ctor_set_uint8(x_23, sizeof(void*)*3, x_17); -x_24 = 1; -x_25 = lean_usize_add(x_2, x_24); -x_2 = x_25; -x_4 = x_21; -x_5 = x_23; -goto _start; -} +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +x_23 = 0; +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_6); +lean_ctor_set(x_18, 0, x_25); +return x_18; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_5); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_6); -return x_28; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(x_1, x_2, x_3, x_4, x_10, x_11); -return x_12; -} -} -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unbox_uint64(x_6); -x_9 = lean_unbox_uint64(x_7); -x_10 = lean_uint64_dec_eq(x_8, x_9); -return x_10; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_19; lean_object* x_20; lean_object* x_21; -switch (lean_obj_tag(x_4)) { -case 0: -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_3, 2); -x_27 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_2, x_26, x_11); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_6); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_10); -lean_ctor_set(x_27, 0, x_30); -return x_27; +lean_ctor_set(x_30, 1, x_26); +return x_30; +} } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_27); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_10); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -case 1: +uint8_t x_31; +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_44; uint8_t x_45; -x_35 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_2, x_5, x_11); -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_18, 0); +lean_dec(x_32); +x_33 = 1; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_6); +lean_ctor_set(x_18, 0, x_35); +return x_18; +} +else +{ +lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_18, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_38 = x_35; -} else { - lean_dec_ref(x_35); - x_38 = lean_box(0); -} -x_44 = lean_ctor_get(x_9, 0); -x_45 = lean_ctor_get_uint8(x_44, sizeof(void*)*2); -if (x_45 == 0) -{ -lean_dec(x_36); -x_39 = x_45; -goto block_43; -} -else -{ -uint8_t x_46; -x_46 = lean_unbox(x_36); -lean_dec(x_36); -x_39 = x_46; -goto block_43; -} -block_43: -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_box(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_10); -if (lean_is_scalar(x_38)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_38; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_37); -return x_42; +lean_dec(x_18); +x_37 = 1; +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_6); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_36); +return x_40; } } -default: -{ -uint8_t x_47; -x_47 = !lean_is_exclusive(x_4); -if (x_47 == 0) -{ -lean_object* x_48; uint64_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint64_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_48 = lean_ctor_get(x_4, 0); -x_49 = lean_ctor_get_uint64(x_48, sizeof(void*)*3); -x_50 = lean_ctor_get(x_48, 2); -lean_inc_ref(x_50); -lean_dec_ref(x_48); -x_88 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_89 = lean_box_uint64(x_49); -lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_89); -x_90 = lean_box_uint64(x_88); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_90); -x_92 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6(x_91, x_4); -lean_dec_ref(x_4); -lean_dec_ref(x_91); -if (x_92 == 0) -{ -lean_object* x_93; uint8_t x_94; -x_93 = lean_ctor_get(x_9, 0); -x_94 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); -if (x_94 == 0) -{ -lean_dec_ref(x_50); -lean_dec_ref(x_2); -x_12 = x_94; -x_13 = x_10; -x_14 = x_11; -goto block_18; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_95 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_2, x_5, x_11); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec_ref(x_95); -x_98 = lean_unbox(x_96); -lean_dec(x_96); -x_51 = x_98; -x_52 = x_10; -x_53 = x_97; -goto block_87; } } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_99 = l_Lake_Module_checkExists(x_2, x_11); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec_ref(x_99); -x_102 = lean_unbox(x_100); -lean_dec(x_100); -x_51 = x_102; -x_52 = x_10; -x_53 = x_101; -goto block_87; +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = l_Lake_Module_checkExists(x_1, x_7); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_41, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_6); +lean_ctor_set(x_41, 0, x_48); +return x_41; } -block_87: +else { -if (x_51 == 0) -{ -lean_dec_ref(x_50); -x_12 = x_51; -x_13 = x_52; -x_14 = x_53; -goto block_18; +lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_dec(x_41); +x_50 = 0; +x_51 = lean_box(x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_6); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_49); +return x_53; +} } else { uint8_t x_54; -x_54 = !lean_is_exclusive(x_52); +x_54 = !lean_is_exclusive(x_41); if (x_54 == 0) { -uint8_t x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_55 = lean_ctor_get_uint8(x_52, sizeof(void*)*3); +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_41, 0); +lean_dec(x_55); +x_56 = 2; +x_57 = lean_box(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_6); +lean_ctor_set(x_41, 0, x_58); +return x_41; +} +else +{ +lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_dec(x_41); +x_60 = 2; +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_6); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_4) == 2) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_29; uint8_t x_30; uint8_t x_31; +x_13 = lean_ctor_get(x_4, 0); +x_14 = lean_ctor_get_uint64(x_13, sizeof(void*)*3); +x_15 = lean_ctor_get(x_13, 2); +lean_inc_ref(x_15); +lean_dec_ref(x_13); +x_16 = lean_box_uint64(x_14); +lean_ctor_set_tag(x_4, 1); +lean_ctor_set(x_4, 0, x_16); +x_17 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +lean_dec_ref(x_4); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_20 = x_17; +} else { + lean_dec_ref(x_17); + x_20 = lean_box(0); +} +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_23 = x_18; +} else { + lean_dec_ref(x_18); + x_23 = lean_box(0); +} +x_29 = 0; +x_30 = lean_unbox(x_21); +x_31 = l_Lake_instDecidableEqOutputStatus(x_30, x_29); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_34 = 1; +x_35 = l_Lake_JobAction_merge(x_33, x_34); +lean_ctor_set_uint8(x_22, sizeof(void*)*3, x_35); +x_36 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_22, x_19); +lean_dec_ref(x_15); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec_ref(x_36); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec_ref(x_37); +x_24 = x_39; +x_25 = x_38; +goto block_28; +} +else +{ +uint8_t x_40; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_36, 0); +lean_dec(x_41); +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +return x_36; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_dec(x_36); +x_47 = lean_ctor_get(x_37, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_37, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_49 = x_37; +} else { + lean_dec_ref(x_37); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +} +} +else +{ +lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_52 = lean_ctor_get(x_22, 0); +x_53 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_54 = lean_ctor_get(x_22, 1); +x_55 = lean_ctor_get(x_22, 2); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_52); +lean_dec(x_22); x_56 = 1; -x_57 = l_Lake_JobAction_merge(x_55, x_56); -lean_ctor_set_uint8(x_52, sizeof(void*)*3, x_57); -x_58 = lean_unsigned_to_nat(0u); -x_59 = lean_array_get_size(x_50); -x_60 = lean_nat_dec_lt(x_58, x_59); -if (x_60 == 0) +x_57 = l_Lake_JobAction_merge(x_53, x_56); +x_58 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_54); +lean_ctor_set(x_58, 2, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*3, x_57); +x_59 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_58, x_19); +lean_dec_ref(x_15); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) { -lean_dec(x_59); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_52; -x_21 = x_53; -goto block_25; +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec_ref(x_60); +x_24 = x_62; +x_25 = x_61; +goto block_28; } else { -uint8_t x_61; -x_61 = lean_nat_dec_le(x_59, x_59); -if (x_61 == 0) -{ -lean_dec(x_59); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_52; -x_21 = x_53; -goto block_25; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_64 = x_59; +} else { + lean_dec_ref(x_59); + x_64 = lean_box(0); } -else -{ -lean_object* x_62; size_t x_63; size_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_62 = lean_box(0); -x_63 = 0; -x_64 = lean_usize_of_nat(x_59); -lean_dec(x_59); -x_65 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(x_50, x_63, x_64, x_62, x_52, x_53); -lean_dec_ref(x_50); -x_66 = lean_ctor_get(x_65, 0); +x_65 = lean_ctor_get(x_60, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_60, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec_ref(x_65); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_19 = x_51; -x_20 = x_68; -x_21 = x_67; -goto block_25; +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_67 = x_60; +} else { + lean_dec_ref(x_60); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +if (lean_is_scalar(x_64)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_64; +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_63); +return x_69; } } } else { -lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_69 = lean_ctor_get(x_52, 0); -x_70 = lean_ctor_get_uint8(x_52, sizeof(void*)*3); -x_71 = lean_ctor_get(x_52, 1); -x_72 = lean_ctor_get(x_52, 2); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_69); -lean_dec(x_52); -x_73 = 1; -x_74 = l_Lake_JobAction_merge(x_70, x_73); -x_75 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_75, 0, x_69); -lean_ctor_set(x_75, 1, x_71); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set_uint8(x_75, sizeof(void*)*3, x_74); -x_76 = lean_unsigned_to_nat(0u); -x_77 = lean_array_get_size(x_50); -x_78 = lean_nat_dec_lt(x_76, x_77); -if (x_78 == 0) +lean_dec_ref(x_15); +x_24 = x_22; +x_25 = x_19; +goto block_28; +} +block_28: { -lean_dec(x_77); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_75; -x_21 = x_53; -goto block_25; -} -else -{ -uint8_t x_79; -x_79 = lean_nat_dec_le(x_77, x_77); -if (x_79 == 0) -{ -lean_dec(x_77); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_75; -x_21 = x_53; -goto block_25; -} -else -{ -lean_object* x_80; size_t x_81; size_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_80 = lean_box(0); -x_81 = 0; -x_82 = lean_usize_of_nat(x_77); -lean_dec(x_77); -x_83 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(x_50, x_81, x_82, x_80, x_75, x_53); -lean_dec_ref(x_50); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec_ref(x_83); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_19 = x_51; -x_20 = x_86; -x_21 = x_85; -goto block_25; -} -} +lean_object* x_26; lean_object* x_27; +if (lean_is_scalar(x_23)) { + x_26 = lean_alloc_ctor(0, 2, 0); +} else { + x_26 = x_23; } +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_24); +if (lean_is_scalar(x_20)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_20; } +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; } } else { -lean_object* x_103; uint64_t x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; uint64_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -x_103 = lean_ctor_get(x_4, 0); -lean_inc(x_103); +lean_object* x_70; uint64_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_87; uint8_t x_88; uint8_t x_89; +x_70 = lean_ctor_get(x_4, 0); +lean_inc(x_70); lean_dec(x_4); -x_104 = lean_ctor_get_uint64(x_103, sizeof(void*)*3); -x_105 = lean_ctor_get(x_103, 2); -lean_inc_ref(x_105); -lean_dec_ref(x_103); -x_129 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_130 = lean_box_uint64(x_104); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_130); -x_132 = lean_box_uint64(x_129); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6(x_133, x_131); -lean_dec_ref(x_131); -lean_dec_ref(x_133); -if (x_134 == 0) +x_71 = lean_ctor_get_uint64(x_70, sizeof(void*)*3); +x_72 = lean_ctor_get(x_70, 2); +lean_inc_ref(x_72); +lean_dec_ref(x_70); +x_73 = lean_box_uint64(x_71); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(x_2, x_3, x_74, x_5, x_9, x_10, x_11); +lean_dec_ref(x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; +} else { + lean_dec_ref(x_75); + x_78 = lean_box(0); +} +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_81 = x_76; +} else { + lean_dec_ref(x_76); + x_81 = lean_box(0); +} +x_87 = 0; +x_88 = lean_unbox(x_79); +x_89 = l_Lake_instDecidableEqOutputStatus(x_88, x_87); +if (x_89 == 0) { -lean_object* x_135; uint8_t x_136; -x_135 = lean_ctor_get(x_9, 0); -x_136 = lean_ctor_get_uint8(x_135, sizeof(void*)*2); -if (x_136 == 0) +lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_90 = lean_ctor_get(x_80, 0); +lean_inc_ref(x_90); +x_91 = lean_ctor_get_uint8(x_80, sizeof(void*)*3); +x_92 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_92); +x_93 = lean_ctor_get(x_80, 2); +lean_inc(x_93); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + x_94 = x_80; +} else { + lean_dec_ref(x_80); + x_94 = lean_box(0); +} +x_95 = 1; +x_96 = l_Lake_JobAction_merge(x_91, x_95); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 3, 1); +} else { + x_97 = x_94; +} +lean_ctor_set(x_97, 0, x_90); +lean_ctor_set(x_97, 1, x_92); +lean_ctor_set(x_97, 2, x_93); +lean_ctor_set_uint8(x_97, sizeof(void*)*3, x_96); +x_98 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_72, x_1, x_6, x_7, x_8, x_9, x_97, x_77); +lean_dec_ref(x_72); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +if (lean_obj_tag(x_99) == 0) { -lean_dec_ref(x_105); +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec_ref(x_98); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +x_82 = x_101; +x_83 = x_100; +goto block_86; +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_102 = lean_ctor_get(x_98, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_103 = x_98; +} else { + lean_dec_ref(x_98); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_99, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_99, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_106 = x_99; +} else { + lean_dec_ref(x_99); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +if (lean_is_scalar(x_103)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_103; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_102); +return x_108; +} +} +else +{ +lean_dec_ref(x_72); +x_82 = x_80; +x_83 = x_77; +goto block_86; +} +block_86: +{ +lean_object* x_84; lean_object* x_85; +if (lean_is_scalar(x_81)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_81; +} +lean_ctor_set(x_84, 0, x_79); +lean_ctor_set(x_84, 1, x_82); +if (lean_is_scalar(x_78)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_78; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +} +else +{ +lean_object* x_109; uint8_t x_110; +lean_dec(x_4); +x_109 = lean_ctor_get(x_9, 0); +x_110 = lean_ctor_get_uint8(x_109, sizeof(void*)*2); +if (x_110 == 0) +{ +uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_dec_ref(x_2); -x_12 = x_136; -x_13 = x_10; -x_14 = x_11; -goto block_18; +x_111 = 0; +x_112 = lean_box(x_111); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_10); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_11); +return x_114; } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_2, x_5, x_11); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec_ref(x_137); -x_140 = lean_unbox(x_138); -lean_dec(x_138); -x_106 = x_140; -x_107 = x_10; -x_108 = x_139; -goto block_128; +lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_115 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5(x_2, x_5, x_11); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_unbox(x_116); +lean_dec(x_116); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_115); +if (x_118 == 0) +{ +lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_115, 0); +lean_dec(x_119); +x_120 = 0; +x_121 = lean_box(x_120); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_10); +lean_ctor_set(x_115, 0, x_122); +return x_115; +} +else +{ +lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_123 = lean_ctor_get(x_115, 1); +lean_inc(x_123); +lean_dec(x_115); +x_124 = 0; +x_125 = lean_box(x_124); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_10); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_123); +return x_127; } } else { -lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; -x_141 = l_Lake_Module_checkExists(x_2, x_11); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec_ref(x_141); -x_144 = lean_unbox(x_142); -lean_dec(x_142); -x_106 = x_144; -x_107 = x_10; -x_108 = x_143; -goto block_128; -} -block_128: +uint8_t x_128; +x_128 = !lean_is_exclusive(x_115); +if (x_128 == 0) { -if (x_106 == 0) -{ -lean_dec_ref(x_105); -x_12 = x_106; -x_13 = x_107; -x_14 = x_108; -goto block_18; +lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_115, 0); +lean_dec(x_129); +x_130 = 1; +x_131 = lean_box(x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_10); +lean_ctor_set(x_115, 0, x_132); +return x_115; } else { -lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_109 = lean_ctor_get(x_107, 0); -lean_inc_ref(x_109); -x_110 = lean_ctor_get_uint8(x_107, sizeof(void*)*3); -x_111 = lean_ctor_get(x_107, 1); -lean_inc_ref(x_111); -x_112 = lean_ctor_get(x_107, 2); -lean_inc(x_112); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - lean_ctor_release(x_107, 2); - x_113 = x_107; -} else { - lean_dec_ref(x_107); - x_113 = lean_box(0); -} -x_114 = 1; -x_115 = l_Lake_JobAction_merge(x_110, x_114); -if (lean_is_scalar(x_113)) { - x_116 = lean_alloc_ctor(0, 3, 1); -} else { - x_116 = x_113; -} -lean_ctor_set(x_116, 0, x_109); -lean_ctor_set(x_116, 1, x_111); -lean_ctor_set(x_116, 2, x_112); -lean_ctor_set_uint8(x_116, sizeof(void*)*3, x_115); -x_117 = lean_unsigned_to_nat(0u); -x_118 = lean_array_get_size(x_105); -x_119 = lean_nat_dec_lt(x_117, x_118); -if (x_119 == 0) -{ -lean_dec(x_118); -lean_dec_ref(x_105); -x_19 = x_106; -x_20 = x_116; -x_21 = x_108; -goto block_25; -} -else -{ -uint8_t x_120; -x_120 = lean_nat_dec_le(x_118, x_118); -if (x_120 == 0) -{ -lean_dec(x_118); -lean_dec_ref(x_105); -x_19 = x_106; -x_20 = x_116; -x_21 = x_108; -goto block_25; -} -else -{ -lean_object* x_121; size_t x_122; size_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_121 = lean_box(0); -x_122 = 0; -x_123 = lean_usize_of_nat(x_118); -lean_dec(x_118); -x_124 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(x_105, x_122, x_123, x_121, x_116, x_108); -lean_dec_ref(x_105); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec_ref(x_124); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_19 = x_106; -x_20 = x_127; -x_21 = x_126; -goto block_25; +lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_133 = lean_ctor_get(x_115, 1); +lean_inc(x_133); +lean_dec(x_115); +x_134 = 1; +x_135 = lean_box(x_134); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_10); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_133); +return x_137; } } } } } } -} -block_18: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_box(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_14); -return x_17; -} -block_25: -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_box(x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -} -} LEAN_EXPORT uint64_t l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__8(lean_object* x_1, size_t x_2, size_t x_3, uint64_t x_4) { _start: { @@ -39584,7 +39322,6 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLe _start: { lean_object* x_15; lean_object* x_16; -lean_inc_ref(x_12); lean_inc(x_2); x_15 = l_Lake_getArtifacts_x3f___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__3(x_8, x_1, x_2, x_3, x_4, x_9, x_10, x_11, x_12, x_13, x_14); x_16 = lean_ctor_get(x_15, 0); @@ -39597,7 +39334,6 @@ lean_inc(x_17); if (lean_obj_tag(x_17) == 0) { lean_dec_ref(x_16); -lean_dec_ref(x_12); lean_dec_ref(x_5); lean_dec(x_2); return x_15; @@ -39620,8 +39356,7 @@ if (lean_is_exclusive(x_17)) { lean_dec_ref(x_17); x_21 = lean_box(0); } -x_85 = l_Lake_SavedTrace_replayOrFetchIfUpToDate(x_1, x_2, x_8, x_9, x_10, x_11, x_12, x_19, x_18); -lean_dec_ref(x_12); +x_85 = l_Lake_SavedTrace_replayOrFetchIfUpToDate___redArg(x_1, x_2, x_19, x_18); lean_dec(x_2); x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); @@ -40421,278 +40156,539 @@ return x_83; else { lean_dec_ref(x_16); -lean_dec_ref(x_12); lean_dec_ref(x_5); lean_dec(x_2); return x_15; } } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint64_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(uint8_t x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, uint64_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_13; lean_object* x_14; -x_13 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(x_1, x_10, x_11, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec_ref(x_13); -x_17 = !lean_is_exclusive(x_14); +uint8_t x_16; uint8_t x_17; +x_16 = 1; +x_17 = l_Lake_instDecidableEqOutputStatus(x_1, x_16); if (x_17 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_18 = lean_ctor_get(x_14, 0); -x_19 = lean_ctor_get(x_14, 1); -lean_dec(x_19); -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); -x_22 = lean_ctor_get(x_15, 1); -x_23 = lean_ctor_get(x_15, 2); -x_24 = l_Lake_Package_cacheScope(x_2); -lean_inc(x_18); -x_25 = l_Lake_ModuleOutputArtifacts_descrs(x_18); -x_26 = l_Lake_ModuleOutputDescrs_toJson(x_25); -x_27 = l_Lake_Cache_writeOutputsCore(x_3, x_24, x_4, x_26, x_16); -lean_dec_ref(x_24); -if (lean_obj_tag(x_27) == 0) +lean_object* x_18; lean_object* x_19; +x_18 = l___private_Lake_Build_Module_0__Lake_Module_cacheOutputArtifacts___redArg(x_2, x_3, x_4, x_13, x_14, x_15); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_28; -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec_ref(x_18); +x_22 = !lean_is_exclusive(x_19); +if (x_22 == 0) { -lean_object* x_29; -x_29 = lean_ctor_get(x_27, 0); -lean_dec(x_29); -lean_ctor_set(x_27, 0, x_14); -return x_27; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_27, 1); -lean_inc(x_30); -lean_dec(x_27); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_14); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -else -{ -uint8_t x_32; +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_23 = lean_ctor_get(x_19, 0); +x_24 = lean_ctor_get(x_19, 1); +lean_dec(x_24); +x_25 = lean_ctor_get(x_20, 0); +x_26 = lean_ctor_get_uint8(x_20, sizeof(void*)*3); +x_27 = lean_ctor_get(x_20, 1); +x_28 = lean_ctor_get(x_20, 2); +x_29 = l_Lake_Package_cacheScope(x_5); lean_inc(x_23); -lean_inc_ref(x_22); -lean_inc_ref(x_20); -lean_dec(x_18); -x_32 = !lean_is_exclusive(x_15); -if (x_32 == 0) +x_30 = l_Lake_ModuleOutputArtifacts_descrs(x_23); +x_31 = l_Lake_ModuleOutputDescrs_toJson(x_30); +x_32 = l_Lake_Cache_writeOutputsCore(x_6, x_29, x_7, x_31, x_21); +lean_dec_ref(x_29); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_33 = lean_ctor_get(x_15, 2); -lean_dec(x_33); -x_34 = lean_ctor_get(x_15, 1); +uint8_t x_33; +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); lean_dec(x_34); -x_35 = lean_ctor_get(x_15, 0); -lean_dec(x_35); -x_36 = !lean_is_exclusive(x_27); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_37 = lean_ctor_get(x_27, 0); -x_38 = lean_io_error_to_string(x_37); -x_39 = 3; -x_40 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39); -x_41 = lean_array_get_size(x_20); -x_42 = lean_array_push(x_20, x_40); -lean_ctor_set(x_15, 0, x_42); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_41); -lean_ctor_set_tag(x_27, 0); -lean_ctor_set(x_27, 0, x_14); -return x_27; +lean_ctor_set(x_32, 0, x_19); +return x_32; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_43 = lean_ctor_get(x_27, 0); -x_44 = lean_ctor_get(x_27, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_27); -x_45 = lean_io_error_to_string(x_43); -x_46 = 3; -x_47 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set_uint8(x_47, sizeof(void*)*1, x_46); -x_48 = lean_array_get_size(x_20); -x_49 = lean_array_push(x_20, x_47); -lean_ctor_set(x_15, 0, x_49); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 0, x_48); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_14); -lean_ctor_set(x_50, 1, x_44); -return x_50; +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); +lean_dec(x_32); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_19); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_15); -x_51 = lean_ctor_get(x_27, 0); -lean_inc(x_51); -x_52 = lean_ctor_get(x_27, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_27)) { - lean_ctor_release(x_27, 0); - lean_ctor_release(x_27, 1); - x_53 = x_27; -} else { - lean_dec_ref(x_27); - x_53 = lean_box(0); +uint8_t x_37; +lean_inc(x_28); +lean_inc_ref(x_27); +lean_inc_ref(x_25); +lean_dec(x_23); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_20, 2); +lean_dec(x_38); +x_39 = lean_ctor_get(x_20, 1); +lean_dec(x_39); +x_40 = lean_ctor_get(x_20, 0); +lean_dec(x_40); +x_41 = !lean_is_exclusive(x_32); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_32, 0); +x_43 = lean_io_error_to_string(x_42); +x_44 = 3; +x_45 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); +x_46 = lean_array_get_size(x_25); +x_47 = lean_array_push(x_25, x_45); +lean_ctor_set(x_20, 0, x_47); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 0, x_46); +lean_ctor_set_tag(x_32, 0); +lean_ctor_set(x_32, 0, x_19); +return x_32; } -x_54 = lean_io_error_to_string(x_51); -x_55 = 3; -x_56 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_55); -x_57 = lean_array_get_size(x_20); -x_58 = lean_array_push(x_20, x_56); -x_59 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_22); -lean_ctor_set(x_59, 2, x_23); -lean_ctor_set_uint8(x_59, sizeof(void*)*3, x_21); -lean_ctor_set_tag(x_14, 1); -lean_ctor_set(x_14, 1, x_59); -lean_ctor_set(x_14, 0, x_57); -if (lean_is_scalar(x_53)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_53; - lean_ctor_set_tag(x_60, 0); +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_32, 0); +x_49 = lean_ctor_get(x_32, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_32); +x_50 = lean_io_error_to_string(x_48); +x_51 = 3; +x_52 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set_uint8(x_52, sizeof(void*)*1, x_51); +x_53 = lean_array_get_size(x_25); +x_54 = lean_array_push(x_25, x_52); +lean_ctor_set(x_20, 0, x_54); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 0, x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_19); +lean_ctor_set(x_55, 1, x_49); +return x_55; } -lean_ctor_set(x_60, 0, x_14); -lean_ctor_set(x_60, 1, x_52); -return x_60; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_dec(x_20); +x_56 = lean_ctor_get(x_32, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_32, 1); +lean_inc(x_57); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_58 = x_32; +} else { + lean_dec_ref(x_32); + x_58 = lean_box(0); +} +x_59 = lean_io_error_to_string(x_56); +x_60 = 3; +x_61 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set_uint8(x_61, sizeof(void*)*1, x_60); +x_62 = lean_array_get_size(x_25); +x_63 = lean_array_push(x_25, x_61); +x_64 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_27); +lean_ctor_set(x_64, 2, x_28); +lean_ctor_set_uint8(x_64, sizeof(void*)*3, x_26); +lean_ctor_set_tag(x_19, 1); +lean_ctor_set(x_19, 1, x_64); +lean_ctor_set(x_19, 0, x_62); +if (lean_is_scalar(x_58)) { + x_65 = lean_alloc_ctor(0, 2, 0); +} else { + x_65 = x_58; + lean_ctor_set_tag(x_65, 0); +} +lean_ctor_set(x_65, 0, x_19); +lean_ctor_set(x_65, 1, x_57); +return x_65; } } } else { -lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_61 = lean_ctor_get(x_14, 0); -lean_inc(x_61); -lean_dec(x_14); -x_62 = lean_ctor_get(x_15, 0); -x_63 = lean_ctor_get_uint8(x_15, sizeof(void*)*3); -x_64 = lean_ctor_get(x_15, 1); -x_65 = lean_ctor_get(x_15, 2); -x_66 = l_Lake_Package_cacheScope(x_2); -lean_inc(x_61); -x_67 = l_Lake_ModuleOutputArtifacts_descrs(x_61); -x_68 = l_Lake_ModuleOutputDescrs_toJson(x_67); -x_69 = l_Lake_Cache_writeOutputsCore(x_3, x_66, x_4, x_68, x_16); -lean_dec_ref(x_66); -if (lean_obj_tag(x_69) == 0) +lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_66 = lean_ctor_get(x_19, 0); +lean_inc(x_66); +lean_dec(x_19); +x_67 = lean_ctor_get(x_20, 0); +x_68 = lean_ctor_get_uint8(x_20, sizeof(void*)*3); +x_69 = lean_ctor_get(x_20, 1); +x_70 = lean_ctor_get(x_20, 2); +x_71 = l_Lake_Package_cacheScope(x_5); +lean_inc(x_66); +x_72 = l_Lake_ModuleOutputArtifacts_descrs(x_66); +x_73 = l_Lake_ModuleOutputDescrs_toJson(x_72); +x_74 = l_Lake_Cache_writeOutputsCore(x_6, x_71, x_7, x_73, x_21); +lean_dec_ref(x_71); +if (lean_obj_tag(x_74) == 0) { -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_71 = x_69; -} else { - lean_dec_ref(x_69); - x_71 = lean_box(0); -} -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_61); -lean_ctor_set(x_72, 1, x_15); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_71; -} -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_70); -return x_73; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; -lean_inc(x_65); -lean_inc_ref(x_64); -lean_inc_ref(x_62); -lean_dec(x_61); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - lean_ctor_release(x_15, 2); - x_74 = x_15; -} else { - lean_dec_ref(x_15); - x_74 = lean_box(0); -} -x_75 = lean_ctor_get(x_69, 0); +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_75 = lean_ctor_get(x_74, 1); lean_inc(x_75); -x_76 = lean_ctor_get(x_69, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_77 = x_69; +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_76 = x_74; } else { - lean_dec_ref(x_69); - x_77 = lean_box(0); + lean_dec_ref(x_74); + x_76 = lean_box(0); } -x_78 = lean_io_error_to_string(x_75); -x_79 = 3; -x_80 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set_uint8(x_80, sizeof(void*)*1, x_79); -x_81 = lean_array_get_size(x_62); -x_82 = lean_array_push(x_62, x_80); -if (lean_is_scalar(x_74)) { - x_83 = lean_alloc_ctor(0, 3, 1); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_66); +lean_ctor_set(x_77, 1, x_20); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 2, 0); } else { - x_83 = x_74; + x_78 = x_76; } -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_64); -lean_ctor_set(x_83, 2, x_65); -lean_ctor_set_uint8(x_83, sizeof(void*)*3, x_63); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_83); -if (lean_is_scalar(x_77)) { - x_85 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_75); +return x_78; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_inc(x_70); +lean_inc_ref(x_69); +lean_inc_ref(x_67); +lean_dec(x_66); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + lean_ctor_release(x_20, 1); + lean_ctor_release(x_20, 2); + x_79 = x_20; } else { - x_85 = x_77; - lean_ctor_set_tag(x_85, 0); + lean_dec_ref(x_20); + x_79 = lean_box(0); } -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_76); -return x_85; +x_80 = lean_ctor_get(x_74, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_74, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_74)) { + lean_ctor_release(x_74, 0); + lean_ctor_release(x_74, 1); + x_82 = x_74; +} else { + lean_dec_ref(x_74); + x_82 = lean_box(0); +} +x_83 = lean_io_error_to_string(x_80); +x_84 = 3; +x_85 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set_uint8(x_85, sizeof(void*)*1, x_84); +x_86 = lean_array_get_size(x_67); +x_87 = lean_array_push(x_67, x_85); +if (lean_is_scalar(x_79)) { + x_88 = lean_alloc_ctor(0, 3, 1); +} else { + x_88 = x_79; +} +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_69); +lean_ctor_set(x_88, 2, x_70); +lean_ctor_set_uint8(x_88, sizeof(void*)*3, x_68); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +if (lean_is_scalar(x_82)) { + x_90 = lean_alloc_ctor(0, 2, 0); +} else { + x_90 = x_82; + lean_ctor_set_tag(x_90, 0); +} +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_81); +return x_90; } } } else { -lean_dec_ref(x_14); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -return x_13; +lean_dec_ref(x_19); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +return x_18; +} +} +else +{ +uint8_t x_91; +lean_dec_ref(x_6); +lean_dec_ref(x_5); +x_91 = !lean_is_exclusive(x_14); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_14, 0); +x_93 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_2, x_3, x_13, x_92, x_15); +lean_dec_ref(x_13); +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +if (lean_obj_tag(x_94) == 0) +{ +uint8_t x_95; +x_95 = !lean_is_exclusive(x_93); +if (x_95 == 0) +{ +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_93, 0); +lean_dec(x_96); +x_97 = !lean_is_exclusive(x_94); +if (x_97 == 0) +{ +lean_object* x_98; +x_98 = lean_ctor_get(x_94, 1); +lean_ctor_set(x_14, 0, x_98); +lean_ctor_set(x_94, 1, x_14); +return x_93; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_94, 0); +x_100 = lean_ctor_get(x_94, 1); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_94); +lean_ctor_set(x_14, 0, x_100); +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_14); +lean_ctor_set(x_93, 0, x_101); +return x_93; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_102 = lean_ctor_get(x_93, 1); +lean_inc(x_102); +lean_dec(x_93); +x_103 = lean_ctor_get(x_94, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_94, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_105 = x_94; +} else { + lean_dec_ref(x_94); + x_105 = lean_box(0); +} +lean_ctor_set(x_14, 0, x_104); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_14); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_102); +return x_107; +} +} +else +{ +uint8_t x_108; +x_108 = !lean_is_exclusive(x_93); +if (x_108 == 0) +{ +lean_object* x_109; uint8_t x_110; +x_109 = lean_ctor_get(x_93, 0); +lean_dec(x_109); +x_110 = !lean_is_exclusive(x_94); +if (x_110 == 0) +{ +lean_object* x_111; +x_111 = lean_ctor_get(x_94, 1); +lean_ctor_set(x_14, 0, x_111); +lean_ctor_set(x_94, 1, x_14); +return x_93; +} +else +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_94, 0); +x_113 = lean_ctor_get(x_94, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_94); +lean_ctor_set(x_14, 0, x_113); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_14); +lean_ctor_set(x_93, 0, x_114); +return x_93; +} +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_115 = lean_ctor_get(x_93, 1); +lean_inc(x_115); +lean_dec(x_93); +x_116 = lean_ctor_get(x_94, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_94, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_118 = x_94; +} else { + lean_dec_ref(x_94); + x_118 = lean_box(0); +} +lean_ctor_set(x_14, 0, x_117); +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_14); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_115); +return x_120; +} +} +} +else +{ +lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_121 = lean_ctor_get(x_14, 0); +x_122 = lean_ctor_get_uint8(x_14, sizeof(void*)*3); +x_123 = lean_ctor_get(x_14, 1); +x_124 = lean_ctor_get(x_14, 2); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_121); +lean_dec(x_14); +x_125 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_2, x_3, x_13, x_121, x_15); +lean_dec_ref(x_13); +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +if (lean_obj_tag(x_126) == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_128 = x_125; +} else { + lean_dec_ref(x_125); + x_128 = lean_box(0); +} +x_129 = lean_ctor_get(x_126, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_126, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_131 = x_126; +} else { + lean_dec_ref(x_126); + x_131 = lean_box(0); +} +x_132 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_132, 0, x_130); +lean_ctor_set(x_132, 1, x_123); +lean_ctor_set(x_132, 2, x_124); +lean_ctor_set_uint8(x_132, sizeof(void*)*3, x_122); +if (lean_is_scalar(x_131)) { + x_133 = lean_alloc_ctor(0, 2, 0); +} else { + x_133 = x_131; +} +lean_ctor_set(x_133, 0, x_129); +lean_ctor_set(x_133, 1, x_132); +if (lean_is_scalar(x_128)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_128; +} +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_127); +return x_134; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_135 = lean_ctor_get(x_125, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_136 = x_125; +} else { + lean_dec_ref(x_125); + x_136 = lean_box(0); +} +x_137 = lean_ctor_get(x_126, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_126, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + x_139 = x_126; +} else { + lean_dec_ref(x_126); + x_139 = lean_box(0); +} +x_140 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_140, 0, x_138); +lean_ctor_set(x_140, 1, x_123); +lean_ctor_set(x_140, 2, x_124); +lean_ctor_set_uint8(x_140, sizeof(void*)*3, x_122); +if (lean_is_scalar(x_139)) { + x_141 = lean_alloc_ctor(1, 2, 0); +} else { + x_141 = x_139; +} +lean_ctor_set(x_141, 0, x_137); +lean_ctor_set(x_141, 1, x_140); +if (lean_is_scalar(x_136)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_136; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_135); +return x_142; +} +} } } } @@ -40731,7 +40727,7 @@ return x_1; LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { _start: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_36; uint64_t x_37; lean_object* x_38; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; uint64_t x_71; lean_object* x_437; uint8_t x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; uint8_t x_443; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_495; lean_object* x_496; lean_object* x_497; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_21; uint64_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_36; uint64_t x_37; lean_object* x_38; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint64_t x_73; uint8_t x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; uint8_t x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; uint8_t x_511; uint8_t x_512; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_559; lean_object* x_560; lean_object* x_561; x_44 = lean_ctor_get(x_1, 0); lean_inc_ref(x_44); if (lean_is_exclusive(x_1)) { @@ -40776,72 +40772,72 @@ if (lean_is_exclusive(x_13)) { x_55 = lean_ctor_get(x_12, 1); x_56 = lean_ctor_get(x_12, 2); lean_inc_ref(x_56); -x_468 = l_Lake_BuildTrace_mix(x_52, x_56); +x_525 = l_Lake_BuildTrace_mix(x_52, x_56); if (lean_obj_tag(x_47) == 0) { -lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; +lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; uint8_t x_571; lean_dec(x_49); lean_dec(x_45); -x_502 = lean_ctor_get(x_47, 1); -lean_inc(x_502); -x_503 = lean_ctor_get(x_47, 0); -lean_inc(x_503); +x_566 = lean_ctor_get(x_47, 1); +lean_inc(x_566); +x_567 = lean_ctor_get(x_47, 0); +lean_inc(x_567); lean_dec_ref(x_47); -x_504 = lean_ctor_get(x_502, 0); -lean_inc_ref(x_504); -lean_dec(x_502); -x_505 = lean_unsigned_to_nat(0u); -x_506 = lean_array_get_size(x_504); -x_507 = lean_nat_dec_lt(x_505, x_506); -if (x_507 == 0) +x_568 = lean_ctor_get(x_566, 0); +lean_inc_ref(x_568); +lean_dec(x_566); +x_569 = lean_unsigned_to_nat(0u); +x_570 = lean_array_get_size(x_568); +x_571 = lean_nat_dec_lt(x_569, x_570); +if (x_571 == 0) { -lean_dec(x_506); -lean_dec_ref(x_504); -x_488 = x_503; -x_489 = x_50; -x_490 = x_48; -goto block_494; +lean_dec(x_570); +lean_dec_ref(x_568); +x_552 = x_567; +x_553 = x_50; +x_554 = x_48; +goto block_558; } else { -uint8_t x_508; -x_508 = lean_nat_dec_le(x_506, x_506); -if (x_508 == 0) +uint8_t x_572; +x_572 = lean_nat_dec_le(x_570, x_570); +if (x_572 == 0) { -lean_dec(x_506); -lean_dec_ref(x_504); -x_488 = x_503; -x_489 = x_50; -x_490 = x_48; -goto block_494; +lean_dec(x_570); +lean_dec_ref(x_568); +x_552 = x_567; +x_553 = x_50; +x_554 = x_48; +goto block_558; } else { -lean_object* x_509; size_t x_510; size_t x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; -x_509 = lean_box(0); -x_510 = 0; -x_511 = lean_usize_of_nat(x_506); -lean_dec(x_506); -x_512 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__0(x_504, x_510, x_511, x_509, x_50, x_48); -lean_dec_ref(x_504); -x_513 = lean_ctor_get(x_512, 0); -lean_inc(x_513); -x_514 = lean_ctor_get(x_512, 1); -lean_inc(x_514); -lean_dec_ref(x_512); -x_515 = lean_ctor_get(x_513, 1); -lean_inc(x_515); -lean_dec(x_513); -x_488 = x_503; -x_489 = x_515; -x_490 = x_514; -goto block_494; +lean_object* x_573; size_t x_574; size_t x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; +x_573 = lean_box(0); +x_574 = 0; +x_575 = lean_usize_of_nat(x_570); +lean_dec(x_570); +x_576 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__0(x_568, x_574, x_575, x_573, x_50, x_48); +lean_dec_ref(x_568); +x_577 = lean_ctor_get(x_576, 0); +lean_inc(x_577); +x_578 = lean_ctor_get(x_576, 1); +lean_inc(x_578); +lean_dec_ref(x_576); +x_579 = lean_ctor_get(x_577, 1); +lean_inc(x_579); +lean_dec(x_577); +x_552 = x_567; +x_553 = x_579; +x_554 = x_578; +goto block_558; } } } else { -lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; uint8_t x_521; +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; uint8_t x_585; lean_dec(x_54); lean_dec_ref(x_44); lean_dec_ref(x_12); @@ -40853,60 +40849,60 @@ lean_dec_ref(x_7); lean_dec_ref(x_5); lean_dec_ref(x_4); lean_dec(x_2); -x_516 = lean_ctor_get(x_47, 1); -lean_inc(x_516); -x_517 = lean_ctor_get(x_47, 0); -lean_inc(x_517); +x_580 = lean_ctor_get(x_47, 1); +lean_inc(x_580); +x_581 = lean_ctor_get(x_47, 0); +lean_inc(x_581); lean_dec_ref(x_47); -x_518 = lean_ctor_get(x_516, 0); -lean_inc_ref(x_518); -lean_dec(x_516); -x_519 = lean_unsigned_to_nat(0u); -x_520 = lean_array_get_size(x_518); -x_521 = lean_nat_dec_lt(x_519, x_520); -if (x_521 == 0) +x_582 = lean_ctor_get(x_580, 0); +lean_inc_ref(x_582); +lean_dec(x_580); +x_583 = lean_unsigned_to_nat(0u); +x_584 = lean_array_get_size(x_582); +x_585 = lean_nat_dec_lt(x_583, x_584); +if (x_585 == 0) { -lean_dec(x_520); -lean_dec_ref(x_518); -x_495 = x_517; -x_496 = x_50; -x_497 = x_48; -goto block_501; +lean_dec(x_584); +lean_dec_ref(x_582); +x_559 = x_581; +x_560 = x_50; +x_561 = x_48; +goto block_565; } else { -uint8_t x_522; -x_522 = lean_nat_dec_le(x_520, x_520); -if (x_522 == 0) +uint8_t x_586; +x_586 = lean_nat_dec_le(x_584, x_584); +if (x_586 == 0) { -lean_dec(x_520); -lean_dec_ref(x_518); -x_495 = x_517; -x_496 = x_50; -x_497 = x_48; -goto block_501; +lean_dec(x_584); +lean_dec_ref(x_582); +x_559 = x_581; +x_560 = x_50; +x_561 = x_48; +goto block_565; } else { -lean_object* x_523; size_t x_524; size_t x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_523 = lean_box(0); -x_524 = 0; -x_525 = lean_usize_of_nat(x_520); -lean_dec(x_520); -x_526 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__0(x_518, x_524, x_525, x_523, x_50, x_48); -lean_dec_ref(x_518); -x_527 = lean_ctor_get(x_526, 0); -lean_inc(x_527); -x_528 = lean_ctor_get(x_526, 1); -lean_inc(x_528); -lean_dec_ref(x_526); -x_529 = lean_ctor_get(x_527, 1); -lean_inc(x_529); -lean_dec(x_527); -x_495 = x_517; -x_496 = x_529; -x_497 = x_528; -goto block_501; +lean_object* x_587; size_t x_588; size_t x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_587 = lean_box(0); +x_588 = 0; +x_589 = lean_usize_of_nat(x_584); +lean_dec(x_584); +x_590 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recComputeTransImports_spec__0(x_582, x_588, x_589, x_587, x_50, x_48); +lean_dec_ref(x_582); +x_591 = lean_ctor_get(x_590, 0); +lean_inc(x_591); +x_592 = lean_ctor_get(x_590, 1); +lean_inc(x_592); +lean_dec_ref(x_590); +x_593 = lean_ctor_get(x_591, 1); +lean_inc(x_593); +lean_dec(x_591); +x_559 = x_581; +x_560 = x_593; +x_561 = x_592; +goto block_565; } } } @@ -40923,7 +40919,7 @@ return x_19; } block_35: { -if (lean_obj_tag(x_22) == 0) +if (lean_obj_tag(x_21) == 0) { x_15 = x_23; x_16 = x_24; @@ -40933,9 +40929,9 @@ goto block_20; else { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_26 = lean_ctor_get(x_22, 0); +x_26 = lean_ctor_get(x_21, 0); lean_inc(x_26); -lean_dec_ref(x_22); +lean_dec_ref(x_21); x_27 = lean_st_ref_take(x_26, x_25); x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); @@ -40945,7 +40941,7 @@ lean_dec_ref(x_27); lean_inc_ref(x_23); x_30 = l_Lake_ModuleOutputArtifacts_descrs(x_23); x_31 = l_Lake_ModuleOutputDescrs_toJson(x_30); -x_32 = l_Lake_CacheMap_insertCore(x_21, x_31, x_28); +x_32 = l_Lake_CacheMap_insertCore(x_22, x_31, x_28); x_33 = lean_st_ref_set(x_26, x_32, x_29); lean_dec(x_26); x_34 = lean_ctor_get(x_33, 1); @@ -40973,8 +40969,8 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_39, 1); lean_inc(x_42); lean_dec_ref(x_39); -x_21 = x_37; -x_22 = x_36; +x_21 = x_36; +x_22 = x_37; x_23 = x_41; x_24 = x_42; x_25 = x_40; @@ -40986,141 +40982,344 @@ lean_dec(x_36); return x_38; } } -block_436: +block_496: { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; -x_72 = l___private_Lake_Build_Module_0__Lake_Module_buildLean___closed__0; -x_73 = l_System_FilePath_normalize(x_64); -x_74 = l_Lake_joinRelative(x_70, x_73); -lean_dec_ref(x_73); +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_74 = l___private_Lake_Build_Module_0__Lake_Module_buildLean___closed__0; x_75 = l_System_FilePath_normalize(x_69); -x_76 = l_Lake_joinRelative(x_74, x_75); +x_76 = l_Lake_joinRelative(x_63, x_75); lean_dec_ref(x_75); -x_77 = l_Lean_modToFilePath(x_76, x_3, x_72); -lean_dec_ref(x_76); -lean_inc_ref(x_77); -x_78 = l_Lake_readTraceFile(x_77, x_60, x_61); -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) +x_77 = l_System_FilePath_normalize(x_71); +x_78 = l_Lake_joinRelative(x_76, x_77); +lean_dec_ref(x_77); +x_79 = l_Lean_modToFilePath(x_78, x_3, x_74); +lean_dec_ref(x_78); +lean_inc_ref(x_79); +x_80 = l_Lake_readTraceFile(x_79, x_70, x_62); +x_81 = !lean_is_exclusive(x_80); +if (x_81 == 0) { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_80 = lean_ctor_get(x_78, 0); -x_81 = lean_ctor_get(x_78, 1); -x_82 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__0; -x_83 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__1; -x_84 = lean_array_to_list(x_63); -x_85 = l_List_toString___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(x_84); -lean_dec(x_84); -x_86 = lean_string_append(x_83, x_85); -lean_dec_ref(x_85); -x_87 = lean_string_append(x_82, x_86); -lean_dec_ref(x_86); -x_88 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0; -x_89 = l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3; -x_90 = lean_alloc_ctor(0, 3, 8); -lean_ctor_set(x_90, 0, x_87); -lean_ctor_set(x_90, 1, x_88); -lean_ctor_set(x_90, 2, x_89); -lean_ctor_set_uint64(x_90, sizeof(void*)*3, x_71); -x_91 = l_Lake_BuildTrace_mix(x_66, x_90); -x_92 = !lean_is_exclusive(x_91); -if (x_92 == 0) +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_82 = lean_ctor_get(x_80, 0); +x_83 = lean_ctor_get(x_80, 1); +x_84 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__0; +x_85 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__1; +x_86 = lean_array_to_list(x_72); +x_87 = l_List_toString___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(x_86); +lean_dec(x_86); +x_88 = lean_string_append(x_85, x_87); +lean_dec_ref(x_87); +x_89 = lean_string_append(x_84, x_88); +lean_dec_ref(x_88); +x_90 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0; +x_91 = l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3; +x_92 = lean_alloc_ctor(0, 3, 8); +lean_ctor_set(x_92, 0, x_89); +lean_ctor_set(x_92, 1, x_90); +lean_ctor_set(x_92, 2, x_91); +lean_ctor_set_uint64(x_92, sizeof(void*)*3, x_73); +x_93 = l_Lake_BuildTrace_mix(x_64, x_92); +x_94 = !lean_is_exclusive(x_93); +if (x_94 == 0) { -uint64_t x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_93 = lean_ctor_get_uint64(x_91, sizeof(void*)*3); -x_94 = lean_ctor_get(x_91, 0); -lean_dec(x_94); -x_95 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; -x_96 = lean_string_append(x_4, x_95); -lean_ctor_set(x_91, 0, x_96); -if (lean_obj_tag(x_80) == 0) +uint64_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_95 = lean_ctor_get_uint64(x_93, sizeof(void*)*3); +x_96 = lean_ctor_get(x_93, 0); +lean_dec(x_96); +x_97 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; +x_98 = lean_string_append(x_4, x_97); +lean_ctor_set(x_93, 0, x_98); +if (lean_obj_tag(x_82) == 0) { -lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -lean_free_object(x_78); -x_97 = lean_ctor_get(x_80, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_80, 1); -lean_inc(x_98); -lean_dec_ref(x_80); -lean_inc_ref(x_91); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +lean_free_object(x_80); +x_99 = lean_ctor_get(x_82, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_82, 1); +lean_inc(x_100); +lean_dec_ref(x_82); +lean_inc_ref(x_93); if (lean_is_scalar(x_54)) { - x_99 = lean_alloc_ctor(0, 3, 1); + x_101 = lean_alloc_ctor(0, 3, 1); } else { - x_99 = x_54; + x_101 = x_54; } -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_91); -lean_ctor_set(x_99, 2, x_53); -lean_ctor_set_uint8(x_99, sizeof(void*)*3, x_51); -x_100 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_62, x_12, x_99, x_81); -lean_dec_ref(x_62); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_101, 0); -x_103 = lean_unbox(x_102); -if (x_103 == 0) +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_93); +lean_ctor_set(x_101, 2, x_53); +lean_ctor_set_uint8(x_101, sizeof(void*)*3, x_51); +x_102 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_66, x_12, x_101, x_83); +lean_dec_ref(x_66); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_103, 0); +x_105 = lean_unbox(x_104); +if (x_105 == 0) { -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; -x_104 = lean_ctor_get(x_100, 1); -lean_inc(x_104); -lean_dec_ref(x_100); -x_105 = lean_ctor_get(x_101, 1); -lean_inc(x_105); -lean_dec(x_101); -x_106 = lean_ctor_get(x_55, 2); -x_107 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_107); -lean_dec_ref(x_67); -lean_inc(x_97); +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_106 = lean_ctor_get(x_102, 1); +lean_inc(x_106); +lean_dec_ref(x_102); +x_107 = lean_ctor_get(x_103, 1); +lean_inc(x_107); +lean_dec(x_103); +x_108 = lean_ctor_get(x_55, 2); +x_109 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_109); +lean_dec_ref(x_68); +lean_inc(x_99); lean_inc_ref(x_5); -x_108 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_91, x_97, x_107, x_9, x_10, x_11, x_12, x_105, x_104); -lean_dec_ref(x_107); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_109, 0); -x_111 = lean_unbox(x_110); -if (x_111 == 0) +x_110 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_93, x_99, x_109, x_9, x_10, x_11, x_12, x_107, x_106); +lean_dec_ref(x_109); +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +if (lean_obj_tag(x_111) == 0) { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_108, 1); +lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; uint8_t x_117; +x_112 = lean_ctor_get(x_110, 1); lean_inc(x_112); -lean_dec_ref(x_108); -x_113 = lean_ctor_get(x_109, 1); +lean_dec_ref(x_110); +x_113 = lean_ctor_get(x_111, 0); lean_inc(x_113); -lean_dec(x_109); +x_114 = lean_ctor_get(x_111, 1); +lean_inc(x_114); +lean_dec_ref(x_111); +x_115 = 0; +x_116 = lean_unbox(x_113); +lean_dec(x_113); +x_117 = l_Lake_instDecidableEqOutputStatus(x_116, x_115); +if (x_117 == 0) +{ +uint8_t x_118; +lean_dec(x_99); +lean_dec_ref(x_93); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_118 = !lean_is_exclusive(x_114); +if (x_118 == 0) +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_119 = lean_ctor_get(x_114, 0); +x_120 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_67, x_12, x_119, x_112); +lean_dec_ref(x_12); +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec_ref(x_120); +x_123 = lean_ctor_get(x_121, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_121, 1); +lean_inc(x_124); +lean_dec_ref(x_121); +lean_ctor_set(x_114, 0, x_124); +x_21 = x_60; +x_22 = x_95; +x_23 = x_123; +x_24 = x_114; +x_25 = x_122; +goto block_35; +} +else +{ +uint8_t x_125; +lean_dec(x_60); +x_125 = !lean_is_exclusive(x_120); +if (x_125 == 0) +{ +lean_object* x_126; uint8_t x_127; +x_126 = lean_ctor_get(x_120, 0); +lean_dec(x_126); +x_127 = !lean_is_exclusive(x_121); +if (x_127 == 0) +{ +lean_object* x_128; +x_128 = lean_ctor_get(x_121, 1); +lean_ctor_set(x_114, 0, x_128); +lean_ctor_set(x_121, 1, x_114); +return x_120; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_129 = lean_ctor_get(x_121, 0); +x_130 = lean_ctor_get(x_121, 1); +lean_inc(x_130); +lean_inc(x_129); +lean_dec(x_121); +lean_ctor_set(x_114, 0, x_130); +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_129); +lean_ctor_set(x_131, 1, x_114); +lean_ctor_set(x_120, 0, x_131); +return x_120; +} +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_132 = lean_ctor_get(x_120, 1); +lean_inc(x_132); +lean_dec(x_120); +x_133 = lean_ctor_get(x_121, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_121, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_135 = x_121; +} else { + lean_dec_ref(x_121); + x_135 = lean_box(0); +} +lean_ctor_set(x_114, 0, x_134); +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_135; +} +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_114); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_132); +return x_137; +} +} +} +else +{ +lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_138 = lean_ctor_get(x_114, 0); +x_139 = lean_ctor_get_uint8(x_114, sizeof(void*)*3); +x_140 = lean_ctor_get(x_114, 1); +x_141 = lean_ctor_get(x_114, 2); +lean_inc(x_141); +lean_inc(x_140); +lean_inc(x_138); +lean_dec(x_114); +x_142 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_67, x_12, x_138, x_112); +lean_dec_ref(x_12); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +lean_dec_ref(x_142); +x_145 = lean_ctor_get(x_143, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_143, 1); +lean_inc(x_146); +lean_dec_ref(x_143); +x_147 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_140); +lean_ctor_set(x_147, 2, x_141); +lean_ctor_set_uint8(x_147, sizeof(void*)*3, x_139); +x_21 = x_60; +x_22 = x_95; +x_23 = x_145; +x_24 = x_147; +x_25 = x_144; +goto block_35; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_60); +x_148 = lean_ctor_get(x_142, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_149 = x_142; +} else { + lean_dec_ref(x_142); + x_149 = lean_box(0); +} +x_150 = lean_ctor_get(x_143, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_143, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_152 = x_143; +} else { + lean_dec_ref(x_143); + x_152 = lean_box(0); +} +x_153 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_153, 0, x_151); +lean_ctor_set(x_153, 1, x_140); +lean_ctor_set(x_153, 2, x_141); +lean_ctor_set_uint8(x_153, sizeof(void*)*3, x_139); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_150); +lean_ctor_set(x_154, 1, x_153); +if (lean_is_scalar(x_149)) { + x_155 = lean_alloc_ctor(0, 2, 0); +} else { + x_155 = x_149; +} +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_148); +return x_155; +} +} +} +else +{ +lean_object* x_156; lean_object* x_157; lean_inc_ref(x_12); lean_inc_ref(x_5); -lean_inc_ref(x_106); -x_114 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_93, x_97, x_106, x_57, x_5, x_77, x_6, x_8, x_9, x_10, x_11, x_12, x_113, x_112); -lean_dec_ref(x_77); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -if (lean_obj_tag(x_115) == 0) +lean_inc_ref(x_108); +x_156 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_95, x_99, x_108, x_58, x_5, x_79, x_6, x_8, x_9, x_10, x_11, x_12, x_114, x_112); +lean_dec_ref(x_79); +x_157 = lean_ctor_get(x_156, 0); +lean_inc(x_157); +if (lean_obj_tag(x_157) == 0) { -lean_object* x_116; -x_116 = lean_ctor_get(x_115, 0); -if (lean_obj_tag(x_116) == 0) +lean_object* x_158; +x_158 = lean_ctor_get(x_157, 0); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_114, 1); -lean_inc(x_117); -lean_dec_ref(x_114); -x_118 = lean_ctor_get(x_115, 1); -lean_inc(x_118); -lean_dec_ref(x_115); -x_119 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_91, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_118, x_117); -lean_dec_ref(x_91); -x_36 = x_59; -x_37 = x_93; -x_38 = x_119; +lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_156, 1); +lean_inc(x_159); +lean_dec_ref(x_156); +x_160 = lean_ctor_get(x_157, 1); +lean_inc(x_160); +lean_dec_ref(x_157); +x_161 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_93, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_160, x_159); +lean_dec_ref(x_93); +x_36 = x_60; +x_37 = x_95; +x_38 = x_161; goto block_43; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; -lean_inc_ref(x_116); -lean_dec_ref(x_91); -lean_dec_ref(x_65); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_inc_ref(x_158); +lean_dec_ref(x_93); +lean_dec_ref(x_61); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -41128,29 +41327,29 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_120 = lean_ctor_get(x_114, 1); -lean_inc(x_120); -lean_dec_ref(x_114); -x_121 = lean_ctor_get(x_115, 1); -lean_inc(x_121); -lean_dec_ref(x_115); -x_122 = lean_ctor_get(x_116, 0); -lean_inc(x_122); -lean_dec_ref(x_116); -x_21 = x_93; -x_22 = x_59; -x_23 = x_122; -x_24 = x_121; -x_25 = x_120; +x_162 = lean_ctor_get(x_156, 1); +lean_inc(x_162); +lean_dec_ref(x_156); +x_163 = lean_ctor_get(x_157, 1); +lean_inc(x_163); +lean_dec_ref(x_157); +x_164 = lean_ctor_get(x_158, 0); +lean_inc(x_164); +lean_dec_ref(x_158); +x_21 = x_60; +x_22 = x_95; +x_23 = x_164; +x_24 = x_163; +x_25 = x_162; goto block_35; } } else { -uint8_t x_123; -lean_dec_ref(x_91); -lean_dec_ref(x_65); -lean_dec(x_59); +uint8_t x_165; +lean_dec_ref(x_93); +lean_dec_ref(x_61); +lean_dec(x_60); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -41158,986 +41357,273 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_123 = !lean_is_exclusive(x_114); -if (x_123 == 0) +x_165 = !lean_is_exclusive(x_156); +if (x_165 == 0) { -lean_object* x_124; uint8_t x_125; -x_124 = lean_ctor_get(x_114, 0); -lean_dec(x_124); -x_125 = !lean_is_exclusive(x_115); -if (x_125 == 0) +lean_object* x_166; uint8_t x_167; +x_166 = lean_ctor_get(x_156, 0); +lean_dec(x_166); +x_167 = !lean_is_exclusive(x_157); +if (x_167 == 0) { -return x_114; +return x_156; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_115, 0); -x_127 = lean_ctor_get(x_115, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_115); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_114, 0, x_128); -return x_114; -} -} -else -{ -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; -x_129 = lean_ctor_get(x_114, 1); -lean_inc(x_129); -lean_dec(x_114); -x_130 = lean_ctor_get(x_115, 0); -lean_inc(x_130); -x_131 = lean_ctor_get(x_115, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_115)) { - lean_ctor_release(x_115, 0); - lean_ctor_release(x_115, 1); - x_132 = x_115; -} else { - lean_dec_ref(x_115); - x_132 = lean_box(0); -} -if (lean_is_scalar(x_132)) { - x_133 = lean_alloc_ctor(1, 2, 0); -} else { - x_133 = x_132; -} -lean_ctor_set(x_133, 0, x_130); -lean_ctor_set(x_133, 1, x_131); -x_134 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_129); -return x_134; -} -} -} -else -{ -lean_object* x_135; lean_object* x_136; uint8_t x_137; -lean_dec(x_97); -lean_dec_ref(x_91); -lean_dec_ref(x_77); -lean_dec_ref(x_65); -lean_dec_ref(x_57); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_135 = lean_ctor_get(x_109, 1); -lean_inc(x_135); -lean_dec(x_109); -x_136 = lean_ctor_get(x_108, 1); -lean_inc(x_136); -lean_dec_ref(x_108); -x_137 = !lean_is_exclusive(x_135); -if (x_137 == 0) -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_135, 0); -x_139 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_58, x_12, x_138, x_136); -lean_dec_ref(x_12); -x_140 = lean_ctor_get(x_139, 0); -lean_inc(x_140); -if (lean_obj_tag(x_140) == 0) -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; -x_141 = lean_ctor_get(x_139, 1); -lean_inc(x_141); -lean_dec_ref(x_139); -x_142 = lean_ctor_get(x_140, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_140, 1); -lean_inc(x_143); -lean_dec_ref(x_140); -lean_ctor_set(x_135, 0, x_143); -x_21 = x_93; -x_22 = x_59; -x_23 = x_142; -x_24 = x_135; -x_25 = x_141; -goto block_35; -} -else -{ -uint8_t x_144; -lean_dec(x_59); -x_144 = !lean_is_exclusive(x_139); -if (x_144 == 0) -{ -lean_object* x_145; uint8_t x_146; -x_145 = lean_ctor_get(x_139, 0); -lean_dec(x_145); -x_146 = !lean_is_exclusive(x_140); -if (x_146 == 0) -{ -lean_object* x_147; -x_147 = lean_ctor_get(x_140, 1); -lean_ctor_set(x_135, 0, x_147); -lean_ctor_set(x_140, 1, x_135); -return x_139; -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -x_148 = lean_ctor_get(x_140, 0); -x_149 = lean_ctor_get(x_140, 1); -lean_inc(x_149); -lean_inc(x_148); -lean_dec(x_140); -lean_ctor_set(x_135, 0, x_149); -x_150 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_150, 0, x_148); -lean_ctor_set(x_150, 1, x_135); -lean_ctor_set(x_139, 0, x_150); -return x_139; -} -} -else -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; -x_151 = lean_ctor_get(x_139, 1); -lean_inc(x_151); -lean_dec(x_139); -x_152 = lean_ctor_get(x_140, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_140, 1); -lean_inc(x_153); -if (lean_is_exclusive(x_140)) { - lean_ctor_release(x_140, 0); - lean_ctor_release(x_140, 1); - x_154 = x_140; -} else { - lean_dec_ref(x_140); - x_154 = lean_box(0); -} -lean_ctor_set(x_135, 0, x_153); -if (lean_is_scalar(x_154)) { - x_155 = lean_alloc_ctor(1, 2, 0); -} else { - x_155 = x_154; -} -lean_ctor_set(x_155, 0, x_152); -lean_ctor_set(x_155, 1, x_135); -x_156 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_156, 0, x_155); -lean_ctor_set(x_156, 1, x_151); +lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_168 = lean_ctor_get(x_157, 0); +x_169 = lean_ctor_get(x_157, 1); +lean_inc(x_169); +lean_inc(x_168); +lean_dec(x_157); +x_170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_170, 0, x_168); +lean_ctor_set(x_170, 1, x_169); +lean_ctor_set(x_156, 0, x_170); return x_156; } } +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_171 = lean_ctor_get(x_156, 1); +lean_inc(x_171); +lean_dec(x_156); +x_172 = lean_ctor_get(x_157, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_157, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_174 = x_157; +} else { + lean_dec_ref(x_157); + x_174 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); +} else { + x_175 = x_174; +} +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_171); +return x_176; +} +} +} } else { -lean_object* x_157; uint8_t x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_157 = lean_ctor_get(x_135, 0); -x_158 = lean_ctor_get_uint8(x_135, sizeof(void*)*3); -x_159 = lean_ctor_get(x_135, 1); -x_160 = lean_ctor_get(x_135, 2); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_157); -lean_dec(x_135); -x_161 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_58, x_12, x_157, x_136); +uint8_t x_177; +lean_dec(x_99); +lean_dec_ref(x_93); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_177 = !lean_is_exclusive(x_110); +if (x_177 == 0) { -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec_ref(x_161); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec_ref(x_162); -x_166 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_166, 0, x_165); -lean_ctor_set(x_166, 1, x_159); -lean_ctor_set(x_166, 2, x_160); -lean_ctor_set_uint8(x_166, sizeof(void*)*3, x_158); -x_21 = x_93; -x_22 = x_59; -x_23 = x_164; -x_24 = x_166; -x_25 = x_163; -goto block_35; +lean_object* x_178; uint8_t x_179; +x_178 = lean_ctor_get(x_110, 0); +lean_dec(x_178); +x_179 = !lean_is_exclusive(x_111); +if (x_179 == 0) +{ +return x_110; } else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; -lean_dec(x_59); -x_167 = lean_ctor_get(x_161, 1); -lean_inc(x_167); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - x_168 = x_161; -} else { - lean_dec_ref(x_161); - x_168 = lean_box(0); -} -x_169 = lean_ctor_get(x_162, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_162, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_171 = x_162; -} else { - lean_dec_ref(x_162); - x_171 = lean_box(0); -} -x_172 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_172, 0, x_170); -lean_ctor_set(x_172, 1, x_159); -lean_ctor_set(x_172, 2, x_160); -lean_ctor_set_uint8(x_172, sizeof(void*)*3, x_158); -if (lean_is_scalar(x_171)) { - x_173 = lean_alloc_ctor(1, 2, 0); -} else { - x_173 = x_171; -} -lean_ctor_set(x_173, 0, x_169); -lean_ctor_set(x_173, 1, x_172); -if (lean_is_scalar(x_168)) { - x_174 = lean_alloc_ctor(0, 2, 0); -} else { - x_174 = x_168; -} -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_167); -return x_174; -} -} -} -} -else -{ -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_175 = lean_ctor_get(x_100, 1); -lean_inc(x_175); -lean_dec_ref(x_100); -x_176 = lean_ctor_get(x_101, 1); -lean_inc(x_176); -lean_dec(x_101); -x_177 = lean_ctor_get(x_55, 2); -lean_inc_ref(x_177); -lean_inc_ref(x_12); -lean_inc_ref(x_5); -lean_inc_ref(x_57); -lean_inc_ref(x_177); -lean_inc(x_97); -x_178 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_93, x_97, x_177, x_57, x_5, x_77, x_68, x_8, x_9, x_10, x_11, x_12, x_176, x_175); -lean_dec_ref(x_77); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -if (lean_obj_tag(x_179) == 0) -{ -lean_object* x_180; -x_180 = lean_ctor_get(x_179, 0); -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; -x_181 = lean_ctor_get(x_178, 1); +lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_180 = lean_ctor_get(x_111, 0); +x_181 = lean_ctor_get(x_111, 1); lean_inc(x_181); -lean_dec_ref(x_178); -x_182 = lean_ctor_get(x_179, 1); -lean_inc(x_182); -lean_dec_ref(x_179); -x_183 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_183); -lean_dec_ref(x_67); -lean_inc_ref(x_5); -x_184 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_91, x_97, x_183, x_9, x_10, x_11, x_12, x_182, x_181); -lean_dec_ref(x_183); -x_185 = lean_ctor_get(x_184, 0); +lean_inc(x_180); +lean_dec(x_111); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_110, 0, x_182); +return x_110; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_183 = lean_ctor_get(x_110, 1); +lean_inc(x_183); +lean_dec(x_110); +x_184 = lean_ctor_get(x_111, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_111, 1); lean_inc(x_185); -x_186 = lean_ctor_get(x_185, 0); -x_187 = lean_unbox(x_186); -if (x_187 == 0) +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_186 = x_111; +} else { + lean_dec_ref(x_111); + x_186 = lean_box(0); +} +if (lean_is_scalar(x_186)) { + x_187 = lean_alloc_ctor(1, 2, 0); +} else { + x_187 = x_186; +} +lean_ctor_set(x_187, 0, x_184); +lean_ctor_set(x_187, 1, x_185); +x_188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_188, 0, x_187); +lean_ctor_set(x_188, 1, x_183); +return x_188; +} +} +} +else { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_188 = lean_ctor_get(x_184, 1); -lean_inc(x_188); -lean_dec_ref(x_184); -x_189 = lean_ctor_get(x_185, 1); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; +x_189 = lean_ctor_get(x_102, 1); lean_inc(x_189); -lean_dec(x_185); +lean_dec_ref(x_102); +x_190 = lean_ctor_get(x_103, 1); +lean_inc(x_190); +lean_dec(x_103); +x_191 = lean_ctor_get(x_55, 2); +lean_inc_ref(x_191); lean_inc_ref(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc_ref(x_8); lean_inc_ref(x_5); -x_190 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_91, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_189, x_188); -lean_dec_ref(x_91); -x_191 = lean_ctor_get(x_190, 0); -lean_inc(x_191); -if (lean_obj_tag(x_191) == 0) -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; -x_192 = lean_ctor_get(x_190, 1); -lean_inc(x_192); -lean_dec_ref(x_190); -x_193 = lean_ctor_get(x_191, 1); +lean_inc_ref(x_58); +lean_inc_ref(x_191); +lean_inc(x_99); +x_192 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_95, x_99, x_191, x_58, x_5, x_79, x_65, x_8, x_9, x_10, x_11, x_12, x_190, x_189); +lean_dec_ref(x_79); +x_193 = lean_ctor_get(x_192, 0); lean_inc(x_193); -lean_dec_ref(x_191); -x_194 = lean_box(0); -x_195 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_177, x_93, x_194, x_8, x_9, x_10, x_11, x_12, x_193, x_192); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_93; -x_38 = x_195; -goto block_43; -} -else +if (lean_obj_tag(x_193) == 0) { -lean_dec_ref(x_191); -lean_dec_ref(x_177); -lean_dec(x_59); -lean_dec_ref(x_57); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_5); -return x_190; -} -} -else +lean_object* x_194; +x_194 = lean_ctor_get(x_193, 0); +if (lean_obj_tag(x_194) == 0) { -lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -lean_dec_ref(x_91); -lean_dec_ref(x_65); -lean_dec_ref(x_7); -x_196 = lean_ctor_get(x_184, 1); +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_195 = lean_ctor_get(x_192, 1); +lean_inc(x_195); +lean_dec_ref(x_192); +x_196 = lean_ctor_get(x_193, 1); lean_inc(x_196); -lean_dec_ref(x_184); -x_197 = lean_ctor_get(x_185, 1); -lean_inc(x_197); -lean_dec(x_185); -x_198 = lean_box(0); -x_199 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_177, x_93, x_198, x_8, x_9, x_10, x_11, x_12, x_197, x_196); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_93; -x_38 = x_199; -goto block_43; -} -} -else +lean_dec_ref(x_193); +x_197 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_197); +lean_dec_ref(x_68); +lean_inc_ref(x_5); +x_198 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_93, x_99, x_197, x_9, x_10, x_11, x_12, x_196, x_195); +lean_dec_ref(x_197); +x_199 = lean_ctor_get(x_198, 0); +lean_inc(x_199); +if (lean_obj_tag(x_199) == 0) { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -lean_inc_ref(x_180); -lean_dec_ref(x_177); -lean_dec(x_97); -lean_dec_ref(x_91); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_57); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_200 = lean_ctor_get(x_178, 1); +lean_object* x_200; lean_object* x_201; lean_object* x_202; uint8_t x_203; uint8_t x_204; uint8_t x_205; +x_200 = lean_ctor_get(x_198, 1); lean_inc(x_200); -lean_dec_ref(x_178); -x_201 = lean_ctor_get(x_179, 1); +lean_dec_ref(x_198); +x_201 = lean_ctor_get(x_199, 0); lean_inc(x_201); -lean_dec_ref(x_179); -x_202 = lean_ctor_get(x_180, 0); +x_202 = lean_ctor_get(x_199, 1); lean_inc(x_202); -lean_dec_ref(x_180); -x_21 = x_93; -x_22 = x_59; -x_23 = x_202; -x_24 = x_201; -x_25 = x_200; -goto block_35; -} -} -else -{ -uint8_t x_203; -lean_dec_ref(x_177); -lean_dec(x_97); -lean_dec_ref(x_91); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec(x_59); -lean_dec_ref(x_57); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_203 = !lean_is_exclusive(x_178); -if (x_203 == 0) -{ -lean_object* x_204; uint8_t x_205; -x_204 = lean_ctor_get(x_178, 0); -lean_dec(x_204); -x_205 = !lean_is_exclusive(x_179); +lean_dec_ref(x_199); +x_203 = 0; +x_204 = lean_unbox(x_201); +x_205 = l_Lake_instDecidableEqOutputStatus(x_204, x_203); if (x_205 == 0) { -return x_178; -} -else -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; -x_206 = lean_ctor_get(x_179, 0); -x_207 = lean_ctor_get(x_179, 1); -lean_inc(x_207); -lean_inc(x_206); -lean_dec(x_179); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_206); -lean_ctor_set(x_208, 1, x_207); -lean_ctor_set(x_178, 0, x_208); -return x_178; -} -} -else -{ -lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_209 = lean_ctor_get(x_178, 1); -lean_inc(x_209); -lean_dec(x_178); -x_210 = lean_ctor_get(x_179, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_179, 1); -lean_inc(x_211); -if (lean_is_exclusive(x_179)) { - lean_ctor_release(x_179, 0); - lean_ctor_release(x_179, 1); - x_212 = x_179; -} else { - lean_dec_ref(x_179); - x_212 = lean_box(0); -} -if (lean_is_scalar(x_212)) { - x_213 = lean_alloc_ctor(1, 2, 0); -} else { - x_213 = x_212; -} -lean_ctor_set(x_213, 0, x_210); -lean_ctor_set(x_213, 1, x_211); -x_214 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_209); -return x_214; -} -} -} -} -else -{ -uint8_t x_215; -lean_dec_ref(x_77); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_62); -lean_dec(x_59); -lean_dec_ref(x_57); -lean_dec_ref(x_12); +lean_object* x_206; uint8_t x_207; lean_object* x_208; +lean_dec_ref(x_93); +lean_dec_ref(x_61); +lean_dec_ref(x_7); +x_206 = lean_box(0); +x_207 = lean_unbox(x_201); +lean_dec(x_201); +x_208 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_207, x_5, x_59, x_57, x_58, x_191, x_95, x_206, x_8, x_9, x_10, x_11, x_12, x_202, x_200); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_215 = !lean_is_exclusive(x_80); -if (x_215 == 0) -{ -lean_object* x_216; lean_object* x_217; -x_216 = lean_ctor_get(x_80, 1); -if (lean_is_scalar(x_54)) { - x_217 = lean_alloc_ctor(0, 3, 1); -} else { - x_217 = x_54; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_91); -lean_ctor_set(x_217, 2, x_53); -lean_ctor_set_uint8(x_217, sizeof(void*)*3, x_51); -lean_ctor_set(x_80, 1, x_217); -return x_78; -} -else -{ -lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_218 = lean_ctor_get(x_80, 0); -x_219 = lean_ctor_get(x_80, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_80); -if (lean_is_scalar(x_54)) { - x_220 = lean_alloc_ctor(0, 3, 1); -} else { - x_220 = x_54; -} -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_91); -lean_ctor_set(x_220, 2, x_53); -lean_ctor_set_uint8(x_220, sizeof(void*)*3, x_51); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_218); -lean_ctor_set(x_221, 1, x_220); -lean_ctor_set(x_78, 0, x_221); -return x_78; -} -} -} -else -{ -lean_object* x_222; uint64_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_222 = lean_ctor_get(x_91, 1); -x_223 = lean_ctor_get_uint64(x_91, sizeof(void*)*3); -x_224 = lean_ctor_get(x_91, 2); -lean_inc(x_224); -lean_inc(x_222); -lean_dec(x_91); -x_225 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; -x_226 = lean_string_append(x_4, x_225); -x_227 = lean_alloc_ctor(0, 3, 8); -lean_ctor_set(x_227, 0, x_226); -lean_ctor_set(x_227, 1, x_222); -lean_ctor_set(x_227, 2, x_224); -lean_ctor_set_uint64(x_227, sizeof(void*)*3, x_223); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; uint8_t x_234; -lean_free_object(x_78); -x_228 = lean_ctor_get(x_80, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_80, 1); -lean_inc(x_229); -lean_dec_ref(x_80); -lean_inc_ref(x_227); -if (lean_is_scalar(x_54)) { - x_230 = lean_alloc_ctor(0, 3, 1); -} else { - x_230 = x_54; -} -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_227); -lean_ctor_set(x_230, 2, x_53); -lean_ctor_set_uint8(x_230, sizeof(void*)*3, x_51); -x_231 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_62, x_12, x_230, x_81); -lean_dec_ref(x_62); -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_232, 0); -x_234 = lean_unbox(x_233); -if (x_234 == 0) -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; -x_235 = lean_ctor_get(x_231, 1); -lean_inc(x_235); -lean_dec_ref(x_231); -x_236 = lean_ctor_get(x_232, 1); -lean_inc(x_236); -lean_dec(x_232); -x_237 = lean_ctor_get(x_55, 2); -x_238 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_238); -lean_dec_ref(x_67); -lean_inc(x_228); -lean_inc_ref(x_5); -x_239 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_227, x_228, x_238, x_9, x_10, x_11, x_12, x_236, x_235); -lean_dec_ref(x_238); -x_240 = lean_ctor_get(x_239, 0); -lean_inc(x_240); -x_241 = lean_ctor_get(x_240, 0); -x_242 = lean_unbox(x_241); -if (x_242 == 0) -{ -lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_243 = lean_ctor_get(x_239, 1); -lean_inc(x_243); -lean_dec_ref(x_239); -x_244 = lean_ctor_get(x_240, 1); -lean_inc(x_244); -lean_dec(x_240); -lean_inc_ref(x_12); -lean_inc_ref(x_5); -lean_inc_ref(x_237); -x_245 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_223, x_228, x_237, x_57, x_5, x_77, x_6, x_8, x_9, x_10, x_11, x_12, x_244, x_243); -lean_dec_ref(x_77); -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -if (lean_obj_tag(x_246) == 0) -{ -lean_object* x_247; -x_247 = lean_ctor_get(x_246, 0); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_245, 1); -lean_inc(x_248); -lean_dec_ref(x_245); -x_249 = lean_ctor_get(x_246, 1); -lean_inc(x_249); -lean_dec_ref(x_246); -x_250 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_227, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_249, x_248); -lean_dec_ref(x_227); -x_36 = x_59; -x_37 = x_223; -x_38 = x_250; +x_36 = x_60; +x_37 = x_95; +x_38 = x_208; goto block_43; } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; -lean_inc_ref(x_247); -lean_dec_ref(x_227); -lean_dec_ref(x_65); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_251 = lean_ctor_get(x_245, 1); -lean_inc(x_251); -lean_dec_ref(x_245); -x_252 = lean_ctor_get(x_246, 1); -lean_inc(x_252); -lean_dec_ref(x_246); -x_253 = lean_ctor_get(x_247, 0); -lean_inc(x_253); -lean_dec_ref(x_247); -x_21 = x_223; -x_22 = x_59; -x_23 = x_253; -x_24 = x_252; -x_25 = x_251; -goto block_35; -} -} -else -{ -lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -lean_dec_ref(x_227); -lean_dec_ref(x_65); -lean_dec(x_59); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_254 = lean_ctor_get(x_245, 1); -lean_inc(x_254); -if (lean_is_exclusive(x_245)) { - lean_ctor_release(x_245, 0); - lean_ctor_release(x_245, 1); - x_255 = x_245; -} else { - lean_dec_ref(x_245); - x_255 = lean_box(0); -} -x_256 = lean_ctor_get(x_246, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_246, 1); -lean_inc(x_257); -if (lean_is_exclusive(x_246)) { - lean_ctor_release(x_246, 0); - lean_ctor_release(x_246, 1); - x_258 = x_246; -} else { - lean_dec_ref(x_246); - x_258 = lean_box(0); -} -if (lean_is_scalar(x_258)) { - x_259 = lean_alloc_ctor(1, 2, 0); -} else { - x_259 = x_258; -} -lean_ctor_set(x_259, 0, x_256); -lean_ctor_set(x_259, 1, x_257); -if (lean_is_scalar(x_255)) { - x_260 = lean_alloc_ctor(0, 2, 0); -} else { - x_260 = x_255; -} -lean_ctor_set(x_260, 0, x_259); -lean_ctor_set(x_260, 1, x_254); -return x_260; -} -} -else -{ -lean_object* x_261; lean_object* x_262; lean_object* x_263; uint8_t x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -lean_dec(x_228); -lean_dec_ref(x_227); -lean_dec_ref(x_77); -lean_dec_ref(x_65); -lean_dec_ref(x_57); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_261 = lean_ctor_get(x_240, 1); -lean_inc(x_261); -lean_dec(x_240); -x_262 = lean_ctor_get(x_239, 1); -lean_inc(x_262); -lean_dec_ref(x_239); -x_263 = lean_ctor_get(x_261, 0); -lean_inc_ref(x_263); -x_264 = lean_ctor_get_uint8(x_261, sizeof(void*)*3); -x_265 = lean_ctor_get(x_261, 1); -lean_inc_ref(x_265); -x_266 = lean_ctor_get(x_261, 2); -lean_inc(x_266); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - lean_ctor_release(x_261, 2); - x_267 = x_261; -} else { - lean_dec_ref(x_261); - x_267 = lean_box(0); -} -x_268 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_58, x_12, x_263, x_262); -lean_dec_ref(x_12); -x_269 = lean_ctor_get(x_268, 0); -lean_inc(x_269); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -x_270 = lean_ctor_get(x_268, 1); -lean_inc(x_270); -lean_dec_ref(x_268); -x_271 = lean_ctor_get(x_269, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_269, 1); -lean_inc(x_272); -lean_dec_ref(x_269); -if (lean_is_scalar(x_267)) { - x_273 = lean_alloc_ctor(0, 3, 1); -} else { - x_273 = x_267; -} -lean_ctor_set(x_273, 0, x_272); -lean_ctor_set(x_273, 1, x_265); -lean_ctor_set(x_273, 2, x_266); -lean_ctor_set_uint8(x_273, sizeof(void*)*3, x_264); -x_21 = x_223; -x_22 = x_59; -x_23 = x_271; -x_24 = x_273; -x_25 = x_270; -goto block_35; -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -lean_dec(x_59); -x_274 = lean_ctor_get(x_268, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_275 = x_268; -} else { - lean_dec_ref(x_268); - x_275 = lean_box(0); -} -x_276 = lean_ctor_get(x_269, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_269, 1); -lean_inc(x_277); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_278 = x_269; -} else { - lean_dec_ref(x_269); - x_278 = lean_box(0); -} -if (lean_is_scalar(x_267)) { - x_279 = lean_alloc_ctor(0, 3, 1); -} else { - x_279 = x_267; -} -lean_ctor_set(x_279, 0, x_277); -lean_ctor_set(x_279, 1, x_265); -lean_ctor_set(x_279, 2, x_266); -lean_ctor_set_uint8(x_279, sizeof(void*)*3, x_264); -if (lean_is_scalar(x_278)) { - x_280 = lean_alloc_ctor(1, 2, 0); -} else { - x_280 = x_278; -} -lean_ctor_set(x_280, 0, x_276); -lean_ctor_set(x_280, 1, x_279); -if (lean_is_scalar(x_275)) { - x_281 = lean_alloc_ctor(0, 2, 0); -} else { - x_281 = x_275; -} -lean_ctor_set(x_281, 0, x_280); -lean_ctor_set(x_281, 1, x_274); -return x_281; -} -} -} -else -{ -lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_282 = lean_ctor_get(x_231, 1); -lean_inc(x_282); -lean_dec_ref(x_231); -x_283 = lean_ctor_get(x_232, 1); -lean_inc(x_283); -lean_dec(x_232); -x_284 = lean_ctor_get(x_55, 2); -lean_inc_ref(x_284); -lean_inc_ref(x_12); -lean_inc_ref(x_5); -lean_inc_ref(x_57); -lean_inc_ref(x_284); -lean_inc(x_228); -x_285 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_223, x_228, x_284, x_57, x_5, x_77, x_68, x_8, x_9, x_10, x_11, x_12, x_283, x_282); -lean_dec_ref(x_77); -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; -x_287 = lean_ctor_get(x_286, 0); -if (lean_obj_tag(x_287) == 0) -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; -x_288 = lean_ctor_get(x_285, 1); -lean_inc(x_288); -lean_dec_ref(x_285); -x_289 = lean_ctor_get(x_286, 1); -lean_inc(x_289); -lean_dec_ref(x_286); -x_290 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_290); -lean_dec_ref(x_67); -lean_inc_ref(x_5); -x_291 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_227, x_228, x_290, x_9, x_10, x_11, x_12, x_289, x_288); -lean_dec_ref(x_290); -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_292, 0); -x_294 = lean_unbox(x_293); -if (x_294 == 0) -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; -x_295 = lean_ctor_get(x_291, 1); -lean_inc(x_295); -lean_dec_ref(x_291); -x_296 = lean_ctor_get(x_292, 1); -lean_inc(x_296); -lean_dec(x_292); +lean_object* x_209; lean_object* x_210; lean_inc_ref(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc_ref(x_8); lean_inc_ref(x_5); -x_297 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_227, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_296, x_295); -lean_dec_ref(x_227); -x_298 = lean_ctor_get(x_297, 0); -lean_inc(x_298); -if (lean_obj_tag(x_298) == 0) +x_209 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_93, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_202, x_200); +lean_dec_ref(x_93); +x_210 = lean_ctor_get(x_209, 0); +lean_inc(x_210); +if (lean_obj_tag(x_210) == 0) { -lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_299 = lean_ctor_get(x_297, 1); -lean_inc(x_299); -lean_dec_ref(x_297); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -lean_dec_ref(x_298); -x_301 = lean_box(0); -x_302 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_284, x_223, x_301, x_8, x_9, x_10, x_11, x_12, x_300, x_299); +lean_object* x_211; lean_object* x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; +x_211 = lean_ctor_get(x_209, 1); +lean_inc(x_211); +lean_dec_ref(x_209); +x_212 = lean_ctor_get(x_210, 1); +lean_inc(x_212); +lean_dec_ref(x_210); +x_213 = lean_box(0); +x_214 = lean_unbox(x_201); +lean_dec(x_201); +x_215 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_214, x_5, x_59, x_57, x_58, x_191, x_95, x_213, x_8, x_9, x_10, x_11, x_12, x_212, x_211); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_223; -x_38 = x_302; +x_36 = x_60; +x_37 = x_95; +x_38 = x_215; goto block_43; } else { -lean_dec_ref(x_298); -lean_dec_ref(x_284); -lean_dec(x_59); -lean_dec_ref(x_57); +lean_dec_ref(x_210); +lean_dec(x_201); +lean_dec_ref(x_191); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_5); -return x_297; +return x_209; +} } } else { -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; -lean_dec_ref(x_227); -lean_dec_ref(x_65); -lean_dec_ref(x_7); -x_303 = lean_ctor_get(x_291, 1); -lean_inc(x_303); -lean_dec_ref(x_291); -x_304 = lean_ctor_get(x_292, 1); -lean_inc(x_304); -lean_dec(x_292); -x_305 = lean_box(0); -x_306 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_284, x_223, x_305, x_8, x_9, x_10, x_11, x_12, x_304, x_303); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_223; -x_38 = x_306; -goto block_43; -} -} -else -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; -lean_inc_ref(x_287); -lean_dec_ref(x_284); -lean_dec(x_228); -lean_dec_ref(x_227); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_57); +uint8_t x_216; +lean_dec_ref(x_191); +lean_dec_ref(x_93); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -42145,33 +41631,541 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_307 = lean_ctor_get(x_285, 1); -lean_inc(x_307); -lean_dec_ref(x_285); -x_308 = lean_ctor_get(x_286, 1); -lean_inc(x_308); -lean_dec_ref(x_286); -x_309 = lean_ctor_get(x_287, 0); -lean_inc(x_309); -lean_dec_ref(x_287); -x_21 = x_223; -x_22 = x_59; -x_23 = x_309; -x_24 = x_308; -x_25 = x_307; +x_216 = !lean_is_exclusive(x_198); +if (x_216 == 0) +{ +lean_object* x_217; uint8_t x_218; +x_217 = lean_ctor_get(x_198, 0); +lean_dec(x_217); +x_218 = !lean_is_exclusive(x_199); +if (x_218 == 0) +{ +return x_198; +} +else +{ +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_199, 0); +x_220 = lean_ctor_get(x_199, 1); +lean_inc(x_220); +lean_inc(x_219); +lean_dec(x_199); +x_221 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_221, 0, x_219); +lean_ctor_set(x_221, 1, x_220); +lean_ctor_set(x_198, 0, x_221); +return x_198; +} +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_222 = lean_ctor_get(x_198, 1); +lean_inc(x_222); +lean_dec(x_198); +x_223 = lean_ctor_get(x_199, 0); +lean_inc(x_223); +x_224 = lean_ctor_get(x_199, 1); +lean_inc(x_224); +if (lean_is_exclusive(x_199)) { + lean_ctor_release(x_199, 0); + lean_ctor_release(x_199, 1); + x_225 = x_199; +} else { + lean_dec_ref(x_199); + x_225 = lean_box(0); +} +if (lean_is_scalar(x_225)) { + x_226 = lean_alloc_ctor(1, 2, 0); +} else { + x_226 = x_225; +} +lean_ctor_set(x_226, 0, x_223); +lean_ctor_set(x_226, 1, x_224); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_222); +return x_227; +} +} +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; +lean_inc_ref(x_194); +lean_dec_ref(x_191); +lean_dec(x_99); +lean_dec_ref(x_93); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_228 = lean_ctor_get(x_192, 1); +lean_inc(x_228); +lean_dec_ref(x_192); +x_229 = lean_ctor_get(x_193, 1); +lean_inc(x_229); +lean_dec_ref(x_193); +x_230 = lean_ctor_get(x_194, 0); +lean_inc(x_230); +lean_dec_ref(x_194); +x_21 = x_60; +x_22 = x_95; +x_23 = x_230; +x_24 = x_229; +x_25 = x_228; goto block_35; } } else { +uint8_t x_231; +lean_dec_ref(x_191); +lean_dec(x_99); +lean_dec_ref(x_93); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_231 = !lean_is_exclusive(x_192); +if (x_231 == 0) +{ +lean_object* x_232; uint8_t x_233; +x_232 = lean_ctor_get(x_192, 0); +lean_dec(x_232); +x_233 = !lean_is_exclusive(x_193); +if (x_233 == 0) +{ +return x_192; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_234 = lean_ctor_get(x_193, 0); +x_235 = lean_ctor_get(x_193, 1); +lean_inc(x_235); +lean_inc(x_234); +lean_dec(x_193); +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +lean_ctor_set(x_192, 0, x_236); +return x_192; +} +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_237 = lean_ctor_get(x_192, 1); +lean_inc(x_237); +lean_dec(x_192); +x_238 = lean_ctor_get(x_193, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_193, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + x_240 = x_193; +} else { + lean_dec_ref(x_193); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(1, 2, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +x_242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_237); +return x_242; +} +} +} +} +else +{ +uint8_t x_243; +lean_dec_ref(x_79); +lean_dec_ref(x_68); +lean_dec_ref(x_66); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_243 = !lean_is_exclusive(x_82); +if (x_243 == 0) +{ +lean_object* x_244; lean_object* x_245; +x_244 = lean_ctor_get(x_82, 1); +if (lean_is_scalar(x_54)) { + x_245 = lean_alloc_ctor(0, 3, 1); +} else { + x_245 = x_54; +} +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_93); +lean_ctor_set(x_245, 2, x_53); +lean_ctor_set_uint8(x_245, sizeof(void*)*3, x_51); +lean_ctor_set(x_82, 1, x_245); +return x_80; +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_246 = lean_ctor_get(x_82, 0); +x_247 = lean_ctor_get(x_82, 1); +lean_inc(x_247); +lean_inc(x_246); +lean_dec(x_82); +if (lean_is_scalar(x_54)) { + x_248 = lean_alloc_ctor(0, 3, 1); +} else { + x_248 = x_54; +} +lean_ctor_set(x_248, 0, x_247); +lean_ctor_set(x_248, 1, x_93); +lean_ctor_set(x_248, 2, x_53); +lean_ctor_set_uint8(x_248, sizeof(void*)*3, x_51); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_248); +lean_ctor_set(x_80, 0, x_249); +return x_80; +} +} +} +else +{ +lean_object* x_250; uint64_t x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +x_250 = lean_ctor_get(x_93, 1); +x_251 = lean_ctor_get_uint64(x_93, sizeof(void*)*3); +x_252 = lean_ctor_get(x_93, 2); +lean_inc(x_252); +lean_inc(x_250); +lean_dec(x_93); +x_253 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; +x_254 = lean_string_append(x_4, x_253); +x_255 = lean_alloc_ctor(0, 3, 8); +lean_ctor_set(x_255, 0, x_254); +lean_ctor_set(x_255, 1, x_250); +lean_ctor_set(x_255, 2, x_252); +lean_ctor_set_uint64(x_255, sizeof(void*)*3, x_251); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; +lean_free_object(x_80); +x_256 = lean_ctor_get(x_82, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_82, 1); +lean_inc(x_257); +lean_dec_ref(x_82); +lean_inc_ref(x_255); +if (lean_is_scalar(x_54)) { + x_258 = lean_alloc_ctor(0, 3, 1); +} else { + x_258 = x_54; +} +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_255); +lean_ctor_set(x_258, 2, x_53); +lean_ctor_set_uint8(x_258, sizeof(void*)*3, x_51); +x_259 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_66, x_12, x_258, x_83); +lean_dec_ref(x_66); +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_260, 0); +x_262 = lean_unbox(x_261); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_263 = lean_ctor_get(x_259, 1); +lean_inc(x_263); +lean_dec_ref(x_259); +x_264 = lean_ctor_get(x_260, 1); +lean_inc(x_264); +lean_dec(x_260); +x_265 = lean_ctor_get(x_55, 2); +x_266 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_266); +lean_dec_ref(x_68); +lean_inc(x_256); +lean_inc_ref(x_5); +x_267 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_255, x_256, x_266, x_9, x_10, x_11, x_12, x_264, x_263); +lean_dec_ref(x_266); +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; uint8_t x_273; uint8_t x_274; +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec_ref(x_267); +x_270 = lean_ctor_get(x_268, 0); +lean_inc(x_270); +x_271 = lean_ctor_get(x_268, 1); +lean_inc(x_271); +lean_dec_ref(x_268); +x_272 = 0; +x_273 = lean_unbox(x_270); +lean_dec(x_270); +x_274 = l_Lake_instDecidableEqOutputStatus(x_273, x_272); +if (x_274 == 0) +{ +lean_object* x_275; uint8_t x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; +lean_dec(x_256); +lean_dec_ref(x_255); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_275 = lean_ctor_get(x_271, 0); +lean_inc_ref(x_275); +x_276 = lean_ctor_get_uint8(x_271, sizeof(void*)*3); +x_277 = lean_ctor_get(x_271, 1); +lean_inc_ref(x_277); +x_278 = lean_ctor_get(x_271, 2); +lean_inc(x_278); +if (lean_is_exclusive(x_271)) { + lean_ctor_release(x_271, 0); + lean_ctor_release(x_271, 1); + lean_ctor_release(x_271, 2); + x_279 = x_271; +} else { + lean_dec_ref(x_271); + x_279 = lean_box(0); +} +x_280 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_67, x_12, x_275, x_269); +lean_dec_ref(x_12); +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +if (lean_obj_tag(x_281) == 0) +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_282 = lean_ctor_get(x_280, 1); +lean_inc(x_282); +lean_dec_ref(x_280); +x_283 = lean_ctor_get(x_281, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_281, 1); +lean_inc(x_284); +lean_dec_ref(x_281); +if (lean_is_scalar(x_279)) { + x_285 = lean_alloc_ctor(0, 3, 1); +} else { + x_285 = x_279; +} +lean_ctor_set(x_285, 0, x_284); +lean_ctor_set(x_285, 1, x_277); +lean_ctor_set(x_285, 2, x_278); +lean_ctor_set_uint8(x_285, sizeof(void*)*3, x_276); +x_21 = x_60; +x_22 = x_251; +x_23 = x_283; +x_24 = x_285; +x_25 = x_282; +goto block_35; +} +else +{ +lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +lean_dec(x_60); +x_286 = lean_ctor_get(x_280, 1); +lean_inc(x_286); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + x_287 = x_280; +} else { + lean_dec_ref(x_280); + x_287 = lean_box(0); +} +x_288 = lean_ctor_get(x_281, 0); +lean_inc(x_288); +x_289 = lean_ctor_get(x_281, 1); +lean_inc(x_289); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + x_290 = x_281; +} else { + lean_dec_ref(x_281); + x_290 = lean_box(0); +} +if (lean_is_scalar(x_279)) { + x_291 = lean_alloc_ctor(0, 3, 1); +} else { + x_291 = x_279; +} +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_277); +lean_ctor_set(x_291, 2, x_278); +lean_ctor_set_uint8(x_291, sizeof(void*)*3, x_276); +if (lean_is_scalar(x_290)) { + x_292 = lean_alloc_ctor(1, 2, 0); +} else { + x_292 = x_290; +} +lean_ctor_set(x_292, 0, x_288); +lean_ctor_set(x_292, 1, x_291); +if (lean_is_scalar(x_287)) { + x_293 = lean_alloc_ctor(0, 2, 0); +} else { + x_293 = x_287; +} +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_293, 1, x_286); +return x_293; +} +} +else +{ +lean_object* x_294; lean_object* x_295; +lean_inc_ref(x_12); +lean_inc_ref(x_5); +lean_inc_ref(x_265); +x_294 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_251, x_256, x_265, x_58, x_5, x_79, x_6, x_8, x_9, x_10, x_11, x_12, x_271, x_269); +lean_dec_ref(x_79); +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +if (lean_obj_tag(x_295) == 0) +{ +lean_object* x_296; +x_296 = lean_ctor_get(x_295, 0); +if (lean_obj_tag(x_296) == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_297 = lean_ctor_get(x_294, 1); +lean_inc(x_297); +lean_dec_ref(x_294); +x_298 = lean_ctor_get(x_295, 1); +lean_inc(x_298); +lean_dec_ref(x_295); +x_299 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_255, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_298, x_297); +lean_dec_ref(x_255); +x_36 = x_60; +x_37 = x_251; +x_38 = x_299; +goto block_43; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; +lean_inc_ref(x_296); +lean_dec_ref(x_255); +lean_dec_ref(x_61); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_300 = lean_ctor_get(x_294, 1); +lean_inc(x_300); +lean_dec_ref(x_294); +x_301 = lean_ctor_get(x_295, 1); +lean_inc(x_301); +lean_dec_ref(x_295); +x_302 = lean_ctor_get(x_296, 0); +lean_inc(x_302); +lean_dec_ref(x_296); +x_21 = x_60; +x_22 = x_251; +x_23 = x_302; +x_24 = x_301; +x_25 = x_300; +goto block_35; +} +} +else +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +lean_dec_ref(x_255); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_303 = lean_ctor_get(x_294, 1); +lean_inc(x_303); +if (lean_is_exclusive(x_294)) { + lean_ctor_release(x_294, 0); + lean_ctor_release(x_294, 1); + x_304 = x_294; +} else { + lean_dec_ref(x_294); + x_304 = lean_box(0); +} +x_305 = lean_ctor_get(x_295, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_295, 1); +lean_inc(x_306); +if (lean_is_exclusive(x_295)) { + lean_ctor_release(x_295, 0); + lean_ctor_release(x_295, 1); + x_307 = x_295; +} else { + lean_dec_ref(x_295); + x_307 = lean_box(0); +} +if (lean_is_scalar(x_307)) { + x_308 = lean_alloc_ctor(1, 2, 0); +} else { + x_308 = x_307; +} +lean_ctor_set(x_308, 0, x_305); +lean_ctor_set(x_308, 1, x_306); +if (lean_is_scalar(x_304)) { + x_309 = lean_alloc_ctor(0, 2, 0); +} else { + x_309 = x_304; +} +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_303); +return x_309; +} +} +} +else +{ lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec_ref(x_284); -lean_dec(x_228); -lean_dec_ref(x_227); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec(x_59); -lean_dec_ref(x_57); +lean_dec(x_256); +lean_dec_ref(x_255); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -42179,26 +42173,26 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_310 = lean_ctor_get(x_285, 1); +x_310 = lean_ctor_get(x_267, 1); lean_inc(x_310); -if (lean_is_exclusive(x_285)) { - lean_ctor_release(x_285, 0); - lean_ctor_release(x_285, 1); - x_311 = x_285; +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_311 = x_267; } else { - lean_dec_ref(x_285); + lean_dec_ref(x_267); x_311 = lean_box(0); } -x_312 = lean_ctor_get(x_286, 0); +x_312 = lean_ctor_get(x_268, 0); lean_inc(x_312); -x_313 = lean_ctor_get(x_286, 1); +x_313 = lean_ctor_get(x_268, 1); lean_inc(x_313); -if (lean_is_exclusive(x_286)) { - lean_ctor_release(x_286, 0); - lean_ctor_release(x_286, 1); - x_314 = x_286; +if (lean_is_exclusive(x_268)) { + lean_ctor_release(x_268, 0); + lean_ctor_release(x_268, 1); + x_314 = x_268; } else { - lean_dec_ref(x_286); + lean_dec_ref(x_268); x_314 = lean_box(0); } if (lean_is_scalar(x_314)) { @@ -42218,519 +42212,140 @@ lean_ctor_set(x_316, 1, x_310); return x_316; } } -} else { lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec_ref(x_77); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_62); -lean_dec(x_59); -lean_dec_ref(x_57); -lean_dec_ref(x_12); +x_317 = lean_ctor_get(x_259, 1); +lean_inc(x_317); +lean_dec_ref(x_259); +x_318 = lean_ctor_get(x_260, 1); +lean_inc(x_318); +lean_dec(x_260); +x_319 = lean_ctor_get(x_55, 2); +lean_inc_ref(x_319); +lean_inc_ref(x_12); +lean_inc_ref(x_5); +lean_inc_ref(x_58); +lean_inc_ref(x_319); +lean_inc(x_256); +x_320 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_251, x_256, x_319, x_58, x_5, x_79, x_65, x_8, x_9, x_10, x_11, x_12, x_318, x_317); +lean_dec_ref(x_79); +x_321 = lean_ctor_get(x_320, 0); +lean_inc(x_321); +if (lean_obj_tag(x_321) == 0) +{ +lean_object* x_322; +x_322 = lean_ctor_get(x_321, 0); +if (lean_obj_tag(x_322) == 0) +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; +x_323 = lean_ctor_get(x_320, 1); +lean_inc(x_323); +lean_dec_ref(x_320); +x_324 = lean_ctor_get(x_321, 1); +lean_inc(x_324); +lean_dec_ref(x_321); +x_325 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_325); +lean_dec_ref(x_68); +lean_inc_ref(x_5); +x_326 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_255, x_256, x_325, x_9, x_10, x_11, x_12, x_324, x_323); +lean_dec_ref(x_325); +x_327 = lean_ctor_get(x_326, 0); +lean_inc(x_327); +if (lean_obj_tag(x_327) == 0) +{ +lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; uint8_t x_332; uint8_t x_333; +x_328 = lean_ctor_get(x_326, 1); +lean_inc(x_328); +lean_dec_ref(x_326); +x_329 = lean_ctor_get(x_327, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_327, 1); +lean_inc(x_330); +lean_dec_ref(x_327); +x_331 = 0; +x_332 = lean_unbox(x_329); +x_333 = l_Lake_instDecidableEqOutputStatus(x_332, x_331); +if (x_333 == 0) +{ +lean_object* x_334; uint8_t x_335; lean_object* x_336; +lean_dec_ref(x_255); +lean_dec_ref(x_61); +lean_dec_ref(x_7); +x_334 = lean_box(0); +x_335 = lean_unbox(x_329); +lean_dec(x_329); +x_336 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_335, x_5, x_59, x_57, x_58, x_319, x_251, x_334, x_8, x_9, x_10, x_11, x_12, x_330, x_328); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_317 = lean_ctor_get(x_80, 0); -lean_inc(x_317); -x_318 = lean_ctor_get(x_80, 1); -lean_inc(x_318); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_319 = x_80; -} else { - lean_dec_ref(x_80); - x_319 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_320 = lean_alloc_ctor(0, 3, 1); -} else { - x_320 = x_54; -} -lean_ctor_set(x_320, 0, x_318); -lean_ctor_set(x_320, 1, x_227); -lean_ctor_set(x_320, 2, x_53); -lean_ctor_set_uint8(x_320, sizeof(void*)*3, x_51); -if (lean_is_scalar(x_319)) { - x_321 = lean_alloc_ctor(1, 2, 0); -} else { - x_321 = x_319; -} -lean_ctor_set(x_321, 0, x_317); -lean_ctor_set(x_321, 1, x_320); -lean_ctor_set(x_78, 0, x_321); -return x_78; -} -} -} -else -{ -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; uint64_t x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; -x_322 = lean_ctor_get(x_78, 0); -x_323 = lean_ctor_get(x_78, 1); -lean_inc(x_323); -lean_inc(x_322); -lean_dec(x_78); -x_324 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__0; -x_325 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__1; -x_326 = lean_array_to_list(x_63); -x_327 = l_List_toString___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(x_326); -lean_dec(x_326); -x_328 = lean_string_append(x_325, x_327); -lean_dec_ref(x_327); -x_329 = lean_string_append(x_324, x_328); -lean_dec_ref(x_328); -x_330 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0; -x_331 = l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3; -x_332 = lean_alloc_ctor(0, 3, 8); -lean_ctor_set(x_332, 0, x_329); -lean_ctor_set(x_332, 1, x_330); -lean_ctor_set(x_332, 2, x_331); -lean_ctor_set_uint64(x_332, sizeof(void*)*3, x_71); -x_333 = l_Lake_BuildTrace_mix(x_66, x_332); -x_334 = lean_ctor_get(x_333, 1); -lean_inc_ref(x_334); -x_335 = lean_ctor_get_uint64(x_333, sizeof(void*)*3); -x_336 = lean_ctor_get(x_333, 2); -lean_inc_ref(x_336); -if (lean_is_exclusive(x_333)) { - lean_ctor_release(x_333, 0); - lean_ctor_release(x_333, 1); - lean_ctor_release(x_333, 2); - x_337 = x_333; -} else { - lean_dec_ref(x_333); - x_337 = lean_box(0); -} -x_338 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; -x_339 = lean_string_append(x_4, x_338); -if (lean_is_scalar(x_337)) { - x_340 = lean_alloc_ctor(0, 3, 8); -} else { - x_340 = x_337; -} -lean_ctor_set(x_340, 0, x_339); -lean_ctor_set(x_340, 1, x_334); -lean_ctor_set(x_340, 2, x_336); -lean_ctor_set_uint64(x_340, sizeof(void*)*3, x_335); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; -x_341 = lean_ctor_get(x_322, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_322, 1); -lean_inc(x_342); -lean_dec_ref(x_322); -lean_inc_ref(x_340); -if (lean_is_scalar(x_54)) { - x_343 = lean_alloc_ctor(0, 3, 1); -} else { - x_343 = x_54; -} -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_340); -lean_ctor_set(x_343, 2, x_53); -lean_ctor_set_uint8(x_343, sizeof(void*)*3, x_51); -x_344 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_62, x_12, x_343, x_323); -lean_dec_ref(x_62); -x_345 = lean_ctor_get(x_344, 0); -lean_inc(x_345); -x_346 = lean_ctor_get(x_345, 0); -x_347 = lean_unbox(x_346); -if (x_347 == 0) -{ -lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; uint8_t x_355; -x_348 = lean_ctor_get(x_344, 1); -lean_inc(x_348); -lean_dec_ref(x_344); -x_349 = lean_ctor_get(x_345, 1); -lean_inc(x_349); -lean_dec(x_345); -x_350 = lean_ctor_get(x_55, 2); -x_351 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_351); -lean_dec_ref(x_67); -lean_inc(x_341); -lean_inc_ref(x_5); -x_352 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_340, x_341, x_351, x_9, x_10, x_11, x_12, x_349, x_348); -lean_dec_ref(x_351); -x_353 = lean_ctor_get(x_352, 0); -lean_inc(x_353); -x_354 = lean_ctor_get(x_353, 0); -x_355 = lean_unbox(x_354); -if (x_355 == 0) -{ -lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; -x_356 = lean_ctor_get(x_352, 1); -lean_inc(x_356); -lean_dec_ref(x_352); -x_357 = lean_ctor_get(x_353, 1); -lean_inc(x_357); -lean_dec(x_353); -lean_inc_ref(x_12); -lean_inc_ref(x_5); -lean_inc_ref(x_350); -x_358 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_335, x_341, x_350, x_57, x_5, x_77, x_6, x_8, x_9, x_10, x_11, x_12, x_357, x_356); -lean_dec_ref(x_77); -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -if (lean_obj_tag(x_359) == 0) -{ -lean_object* x_360; -x_360 = lean_ctor_get(x_359, 0); -if (lean_obj_tag(x_360) == 0) -{ -lean_object* x_361; lean_object* x_362; lean_object* x_363; -x_361 = lean_ctor_get(x_358, 1); -lean_inc(x_361); -lean_dec_ref(x_358); -x_362 = lean_ctor_get(x_359, 1); -lean_inc(x_362); -lean_dec_ref(x_359); -x_363 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_340, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_362, x_361); -lean_dec_ref(x_340); -x_36 = x_59; -x_37 = x_335; -x_38 = x_363; +x_36 = x_60; +x_37 = x_251; +x_38 = x_336; goto block_43; } else { -lean_object* x_364; lean_object* x_365; lean_object* x_366; -lean_inc_ref(x_360); -lean_dec_ref(x_340); -lean_dec_ref(x_65); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_364 = lean_ctor_get(x_358, 1); -lean_inc(x_364); -lean_dec_ref(x_358); -x_365 = lean_ctor_get(x_359, 1); -lean_inc(x_365); -lean_dec_ref(x_359); -x_366 = lean_ctor_get(x_360, 0); -lean_inc(x_366); -lean_dec_ref(x_360); -x_21 = x_335; -x_22 = x_59; -x_23 = x_366; -x_24 = x_365; -x_25 = x_364; -goto block_35; -} -} -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; -lean_dec_ref(x_340); -lean_dec_ref(x_65); -lean_dec(x_59); -lean_dec_ref(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -lean_dec_ref(x_5); -x_367 = lean_ctor_get(x_358, 1); -lean_inc(x_367); -if (lean_is_exclusive(x_358)) { - lean_ctor_release(x_358, 0); - lean_ctor_release(x_358, 1); - x_368 = x_358; -} else { - lean_dec_ref(x_358); - x_368 = lean_box(0); -} -x_369 = lean_ctor_get(x_359, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_359, 1); -lean_inc(x_370); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - x_371 = x_359; -} else { - lean_dec_ref(x_359); - x_371 = lean_box(0); -} -if (lean_is_scalar(x_371)) { - x_372 = lean_alloc_ctor(1, 2, 0); -} else { - x_372 = x_371; -} -lean_ctor_set(x_372, 0, x_369); -lean_ctor_set(x_372, 1, x_370); -if (lean_is_scalar(x_368)) { - x_373 = lean_alloc_ctor(0, 2, 0); -} else { - x_373 = x_368; -} -lean_ctor_set(x_373, 0, x_372); -lean_ctor_set(x_373, 1, x_367); -return x_373; -} -} -else -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_341); -lean_dec_ref(x_340); -lean_dec_ref(x_77); -lean_dec_ref(x_65); -lean_dec_ref(x_57); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -lean_dec_ref(x_7); -x_374 = lean_ctor_get(x_353, 1); -lean_inc(x_374); -lean_dec(x_353); -x_375 = lean_ctor_get(x_352, 1); -lean_inc(x_375); -lean_dec_ref(x_352); -x_376 = lean_ctor_get(x_374, 0); -lean_inc_ref(x_376); -x_377 = lean_ctor_get_uint8(x_374, sizeof(void*)*3); -x_378 = lean_ctor_get(x_374, 1); -lean_inc_ref(x_378); -x_379 = lean_ctor_get(x_374, 2); -lean_inc(x_379); -if (lean_is_exclusive(x_374)) { - lean_ctor_release(x_374, 0); - lean_ctor_release(x_374, 1); - lean_ctor_release(x_374, 2); - x_380 = x_374; -} else { - lean_dec_ref(x_374); - x_380 = lean_box(0); -} -x_381 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_58, x_12, x_376, x_375); -lean_dec_ref(x_12); -x_382 = lean_ctor_get(x_381, 0); -lean_inc(x_382); -if (lean_obj_tag(x_382) == 0) -{ -lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_383 = lean_ctor_get(x_381, 1); -lean_inc(x_383); -lean_dec_ref(x_381); -x_384 = lean_ctor_get(x_382, 0); -lean_inc(x_384); -x_385 = lean_ctor_get(x_382, 1); -lean_inc(x_385); -lean_dec_ref(x_382); -if (lean_is_scalar(x_380)) { - x_386 = lean_alloc_ctor(0, 3, 1); -} else { - x_386 = x_380; -} -lean_ctor_set(x_386, 0, x_385); -lean_ctor_set(x_386, 1, x_378); -lean_ctor_set(x_386, 2, x_379); -lean_ctor_set_uint8(x_386, sizeof(void*)*3, x_377); -x_21 = x_335; -x_22 = x_59; -x_23 = x_384; -x_24 = x_386; -x_25 = x_383; -goto block_35; -} -else -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -lean_dec(x_59); -x_387 = lean_ctor_get(x_381, 1); -lean_inc(x_387); -if (lean_is_exclusive(x_381)) { - lean_ctor_release(x_381, 0); - lean_ctor_release(x_381, 1); - x_388 = x_381; -} else { - lean_dec_ref(x_381); - x_388 = lean_box(0); -} -x_389 = lean_ctor_get(x_382, 0); -lean_inc(x_389); -x_390 = lean_ctor_get(x_382, 1); -lean_inc(x_390); -if (lean_is_exclusive(x_382)) { - lean_ctor_release(x_382, 0); - lean_ctor_release(x_382, 1); - x_391 = x_382; -} else { - lean_dec_ref(x_382); - x_391 = lean_box(0); -} -if (lean_is_scalar(x_380)) { - x_392 = lean_alloc_ctor(0, 3, 1); -} else { - x_392 = x_380; -} -lean_ctor_set(x_392, 0, x_390); -lean_ctor_set(x_392, 1, x_378); -lean_ctor_set(x_392, 2, x_379); -lean_ctor_set_uint8(x_392, sizeof(void*)*3, x_377); -if (lean_is_scalar(x_391)) { - x_393 = lean_alloc_ctor(1, 2, 0); -} else { - x_393 = x_391; -} -lean_ctor_set(x_393, 0, x_389); -lean_ctor_set(x_393, 1, x_392); -if (lean_is_scalar(x_388)) { - x_394 = lean_alloc_ctor(0, 2, 0); -} else { - x_394 = x_388; -} -lean_ctor_set(x_394, 0, x_393); -lean_ctor_set(x_394, 1, x_387); -return x_394; -} -} -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; -x_395 = lean_ctor_get(x_344, 1); -lean_inc(x_395); -lean_dec_ref(x_344); -x_396 = lean_ctor_get(x_345, 1); -lean_inc(x_396); -lean_dec(x_345); -x_397 = lean_ctor_get(x_55, 2); -lean_inc_ref(x_397); -lean_inc_ref(x_12); -lean_inc_ref(x_5); -lean_inc_ref(x_57); -lean_inc_ref(x_397); -lean_inc(x_341); -x_398 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_335, x_341, x_397, x_57, x_5, x_77, x_68, x_8, x_9, x_10, x_11, x_12, x_396, x_395); -lean_dec_ref(x_77); -x_399 = lean_ctor_get(x_398, 0); -lean_inc(x_399); -if (lean_obj_tag(x_399) == 0) -{ -lean_object* x_400; -x_400 = lean_ctor_get(x_399, 0); -if (lean_obj_tag(x_400) == 0) -{ -lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; uint8_t x_407; -x_401 = lean_ctor_get(x_398, 1); -lean_inc(x_401); -lean_dec_ref(x_398); -x_402 = lean_ctor_get(x_399, 1); -lean_inc(x_402); -lean_dec_ref(x_399); -x_403 = lean_ctor_get(x_67, 2); -lean_inc_ref(x_403); -lean_dec_ref(x_67); -lean_inc_ref(x_5); -x_404 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_340, x_341, x_403, x_9, x_10, x_11, x_12, x_402, x_401); -lean_dec_ref(x_403); -x_405 = lean_ctor_get(x_404, 0); -lean_inc(x_405); -x_406 = lean_ctor_get(x_405, 0); -x_407 = lean_unbox(x_406); -if (x_407 == 0) -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; -x_408 = lean_ctor_get(x_404, 1); -lean_inc(x_408); -lean_dec_ref(x_404); -x_409 = lean_ctor_get(x_405, 1); -lean_inc(x_409); -lean_dec(x_405); +lean_object* x_337; lean_object* x_338; lean_inc_ref(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc_ref(x_8); lean_inc_ref(x_5); -x_410 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_340, x_65, x_7, x_8, x_9, x_10, x_11, x_12, x_409, x_408); -lean_dec_ref(x_340); -x_411 = lean_ctor_get(x_410, 0); -lean_inc(x_411); -if (lean_obj_tag(x_411) == 0) +x_337 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_255, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_330, x_328); +lean_dec_ref(x_255); +x_338 = lean_ctor_get(x_337, 0); +lean_inc(x_338); +if (lean_obj_tag(x_338) == 0) { -lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; -x_412 = lean_ctor_get(x_410, 1); -lean_inc(x_412); -lean_dec_ref(x_410); -x_413 = lean_ctor_get(x_411, 1); -lean_inc(x_413); -lean_dec_ref(x_411); -x_414 = lean_box(0); -x_415 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_397, x_335, x_414, x_8, x_9, x_10, x_11, x_12, x_413, x_412); +lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; lean_object* x_343; +x_339 = lean_ctor_get(x_337, 1); +lean_inc(x_339); +lean_dec_ref(x_337); +x_340 = lean_ctor_get(x_338, 1); +lean_inc(x_340); +lean_dec_ref(x_338); +x_341 = lean_box(0); +x_342 = lean_unbox(x_329); +lean_dec(x_329); +x_343 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_342, x_5, x_59, x_57, x_58, x_319, x_251, x_341, x_8, x_9, x_10, x_11, x_12, x_340, x_339); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_335; -x_38 = x_415; +x_36 = x_60; +x_37 = x_251; +x_38 = x_343; goto block_43; } else { -lean_dec_ref(x_411); -lean_dec_ref(x_397); -lean_dec(x_59); -lean_dec_ref(x_57); +lean_dec_ref(x_338); +lean_dec(x_329); +lean_dec_ref(x_319); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_5); -return x_410; +return x_337; +} } } else { -lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; -lean_dec_ref(x_340); -lean_dec_ref(x_65); -lean_dec_ref(x_7); -x_416 = lean_ctor_get(x_404, 1); -lean_inc(x_416); -lean_dec_ref(x_404); -x_417 = lean_ctor_get(x_405, 1); -lean_inc(x_417); -lean_dec(x_405); -x_418 = lean_box(0); -x_419 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_5, x_57, x_397, x_335, x_418, x_8, x_9, x_10, x_11, x_12, x_417, x_416); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec_ref(x_8); -x_36 = x_59; -x_37 = x_335; -x_38 = x_419; -goto block_43; -} -} -else -{ -lean_object* x_420; lean_object* x_421; lean_object* x_422; -lean_inc_ref(x_400); -lean_dec_ref(x_397); -lean_dec(x_341); -lean_dec_ref(x_340); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_57); +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; +lean_dec_ref(x_319); +lean_dec_ref(x_255); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -42738,33 +42353,89 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_420 = lean_ctor_get(x_398, 1); -lean_inc(x_420); -lean_dec_ref(x_398); -x_421 = lean_ctor_get(x_399, 1); -lean_inc(x_421); -lean_dec_ref(x_399); -x_422 = lean_ctor_get(x_400, 0); -lean_inc(x_422); -lean_dec_ref(x_400); -x_21 = x_335; -x_22 = x_59; -x_23 = x_422; -x_24 = x_421; -x_25 = x_420; +x_344 = lean_ctor_get(x_326, 1); +lean_inc(x_344); +if (lean_is_exclusive(x_326)) { + lean_ctor_release(x_326, 0); + lean_ctor_release(x_326, 1); + x_345 = x_326; +} else { + lean_dec_ref(x_326); + x_345 = lean_box(0); +} +x_346 = lean_ctor_get(x_327, 0); +lean_inc(x_346); +x_347 = lean_ctor_get(x_327, 1); +lean_inc(x_347); +if (lean_is_exclusive(x_327)) { + lean_ctor_release(x_327, 0); + lean_ctor_release(x_327, 1); + x_348 = x_327; +} else { + lean_dec_ref(x_327); + x_348 = lean_box(0); +} +if (lean_is_scalar(x_348)) { + x_349 = lean_alloc_ctor(1, 2, 0); +} else { + x_349 = x_348; +} +lean_ctor_set(x_349, 0, x_346); +lean_ctor_set(x_349, 1, x_347); +if (lean_is_scalar(x_345)) { + x_350 = lean_alloc_ctor(0, 2, 0); +} else { + x_350 = x_345; +} +lean_ctor_set(x_350, 0, x_349); +lean_ctor_set(x_350, 1, x_344); +return x_350; +} +} +else +{ +lean_object* x_351; lean_object* x_352; lean_object* x_353; +lean_inc_ref(x_322); +lean_dec_ref(x_319); +lean_dec(x_256); +lean_dec_ref(x_255); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_351 = lean_ctor_get(x_320, 1); +lean_inc(x_351); +lean_dec_ref(x_320); +x_352 = lean_ctor_get(x_321, 1); +lean_inc(x_352); +lean_dec_ref(x_321); +x_353 = lean_ctor_get(x_322, 0); +lean_inc(x_353); +lean_dec_ref(x_322); +x_21 = x_60; +x_22 = x_251; +x_23 = x_353; +x_24 = x_352; +x_25 = x_351; goto block_35; } } else { -lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -lean_dec_ref(x_397); -lean_dec(x_341); -lean_dec_ref(x_340); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec(x_59); -lean_dec_ref(x_57); +lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; +lean_dec_ref(x_319); +lean_dec(x_256); +lean_dec_ref(x_255); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -42772,55 +42443,55 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_423 = lean_ctor_get(x_398, 1); -lean_inc(x_423); -if (lean_is_exclusive(x_398)) { - lean_ctor_release(x_398, 0); - lean_ctor_release(x_398, 1); - x_424 = x_398; +x_354 = lean_ctor_get(x_320, 1); +lean_inc(x_354); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_355 = x_320; } else { - lean_dec_ref(x_398); - x_424 = lean_box(0); + lean_dec_ref(x_320); + x_355 = lean_box(0); } -x_425 = lean_ctor_get(x_399, 0); -lean_inc(x_425); -x_426 = lean_ctor_get(x_399, 1); -lean_inc(x_426); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_427 = x_399; +x_356 = lean_ctor_get(x_321, 0); +lean_inc(x_356); +x_357 = lean_ctor_get(x_321, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_321)) { + lean_ctor_release(x_321, 0); + lean_ctor_release(x_321, 1); + x_358 = x_321; } else { - lean_dec_ref(x_399); - x_427 = lean_box(0); + lean_dec_ref(x_321); + x_358 = lean_box(0); } -if (lean_is_scalar(x_427)) { - x_428 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_358)) { + x_359 = lean_alloc_ctor(1, 2, 0); } else { - x_428 = x_427; + x_359 = x_358; } -lean_ctor_set(x_428, 0, x_425); -lean_ctor_set(x_428, 1, x_426); -if (lean_is_scalar(x_424)) { - x_429 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_359, 0, x_356); +lean_ctor_set(x_359, 1, x_357); +if (lean_is_scalar(x_355)) { + x_360 = lean_alloc_ctor(0, 2, 0); } else { - x_429 = x_424; + x_360 = x_355; } -lean_ctor_set(x_429, 0, x_428); -lean_ctor_set(x_429, 1, x_423); -return x_429; +lean_ctor_set(x_360, 0, x_359); +lean_ctor_set(x_360, 1, x_354); +return x_360; } } } else { -lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; -lean_dec_ref(x_77); -lean_dec_ref(x_67); -lean_dec_ref(x_65); -lean_dec_ref(x_62); -lean_dec(x_59); -lean_dec_ref(x_57); +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec_ref(x_79); +lean_dec_ref(x_68); +lean_dec_ref(x_66); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); lean_dec_ref(x_12); lean_dec(x_11); lean_dec(x_10); @@ -42828,229 +42499,958 @@ lean_dec(x_9); lean_dec_ref(x_8); lean_dec_ref(x_7); lean_dec_ref(x_5); -x_430 = lean_ctor_get(x_322, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_322, 1); -lean_inc(x_431); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - x_432 = x_322; +x_361 = lean_ctor_get(x_82, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_82, 1); +lean_inc(x_362); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + x_363 = x_82; } else { - lean_dec_ref(x_322); - x_432 = lean_box(0); + lean_dec_ref(x_82); + x_363 = lean_box(0); } if (lean_is_scalar(x_54)) { - x_433 = lean_alloc_ctor(0, 3, 1); + x_364 = lean_alloc_ctor(0, 3, 1); } else { - x_433 = x_54; + x_364 = x_54; } -lean_ctor_set(x_433, 0, x_431); -lean_ctor_set(x_433, 1, x_340); -lean_ctor_set(x_433, 2, x_53); -lean_ctor_set_uint8(x_433, sizeof(void*)*3, x_51); -if (lean_is_scalar(x_432)) { - x_434 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_364, 0, x_362); +lean_ctor_set(x_364, 1, x_255); +lean_ctor_set(x_364, 2, x_53); +lean_ctor_set_uint8(x_364, sizeof(void*)*3, x_51); +if (lean_is_scalar(x_363)) { + x_365 = lean_alloc_ctor(1, 2, 0); } else { - x_434 = x_432; + x_365 = x_363; } -lean_ctor_set(x_434, 0, x_430); -lean_ctor_set(x_434, 1, x_433); -x_435 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_435, 0, x_434); -lean_ctor_set(x_435, 1, x_323); -return x_435; +lean_ctor_set(x_365, 0, x_361); +lean_ctor_set(x_365, 1, x_364); +lean_ctor_set(x_80, 0, x_365); +return x_80; } } } -block_467: +else { -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; uint8_t x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; uint64_t x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; -x_444 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_444); -x_445 = lean_ctor_get(x_444, 4); -x_446 = lean_ctor_get(x_445, 1); -x_447 = lean_ctor_get(x_2, 2); +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint64_t x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_366 = lean_ctor_get(x_80, 0); +x_367 = lean_ctor_get(x_80, 1); +lean_inc(x_367); +lean_inc(x_366); +lean_dec(x_80); +x_368 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__0; +x_369 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__1; +x_370 = lean_array_to_list(x_72); +x_371 = l_List_toString___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__0(x_370); +lean_dec(x_370); +x_372 = lean_string_append(x_369, x_371); +lean_dec_ref(x_371); +x_373 = lean_string_append(x_368, x_372); +lean_dec_ref(x_372); +x_374 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__0; +x_375 = l_Std_DTreeMap_Internal_Impl_foldlM___at___Std_DTreeMap_Internal_Impl_foldl___at_____private_Lake_Build_Module_0__Lake_traceOptions_spec__0_spec__0___closed__3; +x_376 = lean_alloc_ctor(0, 3, 8); +lean_ctor_set(x_376, 0, x_373); +lean_ctor_set(x_376, 1, x_374); +lean_ctor_set(x_376, 2, x_375); +lean_ctor_set_uint64(x_376, sizeof(void*)*3, x_73); +x_377 = l_Lake_BuildTrace_mix(x_64, x_376); +x_378 = lean_ctor_get(x_377, 1); +lean_inc_ref(x_378); +x_379 = lean_ctor_get_uint64(x_377, sizeof(void*)*3); +x_380 = lean_ctor_get(x_377, 2); +lean_inc_ref(x_380); +if (lean_is_exclusive(x_377)) { + lean_ctor_release(x_377, 0); + lean_ctor_release(x_377, 1); + lean_ctor_release(x_377, 2); + x_381 = x_377; +} else { + lean_dec_ref(x_377); + x_381 = lean_box(0); +} +x_382 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__2; +x_383 = lean_string_append(x_4, x_382); +if (lean_is_scalar(x_381)) { + x_384 = lean_alloc_ctor(0, 3, 8); +} else { + x_384 = x_381; +} +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_384, 1, x_378); +lean_ctor_set(x_384, 2, x_380); +lean_ctor_set_uint64(x_384, sizeof(void*)*3, x_379); +if (lean_obj_tag(x_366) == 0) +{ +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; uint8_t x_391; +x_385 = lean_ctor_get(x_366, 0); +lean_inc(x_385); +x_386 = lean_ctor_get(x_366, 1); +lean_inc(x_386); +lean_dec_ref(x_366); +lean_inc_ref(x_384); +if (lean_is_scalar(x_54)) { + x_387 = lean_alloc_ctor(0, 3, 1); +} else { + x_387 = x_54; +} +lean_ctor_set(x_387, 0, x_386); +lean_ctor_set(x_387, 1, x_384); +lean_ctor_set(x_387, 2, x_53); +lean_ctor_set_uint8(x_387, sizeof(void*)*3, x_51); +x_388 = l_Lake_Package_isArtifactCacheEnabled___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__2___redArg(x_66, x_12, x_387, x_367); +lean_dec_ref(x_66); +x_389 = lean_ctor_get(x_388, 0); +lean_inc(x_389); +x_390 = lean_ctor_get(x_389, 0); +x_391 = lean_unbox(x_390); +if (x_391 == 0) +{ +lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_392 = lean_ctor_get(x_388, 1); +lean_inc(x_392); +lean_dec_ref(x_388); +x_393 = lean_ctor_get(x_389, 1); +lean_inc(x_393); +lean_dec(x_389); +x_394 = lean_ctor_get(x_55, 2); +x_395 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_395); +lean_dec_ref(x_68); +lean_inc(x_385); +lean_inc_ref(x_5); +x_396 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_384, x_385, x_395, x_9, x_10, x_11, x_12, x_393, x_392); +lean_dec_ref(x_395); +x_397 = lean_ctor_get(x_396, 0); +lean_inc(x_397); +if (lean_obj_tag(x_397) == 0) +{ +lean_object* x_398; lean_object* x_399; lean_object* x_400; uint8_t x_401; uint8_t x_402; uint8_t x_403; +x_398 = lean_ctor_get(x_396, 1); +lean_inc(x_398); +lean_dec_ref(x_396); +x_399 = lean_ctor_get(x_397, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_397, 1); +lean_inc(x_400); +lean_dec_ref(x_397); +x_401 = 0; +x_402 = lean_unbox(x_399); +lean_dec(x_399); +x_403 = l_Lake_instDecidableEqOutputStatus(x_402, x_401); +if (x_403 == 0) +{ +lean_object* x_404; uint8_t x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +lean_dec(x_385); +lean_dec_ref(x_384); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +x_404 = lean_ctor_get(x_400, 0); +lean_inc_ref(x_404); +x_405 = lean_ctor_get_uint8(x_400, sizeof(void*)*3); +x_406 = lean_ctor_get(x_400, 1); +lean_inc_ref(x_406); +x_407 = lean_ctor_get(x_400, 2); +lean_inc(x_407); +if (lean_is_exclusive(x_400)) { + lean_ctor_release(x_400, 0); + lean_ctor_release(x_400, 1); + lean_ctor_release(x_400, 2); + x_408 = x_400; +} else { + lean_dec_ref(x_400); + x_408 = lean_box(0); +} +x_409 = l___private_Lake_Build_Module_0__Lake_Module_computeArtifacts___redArg(x_5, x_67, x_12, x_404, x_398); +lean_dec_ref(x_12); +x_410 = lean_ctor_get(x_409, 0); +lean_inc(x_410); +if (lean_obj_tag(x_410) == 0) +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_411 = lean_ctor_get(x_409, 1); +lean_inc(x_411); +lean_dec_ref(x_409); +x_412 = lean_ctor_get(x_410, 0); +lean_inc(x_412); +x_413 = lean_ctor_get(x_410, 1); +lean_inc(x_413); +lean_dec_ref(x_410); +if (lean_is_scalar(x_408)) { + x_414 = lean_alloc_ctor(0, 3, 1); +} else { + x_414 = x_408; +} +lean_ctor_set(x_414, 0, x_413); +lean_ctor_set(x_414, 1, x_406); +lean_ctor_set(x_414, 2, x_407); +lean_ctor_set_uint8(x_414, sizeof(void*)*3, x_405); +x_21 = x_60; +x_22 = x_379; +x_23 = x_412; +x_24 = x_414; +x_25 = x_411; +goto block_35; +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; +lean_dec(x_60); +x_415 = lean_ctor_get(x_409, 1); +lean_inc(x_415); +if (lean_is_exclusive(x_409)) { + lean_ctor_release(x_409, 0); + lean_ctor_release(x_409, 1); + x_416 = x_409; +} else { + lean_dec_ref(x_409); + x_416 = lean_box(0); +} +x_417 = lean_ctor_get(x_410, 0); +lean_inc(x_417); +x_418 = lean_ctor_get(x_410, 1); +lean_inc(x_418); +if (lean_is_exclusive(x_410)) { + lean_ctor_release(x_410, 0); + lean_ctor_release(x_410, 1); + x_419 = x_410; +} else { + lean_dec_ref(x_410); + x_419 = lean_box(0); +} +if (lean_is_scalar(x_408)) { + x_420 = lean_alloc_ctor(0, 3, 1); +} else { + x_420 = x_408; +} +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_406); +lean_ctor_set(x_420, 2, x_407); +lean_ctor_set_uint8(x_420, sizeof(void*)*3, x_405); +if (lean_is_scalar(x_419)) { + x_421 = lean_alloc_ctor(1, 2, 0); +} else { + x_421 = x_419; +} +lean_ctor_set(x_421, 0, x_417); +lean_ctor_set(x_421, 1, x_420); +if (lean_is_scalar(x_416)) { + x_422 = lean_alloc_ctor(0, 2, 0); +} else { + x_422 = x_416; +} +lean_ctor_set(x_422, 0, x_421); +lean_ctor_set(x_422, 1, x_415); +return x_422; +} +} +else +{ +lean_object* x_423; lean_object* x_424; +lean_inc_ref(x_12); +lean_inc_ref(x_5); +lean_inc_ref(x_394); +x_423 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_379, x_385, x_394, x_58, x_5, x_79, x_6, x_8, x_9, x_10, x_11, x_12, x_400, x_398); +lean_dec_ref(x_79); +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +if (lean_obj_tag(x_424) == 0) +{ +lean_object* x_425; +x_425 = lean_ctor_get(x_424, 0); +if (lean_obj_tag(x_425) == 0) +{ +lean_object* x_426; lean_object* x_427; lean_object* x_428; +x_426 = lean_ctor_get(x_423, 1); +lean_inc(x_426); +lean_dec_ref(x_423); +x_427 = lean_ctor_get(x_424, 1); +lean_inc(x_427); +lean_dec_ref(x_424); +x_428 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_384, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_427, x_426); +lean_dec_ref(x_384); +x_36 = x_60; +x_37 = x_379; +x_38 = x_428; +goto block_43; +} +else +{ +lean_object* x_429; lean_object* x_430; lean_object* x_431; +lean_inc_ref(x_425); +lean_dec_ref(x_384); +lean_dec_ref(x_61); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_429 = lean_ctor_get(x_423, 1); +lean_inc(x_429); +lean_dec_ref(x_423); +x_430 = lean_ctor_get(x_424, 1); +lean_inc(x_430); +lean_dec_ref(x_424); +x_431 = lean_ctor_get(x_425, 0); +lean_inc(x_431); +lean_dec_ref(x_425); +x_21 = x_60; +x_22 = x_379; +x_23 = x_431; +x_24 = x_430; +x_25 = x_429; +goto block_35; +} +} +else +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_dec_ref(x_384); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_432 = lean_ctor_get(x_423, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_433 = x_423; +} else { + lean_dec_ref(x_423); + x_433 = lean_box(0); +} +x_434 = lean_ctor_get(x_424, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_424, 1); +lean_inc(x_435); +if (lean_is_exclusive(x_424)) { + lean_ctor_release(x_424, 0); + lean_ctor_release(x_424, 1); + x_436 = x_424; +} else { + lean_dec_ref(x_424); + x_436 = lean_box(0); +} +if (lean_is_scalar(x_436)) { + x_437 = lean_alloc_ctor(1, 2, 0); +} else { + x_437 = x_436; +} +lean_ctor_set(x_437, 0, x_434); +lean_ctor_set(x_437, 1, x_435); +if (lean_is_scalar(x_433)) { + x_438 = lean_alloc_ctor(0, 2, 0); +} else { + x_438 = x_433; +} +lean_ctor_set(x_438, 0, x_437); +lean_ctor_set(x_438, 1, x_432); +return x_438; +} +} +} +else +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +lean_dec(x_385); +lean_dec_ref(x_384); +lean_dec_ref(x_79); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_439 = lean_ctor_get(x_396, 1); +lean_inc(x_439); +if (lean_is_exclusive(x_396)) { + lean_ctor_release(x_396, 0); + lean_ctor_release(x_396, 1); + x_440 = x_396; +} else { + lean_dec_ref(x_396); + x_440 = lean_box(0); +} +x_441 = lean_ctor_get(x_397, 0); +lean_inc(x_441); +x_442 = lean_ctor_get(x_397, 1); +lean_inc(x_442); +if (lean_is_exclusive(x_397)) { + lean_ctor_release(x_397, 0); + lean_ctor_release(x_397, 1); + x_443 = x_397; +} else { + lean_dec_ref(x_397); + x_443 = lean_box(0); +} +if (lean_is_scalar(x_443)) { + x_444 = lean_alloc_ctor(1, 2, 0); +} else { + x_444 = x_443; +} +lean_ctor_set(x_444, 0, x_441); +lean_ctor_set(x_444, 1, x_442); +if (lean_is_scalar(x_440)) { + x_445 = lean_alloc_ctor(0, 2, 0); +} else { + x_445 = x_440; +} +lean_ctor_set(x_445, 0, x_444); +lean_ctor_set(x_445, 1, x_439); +return x_445; +} +} +else +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_446 = lean_ctor_get(x_388, 1); +lean_inc(x_446); +lean_dec_ref(x_388); +x_447 = lean_ctor_get(x_389, 1); lean_inc(x_447); -lean_dec(x_2); -x_448 = lean_ctor_get(x_447, 0); +lean_dec(x_389); +x_448 = lean_ctor_get(x_55, 2); lean_inc_ref(x_448); -lean_dec(x_447); -x_449 = lean_ctor_get(x_444, 2); -lean_inc_ref(x_449); -x_450 = lean_ctor_get(x_444, 21); +lean_inc_ref(x_12); +lean_inc_ref(x_5); +lean_inc_ref(x_58); +lean_inc_ref(x_448); +lean_inc(x_385); +x_449 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__0(x_379, x_385, x_448, x_58, x_5, x_79, x_65, x_8, x_9, x_10, x_11, x_12, x_447, x_446); +lean_dec_ref(x_79); +x_450 = lean_ctor_get(x_449, 0); lean_inc(x_450); -x_451 = lean_ctor_get(x_445, 6); -lean_inc_ref(x_451); -x_452 = lean_ctor_get(x_445, 7); -lean_inc_ref(x_452); -x_453 = lean_ctor_get_uint8(x_445, sizeof(void*)*26 + 4); -x_454 = lean_ctor_get(x_446, 1); -x_455 = lean_ctor_get(x_448, 1); -lean_inc_ref(x_455); -lean_dec_ref(x_448); -x_456 = l_Lake_BuildType_leanArgs(x_443); -x_457 = l_Array_append___redArg(x_456, x_454); -x_458 = l_Array_append___redArg(x_457, x_455); +if (lean_obj_tag(x_450) == 0) +{ +lean_object* x_451; +x_451 = lean_ctor_get(x_450, 0); +if (lean_obj_tag(x_451) == 0) +{ +lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; +x_452 = lean_ctor_get(x_449, 1); +lean_inc(x_452); +lean_dec_ref(x_449); +x_453 = lean_ctor_get(x_450, 1); +lean_inc(x_453); +lean_dec_ref(x_450); +x_454 = lean_ctor_get(x_68, 2); +lean_inc_ref(x_454); +lean_dec_ref(x_68); +lean_inc_ref(x_5); +x_455 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_8, x_5, x_384, x_385, x_454, x_9, x_10, x_11, x_12, x_453, x_452); +lean_dec_ref(x_454); +x_456 = lean_ctor_get(x_455, 0); +lean_inc(x_456); +if (lean_obj_tag(x_456) == 0) +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; uint8_t x_460; uint8_t x_461; uint8_t x_462; +x_457 = lean_ctor_get(x_455, 1); +lean_inc(x_457); lean_dec_ref(x_455); -x_459 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__1; -x_460 = lean_unsigned_to_nat(0u); -x_461 = lean_array_get_size(x_458); -x_462 = lean_nat_dec_lt(x_460, x_461); +x_458 = lean_ctor_get(x_456, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_456, 1); +lean_inc(x_459); +lean_dec_ref(x_456); +x_460 = 0; +x_461 = lean_unbox(x_458); +x_462 = l_Lake_instDecidableEqOutputStatus(x_461, x_460); if (x_462 == 0) { -lean_dec(x_461); -lean_inc_ref(x_444); -x_57 = x_444; -x_58 = x_438; -x_59 = x_450; -x_60 = x_441; -x_61 = x_442; -x_62 = x_444; -x_63 = x_458; -x_64 = x_451; -x_65 = x_437; -x_66 = x_439; -x_67 = x_440; -x_68 = x_453; -x_69 = x_452; -x_70 = x_449; -x_71 = x_459; -goto block_436; +lean_object* x_463; uint8_t x_464; lean_object* x_465; +lean_dec_ref(x_384); +lean_dec_ref(x_61); +lean_dec_ref(x_7); +x_463 = lean_box(0); +x_464 = lean_unbox(x_458); +lean_dec(x_458); +x_465 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_464, x_5, x_59, x_57, x_58, x_448, x_379, x_463, x_8, x_9, x_10, x_11, x_12, x_459, x_457); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_36 = x_60; +x_37 = x_379; +x_38 = x_465; +goto block_43; } else { -uint8_t x_463; -x_463 = lean_nat_dec_le(x_461, x_461); -if (x_463 == 0) +lean_object* x_466; lean_object* x_467; +lean_inc_ref(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc_ref(x_8); +lean_inc_ref(x_5); +x_466 = l___private_Lake_Build_Module_0__Lake_Module_buildLean(x_5, x_384, x_61, x_7, x_8, x_9, x_10, x_11, x_12, x_459, x_457); +lean_dec_ref(x_384); +x_467 = lean_ctor_get(x_466, 0); +lean_inc(x_467); +if (lean_obj_tag(x_467) == 0) { -lean_dec(x_461); -lean_inc_ref(x_444); -x_57 = x_444; -x_58 = x_438; -x_59 = x_450; -x_60 = x_441; -x_61 = x_442; -x_62 = x_444; -x_63 = x_458; -x_64 = x_451; -x_65 = x_437; -x_66 = x_439; -x_67 = x_440; -x_68 = x_453; -x_69 = x_452; -x_70 = x_449; -x_71 = x_459; -goto block_436; +lean_object* x_468; lean_object* x_469; lean_object* x_470; uint8_t x_471; lean_object* x_472; +x_468 = lean_ctor_get(x_466, 1); +lean_inc(x_468); +lean_dec_ref(x_466); +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +lean_dec_ref(x_467); +x_470 = lean_box(0); +x_471 = lean_unbox(x_458); +lean_dec(x_458); +x_472 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_471, x_5, x_59, x_57, x_58, x_448, x_379, x_470, x_8, x_9, x_10, x_11, x_12, x_469, x_468); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +x_36 = x_60; +x_37 = x_379; +x_38 = x_472; +goto block_43; } else { -size_t x_464; size_t x_465; uint64_t x_466; -x_464 = 0; -x_465 = lean_usize_of_nat(x_461); -lean_dec(x_461); -x_466 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__8(x_458, x_464, x_465, x_459); -lean_inc_ref(x_444); -x_57 = x_444; -x_58 = x_438; -x_59 = x_450; -x_60 = x_441; -x_61 = x_442; -x_62 = x_444; -x_63 = x_458; -x_64 = x_451; -x_65 = x_437; -x_66 = x_439; -x_67 = x_440; -x_68 = x_453; -x_69 = x_452; -x_70 = x_449; -x_71 = x_466; -goto block_436; +lean_dec_ref(x_467); +lean_dec(x_458); +lean_dec_ref(x_448); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_5); +return x_466; } } } -block_487: -{ -lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; uint8_t x_480; uint8_t x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; uint8_t x_486; -x_473 = lean_ctor_get(x_2, 0); -x_474 = lean_ctor_get(x_473, 4); -x_475 = lean_ctor_get(x_474, 1); -x_476 = lean_ctor_get(x_2, 2); -x_477 = lean_ctor_get(x_476, 0); -x_478 = lean_ctor_get_uint8(x_7, sizeof(void*)*6); -x_479 = lean_ctor_get(x_7, 5); -x_480 = lean_ctor_get_uint8(x_475, sizeof(void*)*13); -x_481 = lean_ctor_get_uint8(x_477, sizeof(void*)*13); -lean_inc_ref(x_472); -x_482 = l_Lake_BuildTrace_mix(x_468, x_472); -x_483 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__3; -lean_inc(x_479); -x_484 = l___private_Lake_Build_Module_0__Lake_traceOptions(x_479, x_483); -x_485 = l_Lake_BuildTrace_mix(x_482, x_484); -x_486 = l_Lake_instOrdBuildType_ord(x_480, x_481); -if (x_486 == 2) -{ -x_437 = x_469; -x_438 = x_478; -x_439 = x_485; -x_440 = x_472; -x_441 = x_470; -x_442 = x_471; -x_443 = x_481; -goto block_467; -} else { -x_437 = x_469; -x_438 = x_478; -x_439 = x_485; -x_440 = x_472; -x_441 = x_470; -x_442 = x_471; -x_443 = x_480; -goto block_467; +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +lean_dec_ref(x_448); +lean_dec_ref(x_384); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_473 = lean_ctor_get(x_455, 1); +lean_inc(x_473); +if (lean_is_exclusive(x_455)) { + lean_ctor_release(x_455, 0); + lean_ctor_release(x_455, 1); + x_474 = x_455; +} else { + lean_dec_ref(x_455); + x_474 = lean_box(0); +} +x_475 = lean_ctor_get(x_456, 0); +lean_inc(x_475); +x_476 = lean_ctor_get(x_456, 1); +lean_inc(x_476); +if (lean_is_exclusive(x_456)) { + lean_ctor_release(x_456, 0); + lean_ctor_release(x_456, 1); + x_477 = x_456; +} else { + lean_dec_ref(x_456); + x_477 = lean_box(0); +} +if (lean_is_scalar(x_477)) { + x_478 = lean_alloc_ctor(1, 2, 0); +} else { + x_478 = x_477; +} +lean_ctor_set(x_478, 0, x_475); +lean_ctor_set(x_478, 1, x_476); +if (lean_is_scalar(x_474)) { + x_479 = lean_alloc_ctor(0, 2, 0); +} else { + x_479 = x_474; +} +lean_ctor_set(x_479, 0, x_478); +lean_ctor_set(x_479, 1, x_473); +return x_479; } } -block_494: +else { -lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_491 = lean_task_get_own(x_44); -x_492 = lean_ctor_get(x_491, 1); -lean_inc(x_492); -lean_dec_ref(x_491); -x_493 = lean_ctor_get(x_492, 1); -lean_inc_ref(x_493); -lean_dec(x_492); -x_469 = x_488; -x_470 = x_489; -x_471 = x_490; -x_472 = x_493; -goto block_487; +lean_object* x_480; lean_object* x_481; lean_object* x_482; +lean_inc_ref(x_451); +lean_dec_ref(x_448); +lean_dec(x_385); +lean_dec_ref(x_384); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_480 = lean_ctor_get(x_449, 1); +lean_inc(x_480); +lean_dec_ref(x_449); +x_481 = lean_ctor_get(x_450, 1); +lean_inc(x_481); +lean_dec_ref(x_450); +x_482 = lean_ctor_get(x_451, 0); +lean_inc(x_482); +lean_dec_ref(x_451); +x_21 = x_60; +x_22 = x_379; +x_23 = x_482; +x_24 = x_481; +x_25 = x_480; +goto block_35; } -block_501: +} +else { -lean_object* x_498; lean_object* x_499; lean_object* x_500; +lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; +lean_dec_ref(x_448); +lean_dec(x_385); +lean_dec_ref(x_384); +lean_dec_ref(x_68); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_483 = lean_ctor_get(x_449, 1); +lean_inc(x_483); +if (lean_is_exclusive(x_449)) { + lean_ctor_release(x_449, 0); + lean_ctor_release(x_449, 1); + x_484 = x_449; +} else { + lean_dec_ref(x_449); + x_484 = lean_box(0); +} +x_485 = lean_ctor_get(x_450, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_450, 1); +lean_inc(x_486); +if (lean_is_exclusive(x_450)) { + lean_ctor_release(x_450, 0); + lean_ctor_release(x_450, 1); + x_487 = x_450; +} else { + lean_dec_ref(x_450); + x_487 = lean_box(0); +} +if (lean_is_scalar(x_487)) { + x_488 = lean_alloc_ctor(1, 2, 0); +} else { + x_488 = x_487; +} +lean_ctor_set(x_488, 0, x_485); +lean_ctor_set(x_488, 1, x_486); +if (lean_is_scalar(x_484)) { + x_489 = lean_alloc_ctor(0, 2, 0); +} else { + x_489 = x_484; +} +lean_ctor_set(x_489, 0, x_488); +lean_ctor_set(x_489, 1, x_483); +return x_489; +} +} +} +else +{ +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; +lean_dec_ref(x_79); +lean_dec_ref(x_68); +lean_dec_ref(x_66); +lean_dec_ref(x_61); +lean_dec(x_60); +lean_dec_ref(x_58); +lean_dec_ref(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +lean_dec_ref(x_5); +x_490 = lean_ctor_get(x_366, 0); +lean_inc(x_490); +x_491 = lean_ctor_get(x_366, 1); +lean_inc(x_491); +if (lean_is_exclusive(x_366)) { + lean_ctor_release(x_366, 0); + lean_ctor_release(x_366, 1); + x_492 = x_366; +} else { + lean_dec_ref(x_366); + x_492 = lean_box(0); +} +if (lean_is_scalar(x_54)) { + x_493 = lean_alloc_ctor(0, 3, 1); +} else { + x_493 = x_54; +} +lean_ctor_set(x_493, 0, x_491); +lean_ctor_set(x_493, 1, x_384); +lean_ctor_set(x_493, 2, x_53); +lean_ctor_set_uint8(x_493, sizeof(void*)*3, x_51); +if (lean_is_scalar(x_492)) { + x_494 = lean_alloc_ctor(1, 2, 0); +} else { + x_494 = x_492; +} +lean_ctor_set(x_494, 0, x_490); +lean_ctor_set(x_494, 1, x_493); +x_495 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_495, 0, x_494); +lean_ctor_set(x_495, 1, x_367); +return x_495; +} +} +} +block_524: +{ +lean_object* x_513; lean_object* x_514; lean_object* x_515; uint64_t x_516; lean_object* x_517; lean_object* x_518; uint8_t x_519; +x_513 = l_Lake_BuildType_leanArgs(x_512); +x_514 = l_Array_append___redArg(x_513, x_505); +lean_dec_ref(x_505); +x_515 = l_Array_append___redArg(x_514, x_499); +lean_dec_ref(x_499); +x_516 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___lam__0___closed__1; +x_517 = lean_unsigned_to_nat(0u); +x_518 = lean_array_get_size(x_515); +x_519 = lean_nat_dec_lt(x_517, x_518); +if (x_519 == 0) +{ +lean_dec(x_518); +lean_inc_ref(x_501); +x_57 = x_497; +x_58 = x_501; +x_59 = x_504; +x_60 = x_503; +x_61 = x_506; +x_62 = x_508; +x_63 = x_498; +x_64 = x_509; +x_65 = x_497; +x_66 = x_501; +x_67 = x_511; +x_68 = x_507; +x_69 = x_502; +x_70 = x_510; +x_71 = x_500; +x_72 = x_515; +x_73 = x_516; +goto block_496; +} +else +{ +uint8_t x_520; +x_520 = lean_nat_dec_le(x_518, x_518); +if (x_520 == 0) +{ +lean_dec(x_518); +lean_inc_ref(x_501); +x_57 = x_497; +x_58 = x_501; +x_59 = x_504; +x_60 = x_503; +x_61 = x_506; +x_62 = x_508; +x_63 = x_498; +x_64 = x_509; +x_65 = x_497; +x_66 = x_501; +x_67 = x_511; +x_68 = x_507; +x_69 = x_502; +x_70 = x_510; +x_71 = x_500; +x_72 = x_515; +x_73 = x_516; +goto block_496; +} +else +{ +size_t x_521; size_t x_522; uint64_t x_523; +x_521 = 0; +x_522 = lean_usize_of_nat(x_518); +lean_dec(x_518); +x_523 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__8(x_515, x_521, x_522, x_516); +lean_inc_ref(x_501); +x_57 = x_497; +x_58 = x_501; +x_59 = x_504; +x_60 = x_503; +x_61 = x_506; +x_62 = x_508; +x_63 = x_498; +x_64 = x_509; +x_65 = x_497; +x_66 = x_501; +x_67 = x_511; +x_68 = x_507; +x_69 = x_502; +x_70 = x_510; +x_71 = x_500; +x_72 = x_515; +x_73 = x_523; +goto block_496; +} +} +} +block_551: +{ +lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; uint8_t x_541; uint8_t x_542; lean_object* x_543; uint8_t x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; uint8_t x_550; +x_530 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_530); +x_531 = lean_ctor_get(x_530, 4); +x_532 = lean_ctor_get(x_531, 1); +x_533 = lean_ctor_get(x_2, 2); +lean_inc(x_533); +lean_dec(x_2); +x_534 = lean_ctor_get(x_533, 0); +lean_inc_ref(x_534); +lean_dec(x_533); +x_535 = lean_ctor_get_uint8(x_7, sizeof(void*)*6); +x_536 = lean_ctor_get(x_7, 5); +x_537 = lean_ctor_get(x_530, 2); +lean_inc_ref(x_537); +x_538 = lean_ctor_get(x_530, 21); +lean_inc(x_538); +x_539 = lean_ctor_get(x_531, 6); +lean_inc_ref(x_539); +x_540 = lean_ctor_get(x_531, 7); +lean_inc_ref(x_540); +x_541 = lean_ctor_get_uint8(x_531, sizeof(void*)*26 + 4); +x_542 = lean_ctor_get_uint8(x_532, sizeof(void*)*13); +x_543 = lean_ctor_get(x_532, 1); +lean_inc_ref(x_543); +x_544 = lean_ctor_get_uint8(x_534, sizeof(void*)*13); +x_545 = lean_ctor_get(x_534, 1); +lean_inc_ref(x_545); +lean_dec_ref(x_534); +lean_inc_ref(x_529); +x_546 = l_Lake_BuildTrace_mix(x_525, x_529); +x_547 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___closed__3; +lean_inc(x_536); +x_548 = l___private_Lake_Build_Module_0__Lake_traceOptions(x_536, x_547); +x_549 = l_Lake_BuildTrace_mix(x_546, x_548); +x_550 = l_Lake_instOrdBuildType_ord(x_542, x_544); +if (x_550 == 2) +{ +x_497 = x_541; +x_498 = x_537; +x_499 = x_545; +x_500 = x_540; +x_501 = x_530; +x_502 = x_539; +x_503 = x_538; +x_504 = x_535; +x_505 = x_543; +x_506 = x_526; +x_507 = x_529; +x_508 = x_527; +x_509 = x_549; +x_510 = x_528; +x_511 = x_535; +x_512 = x_544; +goto block_524; +} +else +{ +x_497 = x_541; +x_498 = x_537; +x_499 = x_545; +x_500 = x_540; +x_501 = x_530; +x_502 = x_539; +x_503 = x_538; +x_504 = x_535; +x_505 = x_543; +x_506 = x_526; +x_507 = x_529; +x_508 = x_527; +x_509 = x_549; +x_510 = x_528; +x_511 = x_535; +x_512 = x_542; +goto block_524; +} +} +block_558: +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_555 = lean_task_get_own(x_44); +x_556 = lean_ctor_get(x_555, 1); +lean_inc(x_556); +lean_dec_ref(x_555); +x_557 = lean_ctor_get(x_556, 1); +lean_inc_ref(x_557); +lean_dec(x_556); +x_526 = x_552; +x_527 = x_554; +x_528 = x_553; +x_529 = x_557; +goto block_551; +} +block_565: +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; if (lean_is_scalar(x_45)) { - x_498 = lean_alloc_ctor(0, 3, 1); + x_562 = lean_alloc_ctor(0, 3, 1); } else { - x_498 = x_45; + x_562 = x_45; } -lean_ctor_set(x_498, 0, x_496); -lean_ctor_set(x_498, 1, x_468); -lean_ctor_set(x_498, 2, x_53); -lean_ctor_set_uint8(x_498, sizeof(void*)*3, x_51); -x_499 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_499, 0, x_495); -lean_ctor_set(x_499, 1, x_498); +lean_ctor_set(x_562, 0, x_560); +lean_ctor_set(x_562, 1, x_525); +lean_ctor_set(x_562, 2, x_53); +lean_ctor_set_uint8(x_562, sizeof(void*)*3, x_51); +x_563 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_563, 0, x_559); +lean_ctor_set(x_563, 1, x_562); if (lean_is_scalar(x_49)) { - x_500 = lean_alloc_ctor(0, 2, 0); + x_564 = lean_alloc_ctor(0, 2, 0); } else { - x_500 = x_49; + x_564 = x_49; } -lean_ctor_set(x_500, 0, x_499); -lean_ctor_set(x_500, 1, x_497); -return x_500; +lean_ctor_set(x_564, 0, x_563); +lean_ctor_set(x_564, 1, x_561); +return x_564; } } } @@ -43600,62 +44000,59 @@ lean_dec_ref(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_1, x_2, x_3); -lean_dec_ref(x_2); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_8 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___redArg(x_1, x_7, x_8, x_4, x_5, x_6); -lean_dec_ref(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_13 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_14 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__5(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_1); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__6(x_1, x_2); +x_3 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__4(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4_spec__5(x_1, x_2, x_3); +lean_dec_ref(x_2); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4_spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLean_spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_9); lean_dec(x_8); lean_dec(x_7); @@ -43729,18 +44126,21 @@ lean_dec_ref(x_6); return x_17; } } -LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -uint64_t x_13; lean_object* x_14; -x_13 = lean_unbox_uint64(x_4); -lean_dec(x_4); -x_14 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_1, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_9); -lean_dec(x_8); +uint8_t x_16; uint8_t x_17; uint8_t x_18; uint64_t x_19; lean_object* x_20; +x_16 = lean_unbox(x_1); +x_17 = lean_unbox(x_3); +x_18 = lean_unbox(x_4); +x_19 = lean_unbox_uint64(x_7); lean_dec(x_7); -lean_dec_ref(x_6); -return x_14; +x_20 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__1(x_16, x_2, x_17, x_18, x_5, x_6, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec_ref(x_9); +return x_20; } } LEAN_EXPORT lean_object* l___private_Lake_Build_Module_0__Lake_Module_recBuildLean___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { @@ -47532,13 +47932,13 @@ lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean x_24 = l_Lake_BuildType_leancArgs(x_23); x_25 = l_Array_append___redArg(x_24, x_14); lean_dec_ref(x_14); -x_26 = l_Array_append___redArg(x_25, x_21); -lean_dec_ref(x_21); +x_26 = l_Array_append___redArg(x_25, x_19); +lean_dec_ref(x_19); x_27 = l___private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport___closed__1; x_28 = l_Array_append___redArg(x_26, x_27); x_29 = l_Lake_Module_cFacet; x_30 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_30, 0, x_19); +lean_ctor_set(x_30, 0, x_22); x_31 = l_Lake_Module_keyword; x_32 = lean_alloc_ctor(1, 4, 0); lean_ctor_set(x_32, 0, x_30); @@ -47556,7 +47956,7 @@ lean_closure_set(x_35, 3, x_13); lean_closure_set(x_35, 4, x_18); lean_closure_set(x_35, 5, x_11); lean_closure_set(x_35, 6, x_15); -lean_closure_set(x_35, 7, x_22); +lean_closure_set(x_35, 7, x_20); lean_closure_set(x_35, 8, x_28); lean_closure_set(x_35, 9, x_34); x_36 = l_Lake_ensureJob___at_____private_Lake_Build_Module_0__Lake_Module_recBuildLeanCToOExport_spec__0(x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8); @@ -47586,7 +47986,7 @@ x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); lean_dec_ref(x_44); x_47 = 0; -lean_ctor_set(x_38, 2, x_20); +lean_ctor_set(x_38, 2, x_21); lean_ctor_set_uint8(x_38, sizeof(void*)*3, x_47); lean_inc_ref(x_38); x_48 = l_Lake_Job_toOpaque___redArg(x_38); @@ -47636,7 +48036,7 @@ x_62 = 0; x_63 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_63, 0, x_57); lean_ctor_set(x_63, 1, x_58); -lean_ctor_set(x_63, 2, x_20); +lean_ctor_set(x_63, 2, x_21); lean_ctor_set_uint8(x_63, sizeof(void*)*3, x_62); lean_inc_ref(x_63); x_64 = l_Lake_Job_toOpaque___redArg(x_63); @@ -47698,7 +48098,7 @@ if (lean_is_scalar(x_74)) { } lean_ctor_set(x_79, 0, x_72); lean_ctor_set(x_79, 1, x_73); -lean_ctor_set(x_79, 2, x_20); +lean_ctor_set(x_79, 2, x_21); lean_ctor_set_uint8(x_79, sizeof(void*)*3, x_78); lean_inc_ref(x_79); x_80 = l_Lake_Job_toOpaque___redArg(x_79); @@ -47760,9 +48160,9 @@ lean_dec_ref(x_89); x_113 = l_Lake_instOrdBuildType_ord(x_102, x_105); if (x_113 == 2) { +lean_inc(x_97); lean_inc_ref(x_107); lean_inc_ref(x_106); -lean_inc(x_97); lean_inc_ref(x_101); lean_inc_ref(x_100); lean_inc_ref(x_104); @@ -47778,18 +48178,18 @@ x_15 = x_104; x_16 = x_99; x_17 = x_100; x_18 = x_101; -x_19 = x_97; -x_20 = x_112; -x_21 = x_106; -x_22 = x_107; +x_19 = x_106; +x_20 = x_107; +x_21 = x_112; +x_22 = x_97; x_23 = x_105; goto block_88; } else { +lean_inc(x_97); lean_inc_ref(x_107); lean_inc_ref(x_106); -lean_inc(x_97); lean_inc_ref(x_101); lean_inc_ref(x_100); lean_inc_ref(x_104); @@ -47805,10 +48205,10 @@ x_15 = x_104; x_16 = x_99; x_17 = x_100; x_18 = x_101; -x_19 = x_97; -x_20 = x_112; -x_21 = x_106; -x_22 = x_107; +x_19 = x_106; +x_20 = x_107; +x_21 = x_112; +x_22 = x_97; x_23 = x_102; goto block_88; } @@ -50233,14 +50633,14 @@ block_85: { lean_object* x_78; uint8_t x_79; x_78 = lean_array_get_size(x_77); -x_79 = lean_nat_dec_lt(x_73, x_78); +x_79 = lean_nat_dec_lt(x_74, x_78); if (x_79 == 0) { lean_dec(x_78); lean_dec_ref(x_77); -x_30 = x_76; -x_31 = x_74; -x_32 = x_75; +x_30 = x_75; +x_31 = x_73; +x_32 = x_76; goto block_65; } else @@ -50251,9 +50651,9 @@ if (x_80 == 0) { lean_dec(x_78); lean_dec_ref(x_77); -x_30 = x_76; -x_31 = x_74; -x_32 = x_75; +x_30 = x_75; +x_31 = x_73; +x_32 = x_76; goto block_65; } else @@ -50266,7 +50666,7 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_3); lean_inc_ref(x_9); -x_82 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(x_77, x_23, x_81, x_76, x_9, x_3, x_11, x_12, x_13, x_74, x_75); +x_82 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Module_0__Lake_Module_recBuildDynlib_spec__1(x_77, x_23, x_81, x_75, x_9, x_3, x_11, x_12, x_13, x_73, x_76); lean_dec_ref(x_77); x_83 = lean_ctor_get(x_82, 0); lean_inc(x_83); @@ -50302,10 +50702,10 @@ if (x_95 == 0) { lean_dec(x_94); lean_dec_ref(x_86); -x_73 = x_87; -x_74 = x_92; -x_75 = x_90; -x_76 = x_91; +x_73 = x_92; +x_74 = x_87; +x_75 = x_91; +x_76 = x_90; x_77 = x_93; goto block_85; } @@ -50317,10 +50717,10 @@ if (x_96 == 0) { lean_dec(x_94); lean_dec_ref(x_86); -x_73 = x_87; -x_74 = x_92; -x_75 = x_90; -x_76 = x_91; +x_73 = x_92; +x_74 = x_87; +x_75 = x_91; +x_76 = x_90; x_77 = x_93; goto block_85; } @@ -50333,10 +50733,10 @@ lean_dec(x_94); lean_inc_ref(x_5); x_99 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_recBuildExternDynlibs_spec__1(x_97, x_5, x_86, x_23, x_98, x_93); lean_dec_ref(x_86); -x_73 = x_87; -x_74 = x_92; -x_75 = x_90; -x_76 = x_91; +x_73 = x_92; +x_74 = x_87; +x_75 = x_91; +x_76 = x_90; x_77 = x_99; goto block_85; } @@ -51062,9 +51462,9 @@ goto block_52; block_44: { lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_nat_add(x_39, x_40); +x_41 = lean_nat_add(x_38, x_40); lean_dec(x_40); -lean_dec(x_39); +lean_dec(x_38); if (lean_is_scalar(x_35)) { x_42 = lean_alloc_ctor(0, 5, 0); } else { @@ -51083,7 +51483,7 @@ if (lean_is_scalar(x_25)) { lean_ctor_set(x_43, 0, x_37); lean_ctor_set(x_43, 1, x_28); lean_ctor_set(x_43, 2, x_29); -lean_ctor_set(x_43, 3, x_38); +lean_ctor_set(x_43, 3, x_39); lean_ctor_set(x_43, 4, x_42); return x_43; } @@ -51109,8 +51509,8 @@ if (lean_obj_tag(x_31) == 0) lean_object* x_50; x_50 = lean_ctor_get(x_31, 0); lean_inc(x_50); -x_38 = x_48; -x_39 = x_49; +x_38 = x_49; +x_39 = x_48; x_40 = x_50; goto block_44; } @@ -51118,8 +51518,8 @@ else { lean_object* x_51; x_51 = lean_unsigned_to_nat(0u); -x_38 = x_48; -x_39 = x_49; +x_38 = x_49; +x_39 = x_48; x_40 = x_51; goto block_44; } @@ -51536,9 +51936,9 @@ goto block_154; block_147: { lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_nat_add(x_141, x_143); +x_144 = lean_nat_add(x_142, x_143); lean_dec(x_143); -lean_dec(x_141); +lean_dec(x_142); if (lean_is_scalar(x_138)) { x_145 = lean_alloc_ctor(0, 5, 0); } else { @@ -51557,7 +51957,7 @@ if (lean_is_scalar(x_128)) { lean_ctor_set(x_146, 0, x_140); lean_ctor_set(x_146, 1, x_130); lean_ctor_set(x_146, 2, x_131); -lean_ctor_set(x_146, 3, x_142); +lean_ctor_set(x_146, 3, x_141); lean_ctor_set(x_146, 4, x_145); return x_146; } @@ -51583,8 +51983,8 @@ if (lean_obj_tag(x_133) == 0) lean_object* x_152; x_152 = lean_ctor_get(x_133, 0); lean_inc(x_152); -x_141 = x_151; -x_142 = x_150; +x_141 = x_150; +x_142 = x_151; x_143 = x_152; goto block_147; } @@ -51592,8 +51992,8 @@ else { lean_object* x_153; x_153 = lean_unsigned_to_nat(0u); -x_141 = x_151; -x_142 = x_150; +x_141 = x_150; +x_142 = x_151; x_143 = x_153; goto block_147; } @@ -52221,23 +52621,23 @@ x_61 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____privat x_62 = l_Lake_instOrdBuildType_ord(x_11, x_12); if (x_62 == 2) { -x_22 = x_53; -x_23 = x_54; -x_24 = x_56; +x_22 = x_57; +x_23 = x_56; +x_24 = x_61; x_25 = x_59; -x_26 = x_57; -x_27 = x_61; +x_26 = x_53; +x_27 = x_54; x_28 = x_12; goto block_36; } else { -x_22 = x_53; -x_23 = x_54; -x_24 = x_56; +x_22 = x_57; +x_23 = x_56; +x_24 = x_61; x_25 = x_59; -x_26 = x_57; -x_27 = x_61; +x_26 = x_53; +x_27 = x_54; x_28 = x_11; goto block_36; } @@ -52443,18 +52843,18 @@ x_31 = l_Lean_LeanOptions_append(x_29, x_30); x_32 = l_Lean_LeanOptions_appendArray(x_31, x_6); x_33 = lean_alloc_ctor(0, 6, 1); lean_ctor_set(x_33, 0, x_7); -lean_ctor_set(x_33, 1, x_26); -lean_ctor_set(x_33, 2, x_23); +lean_ctor_set(x_33, 1, x_22); +lean_ctor_set(x_33, 2, x_27); lean_ctor_set(x_33, 3, x_25); -lean_ctor_set(x_33, 4, x_27); +lean_ctor_set(x_33, 4, x_24); lean_ctor_set(x_33, 5, x_32); lean_ctor_set_uint8(x_33, sizeof(void*)*6, x_8); x_34 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_24); +lean_ctor_set(x_34, 1, x_23); x_35 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_22); +lean_ctor_set(x_35, 1, x_26); return x_35; } } @@ -52790,7 +53190,7 @@ x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); if (lean_obj_tag(x_63) == 0) { -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_243; lean_object* x_244; lean_object* x_245; x_64 = lean_ctor_get(x_62, 1); lean_inc(x_64); lean_dec_ref(x_62); @@ -53085,13 +53485,13 @@ lean_inc_ref(x_80); x_86 = l_Array_append___redArg(x_80, x_84); lean_dec_ref(x_84); x_87 = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__0; -lean_inc_ref(x_72); -lean_inc(x_73); -lean_inc(x_69); +lean_inc_ref(x_69); lean_inc(x_71); +lean_inc(x_73); +lean_inc(x_72); lean_inc_ref(x_74); lean_inc_ref(x_23); -x_88 = l_Lake_TargetArray_fetchIn___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(x_23, x_86, x_87, x_74, x_71, x_69, x_73, x_72, x_76, x_77); +x_88 = l_Lake_TargetArray_fetchIn___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(x_23, x_86, x_87, x_74, x_72, x_73, x_71, x_69, x_76, x_77); x_89 = lean_ctor_get(x_88, 0); lean_inc(x_89); if (lean_obj_tag(x_89) == 0) @@ -53109,12 +53509,12 @@ lean_inc_ref(x_81); x_93 = l_Array_append___redArg(x_81, x_85); lean_dec_ref(x_85); x_94 = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__1; -lean_inc_ref(x_72); -lean_inc(x_73); -lean_inc(x_69); +lean_inc_ref(x_69); lean_inc(x_71); +lean_inc(x_73); +lean_inc(x_72); lean_inc_ref(x_74); -x_95 = l_Lake_TargetArray_fetchIn___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(x_23, x_93, x_94, x_74, x_71, x_69, x_73, x_72, x_92, x_90); +x_95 = l_Lake_TargetArray_fetchIn___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__0(x_23, x_93, x_94, x_74, x_72, x_73, x_71, x_69, x_92, x_90); x_96 = lean_ctor_get(x_95, 0); lean_inc(x_96); if (lean_obj_tag(x_96) == 0) @@ -53157,7 +53557,7 @@ lean_closure_set(x_109, 1, x_107); lean_closure_set(x_109, 2, x_108); x_110 = lean_unsigned_to_nat(0u); x_111 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__3; -x_112 = l_Lake_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__5___redArg(x_38, x_109, x_110, x_70, x_74, x_71, x_69, x_73, x_72, x_111, x_97); +x_112 = l_Lake_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__5___redArg(x_38, x_109, x_110, x_70, x_74, x_72, x_73, x_71, x_69, x_111, x_97); x_113 = !lean_is_exclusive(x_112); if (x_113 == 0) { @@ -53219,7 +53619,7 @@ lean_closure_set(x_129, 1, x_127); lean_closure_set(x_129, 2, x_128); x_130 = lean_unsigned_to_nat(0u); x_131 = l___private_Lake_Build_Module_0__Lake_Module_recFetchInput___closed__3; -x_132 = l_Lake_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__5___redArg(x_38, x_129, x_130, x_70, x_74, x_71, x_69, x_73, x_72, x_131, x_97); +x_132 = l_Lake_Job_bindM___at_____private_Lake_Build_Module_0__Lake_Module_recFetchSetup_spec__5___redArg(x_38, x_129, x_130, x_70, x_74, x_72, x_73, x_71, x_69, x_131, x_97); x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); x_134 = lean_ctor_get(x_132, 1); @@ -53254,9 +53654,9 @@ lean_dec_ref(x_79); lean_dec_ref(x_75); lean_dec_ref(x_74); lean_dec(x_73); -lean_dec_ref(x_72); +lean_dec(x_72); lean_dec(x_71); -lean_dec(x_69); +lean_dec_ref(x_69); lean_dec_ref(x_68); lean_dec(x_65); lean_dec(x_47); @@ -53329,9 +53729,9 @@ lean_dec_ref(x_79); lean_dec_ref(x_75); lean_dec_ref(x_74); lean_dec(x_73); -lean_dec_ref(x_72); +lean_dec(x_72); lean_dec(x_71); -lean_dec(x_69); +lean_dec_ref(x_69); lean_dec_ref(x_68); lean_dec(x_65); lean_dec(x_47); @@ -53415,9 +53815,9 @@ lean_dec_ref(x_172); x_67 = x_163; x_68 = x_164; x_69 = x_165; -x_70 = x_167; -x_71 = x_166; -x_72 = x_168; +x_70 = x_166; +x_71 = x_168; +x_72 = x_167; x_73 = x_169; x_74 = x_170; x_75 = x_174; @@ -53430,9 +53830,9 @@ else uint8_t x_176; lean_dec_ref(x_170); lean_dec(x_169); -lean_dec_ref(x_168); -lean_dec(x_166); -lean_dec(x_165); +lean_dec(x_168); +lean_dec(x_167); +lean_dec_ref(x_165); lean_dec_ref(x_164); lean_dec(x_65); lean_dec_ref(x_52); @@ -53501,13 +53901,13 @@ return x_187; block_233: { lean_object* x_198; lean_object* x_199; -lean_inc_ref(x_193); +lean_inc_ref(x_189); +lean_inc(x_192); lean_inc(x_194); -lean_inc(x_190); -lean_inc(x_191); -lean_inc_ref(x_195); -x_198 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(x_1, x_196, x_197, x_195, x_191, x_190, x_194, x_193, x_189, x_192); -lean_dec_ref(x_196); +lean_inc(x_193); +lean_inc_ref(x_196); +x_198 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs(x_1, x_190, x_197, x_196, x_193, x_194, x_192, x_189, x_191, x_195); +lean_dec_ref(x_190); lean_dec_ref(x_1); x_199 = lean_ctor_get(x_198, 0); lean_inc(x_199); @@ -53532,12 +53932,12 @@ lean_object* x_206; x_206 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0; x_67 = x_205; x_68 = x_204; -x_69 = x_190; +x_69 = x_189; x_70 = x_205; -x_71 = x_191; +x_71 = x_192; x_72 = x_193; x_73 = x_194; -x_74 = x_195; +x_74 = x_196; x_75 = x_206; x_76 = x_202; x_77 = x_200; @@ -53555,20 +53955,20 @@ if (x_210 == 0) size_t x_211; lean_object* x_212; lean_dec(x_209); x_211 = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3; -lean_inc_ref(x_193); +lean_inc_ref(x_189); +lean_inc(x_192); lean_inc(x_194); -lean_inc(x_190); -lean_inc(x_191); -lean_inc_ref(x_195); -x_212 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_211, x_43, x_208, x_195, x_191, x_190, x_194, x_193, x_202, x_200); +lean_inc(x_193); +lean_inc_ref(x_196); +x_212 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_211, x_43, x_208, x_196, x_193, x_194, x_192, x_189, x_202, x_200); x_163 = x_205; x_164 = x_204; -x_165 = x_190; -x_166 = x_191; -x_167 = x_205; -x_168 = x_193; +x_165 = x_189; +x_166 = x_205; +x_167 = x_193; +x_168 = x_192; x_169 = x_194; -x_170 = x_195; +x_170 = x_196; x_171 = x_212; goto block_188; } @@ -53581,20 +53981,20 @@ if (x_213 == 0) size_t x_214; lean_object* x_215; lean_dec(x_209); x_214 = l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__7___closed__3; -lean_inc_ref(x_193); +lean_inc_ref(x_189); +lean_inc(x_192); lean_inc(x_194); -lean_inc(x_190); -lean_inc(x_191); -lean_inc_ref(x_195); -x_215 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_214, x_43, x_208, x_195, x_191, x_190, x_194, x_193, x_202, x_200); +lean_inc(x_193); +lean_inc_ref(x_196); +x_215 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_214, x_43, x_208, x_196, x_193, x_194, x_192, x_189, x_202, x_200); x_163 = x_205; x_164 = x_204; -x_165 = x_190; -x_166 = x_191; -x_167 = x_205; -x_168 = x_193; +x_165 = x_189; +x_166 = x_205; +x_167 = x_193; +x_168 = x_192; x_169 = x_194; -x_170 = x_195; +x_170 = x_196; x_171 = x_215; goto block_188; } @@ -53607,20 +54007,20 @@ lean_dec(x_209); lean_inc_ref(x_23); x_218 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_recBuildExternDynlibs_spec__1(x_216, x_23, x_30, x_43, x_217, x_208); x_219 = lean_array_size(x_218); -lean_inc_ref(x_193); +lean_inc_ref(x_189); +lean_inc(x_192); lean_inc(x_194); -lean_inc(x_190); -lean_inc(x_191); -lean_inc_ref(x_195); -x_220 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_219, x_43, x_218, x_195, x_191, x_190, x_194, x_193, x_202, x_200); +lean_inc(x_193); +lean_inc_ref(x_196); +x_220 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_219, x_43, x_218, x_196, x_193, x_194, x_192, x_189, x_202, x_200); x_163 = x_205; x_164 = x_204; -x_165 = x_190; -x_166 = x_191; -x_167 = x_205; -x_168 = x_193; +x_165 = x_189; +x_166 = x_205; +x_167 = x_193; +x_168 = x_192; x_169 = x_194; -x_170 = x_195; +x_170 = x_196; x_171 = x_220; goto block_188; } @@ -53630,11 +54030,11 @@ goto block_188; else { uint8_t x_221; -lean_dec_ref(x_195); +lean_dec_ref(x_196); lean_dec(x_194); -lean_dec_ref(x_193); -lean_dec(x_191); -lean_dec(x_190); +lean_dec(x_193); +lean_dec(x_192); +lean_dec_ref(x_189); lean_dec(x_65); lean_dec_ref(x_52); lean_dec(x_47); @@ -53703,27 +54103,27 @@ block_242: { if (x_50 == 0) { -x_189 = x_240; -x_190 = x_237; -x_191 = x_236; -x_192 = x_241; -x_193 = x_239; -x_194 = x_238; -x_195 = x_235; -x_196 = x_234; +x_189 = x_239; +x_190 = x_234; +x_191 = x_240; +x_192 = x_238; +x_193 = x_236; +x_194 = x_237; +x_195 = x_241; +x_196 = x_235; x_197 = x_54; goto block_233; } else { -x_189 = x_240; -x_190 = x_237; -x_191 = x_236; -x_192 = x_241; -x_193 = x_239; -x_194 = x_238; -x_195 = x_235; -x_196 = x_234; +x_189 = x_239; +x_190 = x_234; +x_191 = x_240; +x_192 = x_238; +x_193 = x_236; +x_194 = x_237; +x_195 = x_241; +x_196 = x_235; x_197 = x_50; goto block_233; } @@ -55080,7 +55480,7 @@ x_42 = lean_ctor_get(x_41, 0); lean_inc(x_42); if (lean_obj_tag(x_42) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_125; uint8_t x_126; uint8_t x_127; lean_object* x_128; lean_object* x_129; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec_ref(x_41); @@ -55373,7 +55773,7 @@ x_67 = l_Lake_Job_collectArray___redArg(x_50, x_66); lean_dec_ref(x_50); x_68 = l___private_Lake_Build_Module_0__Lake_setupExternalModule___boxed__const__1; x_69 = lean_box(x_32); -x_70 = lean_box(x_46); +x_70 = lean_box(x_47); x_71 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4___boxed), 17, 9); lean_closure_set(x_71, 0, x_38); lean_closure_set(x_71, 1, x_68); @@ -55383,8 +55783,8 @@ lean_closure_set(x_71, 4, x_70); lean_closure_set(x_71, 5, x_67); lean_closure_set(x_71, 6, x_65); lean_closure_set(x_71, 7, x_59); -lean_closure_set(x_71, 8, x_47); -x_72 = lean_box(x_46); +lean_closure_set(x_71, 8, x_46); +x_72 = lean_box(x_47); x_73 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed), 11, 3); lean_closure_set(x_73, 0, x_44); lean_closure_set(x_73, 1, x_71); @@ -55429,7 +55829,7 @@ x_85 = l_Lake_Job_collectArray___redArg(x_50, x_84); lean_dec_ref(x_50); x_86 = l___private_Lake_Build_Module_0__Lake_setupExternalModule___boxed__const__1; x_87 = lean_box(x_32); -x_88 = lean_box(x_46); +x_88 = lean_box(x_47); x_89 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_setupExternalModule___lam__4___boxed), 17, 9); lean_closure_set(x_89, 0, x_38); lean_closure_set(x_89, 1, x_86); @@ -55439,8 +55839,8 @@ lean_closure_set(x_89, 4, x_88); lean_closure_set(x_89, 5, x_85); lean_closure_set(x_89, 6, x_82); lean_closure_set(x_89, 7, x_59); -lean_closure_set(x_89, 8, x_47); -x_90 = lean_box(x_46); +lean_closure_set(x_89, 8, x_46); +x_90 = lean_box(x_47); x_91 = lean_alloc_closure((void*)(l___private_Lake_Build_Module_0__Lake_Module_recFetchSetup___lam__5___boxed), 11, 3); lean_closure_set(x_91, 0, x_44); lean_closure_set(x_91, 1, x_89); @@ -55478,7 +55878,7 @@ else uint8_t x_100; lean_dec(x_59); lean_dec_ref(x_50); -lean_dec_ref(x_47); +lean_dec_ref(x_46); lean_dec(x_44); lean_dec(x_38); lean_dec(x_29); @@ -55551,7 +55951,7 @@ else uint8_t x_112; lean_dec_ref(x_54); lean_dec_ref(x_50); -lean_dec_ref(x_47); +lean_dec_ref(x_46); lean_dec(x_44); lean_dec(x_38); lean_dec(x_29); @@ -55648,7 +56048,7 @@ else { uint8_t x_134; lean_dec_ref(x_128); -lean_dec_ref(x_126); +lean_dec_ref(x_125); lean_dec(x_44); lean_dec(x_38); lean_dec(x_29); @@ -55747,8 +56147,8 @@ if (x_156 == 0) lean_object* x_158; x_158 = l___private_Lake_Build_Module_0__Lake_Module_fetchImportLibs___closed__0; lean_inc_ref(x_155); -x_46 = x_157; -x_47 = x_153; +x_46 = x_153; +x_47 = x_157; x_48 = x_157; x_49 = x_155; x_50 = x_158; @@ -55775,8 +56175,8 @@ lean_inc(x_5); lean_inc_ref(x_4); x_164 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_163, x_34, x_160, x_4, x_5, x_6, x_7, x_8, x_154, x_152); lean_inc_ref(x_155); -x_125 = x_157; -x_126 = x_153; +x_125 = x_153; +x_126 = x_157; x_127 = x_157; x_128 = x_155; x_129 = x_164; @@ -55798,8 +56198,8 @@ lean_inc(x_5); lean_inc_ref(x_4); x_167 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_166, x_34, x_160, x_4, x_5, x_6, x_7, x_8, x_154, x_152); lean_inc_ref(x_155); -x_125 = x_157; -x_126 = x_153; +x_125 = x_153; +x_126 = x_157; x_127 = x_157; x_128 = x_155; x_129 = x_167; @@ -55821,8 +56221,8 @@ lean_inc(x_5); lean_inc_ref(x_4); x_172 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Lake_recBuildExternDynlibs_spec__0(x_171, x_34, x_170, x_4, x_5, x_6, x_7, x_8, x_154, x_152); lean_inc_ref(x_155); -x_125 = x_157; -x_126 = x_153; +x_125 = x_153; +x_126 = x_157; x_127 = x_157; x_128 = x_155; x_129 = x_172; diff --git a/stage0/stdlib/Lake/Build/Package.c b/stage0/stdlib/Lake/Build/Package.c index 16c1c712ff..952dd2466f 100644 --- a/stage0/stdlib/Lake/Build/Package.c +++ b/stage0/stdlib/Lake/Build/Package.c @@ -35,6 +35,8 @@ LEAN_EXPORT lean_object* l_Lake_Package_optBarrelFacetConfig___lam__1___boxed(le static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCache___closed__2; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets___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_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_buildAction___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lake_Package_initFacetConfigs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -79,8 +81,10 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildA LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_Package_afterBuildCacheAsync_spec__0___redArg(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__9___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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_io_metadata(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__8(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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_EXPORT lean_object* l_Lake_Package_optGitHubReleaseFacetConfig; LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets_spec__1___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_download(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -109,6 +113,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_getRelea LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__6___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__6___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_string_hash(lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__0; static lean_object* l_Lake_formatQuery___at___Lake_Package_optBuildCacheFacetConfig_spec__0___closed__0; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__0___redArg(lean_object*, lean_object*); @@ -132,7 +137,6 @@ extern lean_object* l_Lake_Package_gitHubReleaseFacet; LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Package_extraDepFacetConfig_spec__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__4___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__2_spec__2_spec__2_spec__2___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at___IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_barrelFacetConfig___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -145,7 +149,6 @@ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl_ static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning___lam__0___closed__2; extern lean_object* l_Lake_instDataKindBool; size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__2; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*); lean_object* lean_io_mono_ms_now(lean_object*); @@ -160,6 +163,7 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_transDepsFacetConfig; lean_object* lean_string_utf8_next(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; +uint8_t l_Lake_instDecidableEqOutputStatus(uint8_t, uint8_t); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_optFacetDetails___redArg___closed__3; LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets_spec__1___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -182,7 +186,6 @@ lean_object* l_Array_shrink___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0___redArg(lean_object*, uint8_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___Lake_formatQuery___at___Lake_Package_depsFacetConfig_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_Raw_u2080_contains___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__0(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___closed__1; LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_instDataKindUnit; @@ -192,8 +195,10 @@ static lean_object* l_Lake_Package_buildCacheFacetConfig___closed__0; LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync___redArg___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_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__6; +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__0; lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Package_transDepsFacet; static lean_object* l_Lake_OrdHashSet_empty___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__9___closed__6; lean_object* lean_st_mk_ref(lean_object*, lean_object*); @@ -219,7 +224,6 @@ LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync(lean_object*, lean_o LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_formatQuery___at___Lake_Package_depsFacetConfig_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__6___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0___redArg(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_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkBuildArchiveFacetConfig___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -232,6 +236,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_mkOptBui LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheSync___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_prev(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_Package_afterBuildCacheAsync_spec__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_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*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Package_extraDepFacetConfig_spec__0___redArg___boxed(lean_object*); lean_object* l_Lake_Job_renew___redArg(lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__4; @@ -268,7 +273,6 @@ LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at__ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_IO_FS_instOrdSystemTime_ord(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_optBuildCacheFacetConfig; -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2(lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__0; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_contains___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -287,7 +291,6 @@ LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig; LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_afterBuildCacheAsync___redArg___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_Package_0__Lake_Package_fetchOptBuildCacheCore(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___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning___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_IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -310,6 +313,7 @@ extern uint64_t l_Lake_Hash_nil; static lean_object* l_Lake_Package_optGitHubReleaseFacetConfig___closed__0; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lake_Package_initFacetConfigs_spec__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdout___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__3(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_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_optBuildCacheFacetConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lake_Package_optGitHubReleaseFacet; LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_Package_afterBuildCacheAsync_spec__0___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -320,19 +324,18 @@ uint8_t lean_string_validate_utf8(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning___lam__0___closed__1; static lean_object* l_Lake_OrdHashSet_empty___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__9___closed__4; -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__4___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Job_mapM___at___Lake_Package_afterBuildCacheSync_spec__0___redArg___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___private_Lake_Build_Package_0__Lake_Package_optFacetDetails___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__8; uint64_t l_Lean_Name_hash___override(lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insertIfNew___at___Lake_OrdHashSet_insert___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__0_spec__2_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_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* l_Substring_prevn(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_gitHubReleaseFacetConfig; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__1_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_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); -lean_object* l_Lake_uriEncode(lean_object*); +lean_object* l_Lake_uriEncode(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStderr___at___IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0_spec__2(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_Package_extraDepFacetConfig; lean_object* lean_panic_fn(lean_object*, lean_object*); @@ -350,7 +353,6 @@ lean_object* lean_io_bind_task(lean_object*, lean_object*, lean_object*, uint8_t lean_object* lean_get_set_stdin(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recBuildExtraDepTargets_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_withStdin___at___IO_FS_withIsolatedStreams___at___Lake_Job_mapM___at_____private_Lake_Build_Package_0__Lake_Package_maybeFetchBuildCacheWithWarning_spec__0_spec__0_spec__1___redArg___lam__0(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___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___redArg___closed__1; static lean_object* l_Lake_OrdHashSet_empty___at_____private_Lake_Build_Package_0__Lake_Package_recComputeTransDeps_spec__9___closed__3; lean_object* l_Nat_nextPowerOfTwo(lean_object*); @@ -389,6 +391,7 @@ lean_object* l_Lake_instQueryTextUnit___lam__0(lean_object*); static lean_object* l_Lake_Package_optBarrelFacetConfig___lam__1___closed__0; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*); lean_object* lean_io_error_to_string(lean_object*); LEAN_EXPORT lean_object* l_Lake_formatQuery___at___Lake_Package_depsFacetConfig_spec__0___boxed(lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -423,7 +426,6 @@ LEAN_EXPORT lean_object* l_Lake_Job_bindM___at___Lake_Package_afterBuildCacheAsy LEAN_EXPORT lean_object* l_Lake_Package_depsFacetConfig___lam__0(uint8_t, lean_object*); static lean_object* l_Lake_Package_optBarrelFacetConfig___closed__1; lean_object* l_Lake_formatQuery___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3; LEAN_EXPORT lean_object* l___private_Lake_Build_Package_0__Lake_Package_getReleaseUrl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Build_Package_0__Lake_Package_recFetchDeps___lam__0___closed__1; @@ -8190,7 +8192,7 @@ x_54 = lean_nat_dec_eq(x_53, x_9); lean_dec(x_53); if (x_54 == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_55 = l_Lean_Name_toString(x_5, x_10); x_56 = l_Lake_Reservoir_pkgApiUrl(x_44, x_7, x_55); lean_dec_ref(x_55); @@ -8201,19 +8203,20 @@ x_59 = lean_string_append(x_58, x_51); lean_dec(x_51); x_60 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__4; x_61 = lean_string_append(x_59, x_60); -x_62 = l_Lake_uriEncode(x_52); +x_62 = l_panic___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__5___closed__0; +x_63 = l_Lake_uriEncode(x_52, x_62); lean_dec_ref(x_52); -x_63 = lean_string_append(x_61, x_62); -lean_dec_ref(x_62); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_3); -lean_ctor_set(x_12, 0, x_64); +x_64 = lean_string_append(x_61, x_63); +lean_dec_ref(x_63); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_3); +lean_ctor_set(x_12, 0, x_65); return x_12; } else { -uint8_t x_65; +uint8_t x_66; lean_dec_ref(x_52); lean_dec(x_51); lean_inc(x_50); @@ -8222,97 +8225,98 @@ lean_inc_ref(x_47); lean_dec_ref(x_44); lean_dec_ref(x_7); lean_dec(x_5); -x_65 = !lean_is_exclusive(x_3); -if (x_65 == 0) +x_66 = !lean_is_exclusive(x_3); +if (x_66 == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_66 = lean_ctor_get(x_3, 2); -lean_dec(x_66); -x_67 = lean_ctor_get(x_3, 1); +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_67 = lean_ctor_get(x_3, 2); lean_dec(x_67); -x_68 = lean_ctor_get(x_3, 0); +x_68 = lean_ctor_get(x_3, 1); lean_dec(x_68); -x_69 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; -x_70 = lean_array_get_size(x_47); -x_71 = lean_array_push(x_47, x_69); -lean_ctor_set(x_3, 0, x_71); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_3); -lean_ctor_set(x_12, 0, x_72); +x_69 = lean_ctor_get(x_3, 0); +lean_dec(x_69); +x_70 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; +x_71 = lean_array_get_size(x_47); +x_72 = lean_array_push(x_47, x_70); +lean_ctor_set(x_3, 0, x_72); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_3); +lean_ctor_set(x_12, 0, x_73); return x_12; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_dec(x_3); -x_73 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; -x_74 = lean_array_get_size(x_47); -x_75 = lean_array_push(x_47, x_73); -x_76 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_49); -lean_ctor_set(x_76, 2, x_50); -lean_ctor_set_uint8(x_76, sizeof(void*)*3, x_48); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_76); -lean_ctor_set(x_12, 0, x_77); +x_74 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; +x_75 = lean_array_get_size(x_47); +x_76 = lean_array_push(x_47, x_74); +x_77 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_49); +lean_ctor_set(x_77, 2, x_50); +lean_ctor_set_uint8(x_77, sizeof(void*)*3, x_48); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_77); +lean_ctor_set(x_12, 0, x_78); return x_12; } } } else { -lean_object* x_78; lean_object* x_79; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; -x_78 = lean_ctor_get(x_12, 1); -lean_inc(x_78); +lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_79 = lean_ctor_get(x_12, 1); +lean_inc(x_79); lean_dec(x_12); -x_79 = lean_ctor_get(x_3, 0); -x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); -x_81 = lean_ctor_get(x_3, 1); -x_82 = lean_ctor_get(x_3, 2); -x_83 = lean_ctor_get(x_13, 0); -lean_inc(x_83); +x_80 = lean_ctor_get(x_3, 0); +x_81 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_82 = lean_ctor_get(x_3, 1); +x_83 = lean_ctor_get(x_3, 2); +x_84 = lean_ctor_get(x_13, 0); +lean_inc(x_84); lean_dec_ref(x_13); -x_84 = lean_ctor_get(x_44, 15); -lean_inc_ref(x_84); -x_85 = lean_string_utf8_byte_size(x_84); -x_86 = lean_nat_dec_eq(x_85, x_9); -lean_dec(x_85); -if (x_86 == 0) +x_85 = lean_ctor_get(x_44, 15); +lean_inc_ref(x_85); +x_86 = lean_string_utf8_byte_size(x_85); +x_87 = lean_nat_dec_eq(x_86, x_9); +lean_dec(x_86); +if (x_87 == 0) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_87 = l_Lean_Name_toString(x_5, x_10); -x_88 = l_Lake_Reservoir_pkgApiUrl(x_44, x_7, x_87); -lean_dec_ref(x_87); +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_88 = l_Lean_Name_toString(x_5, x_10); +x_89 = l_Lake_Reservoir_pkgApiUrl(x_44, x_7, x_88); +lean_dec_ref(x_88); lean_dec_ref(x_7); -x_89 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__3; -x_90 = lean_string_append(x_88, x_89); -x_91 = lean_string_append(x_90, x_83); -lean_dec(x_83); -x_92 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__4; -x_93 = lean_string_append(x_91, x_92); -x_94 = l_Lake_uriEncode(x_84); -lean_dec_ref(x_84); -x_95 = lean_string_append(x_93, x_94); -lean_dec_ref(x_94); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_3); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_78); -return x_97; +x_90 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__3; +x_91 = lean_string_append(x_89, x_90); +x_92 = lean_string_append(x_91, x_84); +lean_dec(x_84); +x_93 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__4; +x_94 = lean_string_append(x_92, x_93); +x_95 = l_panic___at___IO_FS_withIsolatedStreams___at___Lake_ensureJob___at_____private_Lake_Build_Package_0__Lake_Package_recFetchDeps_spec__3_spec__3_spec__5___closed__0; +x_96 = l_Lake_uriEncode(x_85, x_95); +lean_dec_ref(x_85); +x_97 = lean_string_append(x_94, x_96); +lean_dec_ref(x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_3); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_79); +return x_99; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec_ref(x_84); -lean_dec(x_83); -lean_inc(x_82); -lean_inc_ref(x_81); -lean_inc_ref(x_79); +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec_ref(x_85); +lean_dec(x_84); +lean_inc(x_83); +lean_inc_ref(x_82); +lean_inc_ref(x_80); lean_dec_ref(x_44); lean_dec_ref(x_7); lean_dec(x_5); @@ -8320,84 +8324,84 @@ if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); lean_ctor_release(x_3, 2); - x_98 = x_3; + x_100 = x_3; } else { lean_dec_ref(x_3); - x_98 = lean_box(0); + x_100 = lean_box(0); } -x_99 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; -x_100 = lean_array_get_size(x_79); -x_101 = lean_array_push(x_79, x_99); -if (lean_is_scalar(x_98)) { - x_102 = lean_alloc_ctor(0, 3, 1); +x_101 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__6; +x_102 = lean_array_get_size(x_80); +x_103 = lean_array_push(x_80, x_101); +if (lean_is_scalar(x_100)) { + x_104 = lean_alloc_ctor(0, 3, 1); } else { - x_102 = x_98; + x_104 = x_100; } -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_81); -lean_ctor_set(x_102, 2, x_82); -lean_ctor_set_uint8(x_102, sizeof(void*)*3, x_80); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_100); -lean_ctor_set(x_103, 1, x_102); -x_104 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_78); -return x_104; +lean_ctor_set(x_104, 1, x_82); +lean_ctor_set(x_104, 2, x_83); +lean_ctor_set_uint8(x_104, sizeof(void*)*3, x_81); +x_105 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_105, 0, x_102); +lean_ctor_set(x_105, 1, x_104); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_79); +return x_106; } } } } else { -uint8_t x_105; +uint8_t x_107; lean_dec_ref(x_7); lean_dec_ref(x_6); lean_dec(x_5); lean_dec_ref(x_2); -x_105 = !lean_is_exclusive(x_3); -if (x_105 == 0) +x_107 = !lean_is_exclusive(x_3); +if (x_107 == 0) { -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; -x_106 = lean_ctor_get(x_3, 0); -x_107 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__8; -x_108 = lean_array_get_size(x_106); -x_109 = lean_array_push(x_106, x_107); -lean_ctor_set(x_3, 0, x_109); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_3); -x_111 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_4); -return x_111; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_108 = lean_ctor_get(x_3, 0); +x_109 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__8; +x_110 = lean_array_get_size(x_108); +x_111 = lean_array_push(x_108, x_109); +lean_ctor_set(x_3, 0, x_111); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_3); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_4); +return x_113; } else { -lean_object* x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_112 = lean_ctor_get(x_3, 0); -x_113 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); -x_114 = lean_ctor_get(x_3, 1); -x_115 = lean_ctor_get(x_3, 2); -lean_inc(x_115); +lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_114 = lean_ctor_get(x_3, 0); +x_115 = lean_ctor_get_uint8(x_3, sizeof(void*)*3); +x_116 = lean_ctor_get(x_3, 1); +x_117 = lean_ctor_get(x_3, 2); +lean_inc(x_117); +lean_inc(x_116); lean_inc(x_114); -lean_inc(x_112); lean_dec(x_3); -x_116 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__8; -x_117 = lean_array_get_size(x_112); -x_118 = lean_array_push(x_112, x_116); -x_119 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_114); -lean_ctor_set(x_119, 2, x_115); -lean_ctor_set_uint8(x_119, sizeof(void*)*3, x_113); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_119); -x_121 = lean_alloc_ctor(0, 2, 0); +x_118 = l___private_Lake_Build_Package_0__Lake_Package_getBarrelUrl___redArg___closed__8; +x_119 = lean_array_get_size(x_114); +x_120 = lean_array_push(x_114, x_118); +x_121 = lean_alloc_ctor(0, 3, 1); lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_4); -return x_121; +lean_ctor_set(x_121, 1, x_116); +lean_ctor_set(x_121, 2, x_117); +lean_ctor_set_uint8(x_121, sizeof(void*)*3, x_115); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_121); +x_123 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_4); +return x_123; } } } @@ -8861,7 +8865,46 @@ lean_dec_ref(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_2, 0); +x_8 = lean_unbox_uint64(x_6); +x_9 = lean_unbox_uint64(x_7); +x_10 = lean_uint64_dec_eq(x_8, x_9); +return x_10; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -8962,593 +9005,704 @@ return x_30; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_7; -x_7 = lean_usize_dec_eq(x_2, x_3); -if (x_7 == 0) +uint64_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = lean_ctor_get_uint64(x_2, sizeof(void*)*3); +x_9 = lean_box_uint64(x_8); +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_9); +x_11 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0(x_10, x_3); +lean_dec_ref(x_10); +if (x_11 == 0) { -uint8_t x_8; -x_8 = !lean_is_exclusive(x_5); -if (x_8 == 0) +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_5, 0); +x_13 = lean_ctor_get_uint8(x_12, sizeof(void*)*2); +if (x_13 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; -x_9 = lean_ctor_get(x_5, 0); -x_10 = lean_array_uget(x_1, x_2); -x_11 = lean_box(0); -x_12 = lean_array_push(x_9, x_10); -lean_ctor_set(x_5, 0, x_12); -x_13 = 1; -x_14 = lean_usize_add(x_2, x_13); -x_2 = x_14; -x_4 = x_11; -goto _start; +uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_6); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_7); +return x_17; } else { -lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; -x_16 = lean_ctor_get(x_5, 0); -x_17 = lean_ctor_get_uint8(x_5, sizeof(void*)*3); -x_18 = lean_ctor_get(x_5, 1); -x_19 = lean_ctor_get(x_5, 2); +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1(x_1, x_4, x_7); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_inc(x_18); -lean_inc(x_16); -lean_dec(x_5); -x_20 = lean_array_uget(x_1, x_2); -x_21 = lean_box(0); -x_22 = lean_array_push(x_16, x_20); -x_23 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_18); -lean_ctor_set(x_23, 2, x_19); -lean_ctor_set_uint8(x_23, sizeof(void*)*3, x_17); -x_24 = 1; -x_25 = lean_usize_add(x_2, x_24); -x_2 = x_25; -x_4 = x_21; -x_5 = x_23; -goto _start; -} +x_20 = lean_unbox(x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_18); +if (x_21 == 0) +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_18, 0); +lean_dec(x_22); +x_23 = 0; +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_6); +lean_ctor_set(x_18, 0, x_25); +return x_18; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_4); -lean_ctor_set(x_27, 1, x_5); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_6); -return x_28; -} -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(x_1, x_2, x_3, x_4, x_10, x_11); -return x_12; -} -} -LEAN_EXPORT uint8_t l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_3; -x_3 = 1; -return x_3; -} -else -{ -uint8_t x_4; -x_4 = 0; -return x_4; -} -} -else -{ -if (lean_obj_tag(x_2) == 0) -{ -uint8_t x_5; -x_5 = 0; -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint8_t x_10; -x_6 = lean_ctor_get(x_1, 0); -x_7 = lean_ctor_get(x_2, 0); -x_8 = lean_unbox_uint64(x_6); -x_9 = lean_unbox_uint64(x_7); -x_10 = lean_uint64_dec_eq(x_8, x_9); -return x_10; -} -} -} -} -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; uint8_t x_19; lean_object* x_20; lean_object* x_21; -switch (lean_obj_tag(x_4)) { -case 0: -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_3, 2); -x_27 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_2, x_26, x_11); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec(x_18); +x_27 = 0; +x_28 = lean_box(x_27); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_6); x_30 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_10); -lean_ctor_set(x_27, 0, x_30); -return x_27; +lean_ctor_set(x_30, 1, x_26); +return x_30; +} } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_31 = lean_ctor_get(x_27, 0); -x_32 = lean_ctor_get(x_27, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_27); -x_33 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_10); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -case 1: +uint8_t x_31; +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_44; uint8_t x_45; -x_35 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_2, x_5, x_11); -x_36 = lean_ctor_get(x_35, 0); +lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; +x_32 = lean_ctor_get(x_18, 0); +lean_dec(x_32); +x_33 = 1; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_6); +lean_ctor_set(x_18, 0, x_35); +return x_18; +} +else +{ +lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_36 = lean_ctor_get(x_18, 1); lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_38 = x_35; -} else { - lean_dec_ref(x_35); - x_38 = lean_box(0); -} -x_44 = lean_ctor_get(x_9, 0); -x_45 = lean_ctor_get_uint8(x_44, sizeof(void*)*2); -if (x_45 == 0) -{ -lean_dec(x_36); -x_39 = x_45; -goto block_43; -} -else -{ -uint8_t x_46; -x_46 = lean_unbox(x_36); -lean_dec(x_36); -x_39 = x_46; -goto block_43; -} -block_43: -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_box(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_10); -if (lean_is_scalar(x_38)) { - x_42 = lean_alloc_ctor(0, 2, 0); -} else { - x_42 = x_38; -} -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_37); -return x_42; +lean_dec(x_18); +x_37 = 1; +x_38 = lean_box(x_37); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_6); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_36); +return x_40; } } -default: -{ -uint8_t x_47; -x_47 = !lean_is_exclusive(x_4); -if (x_47 == 0) -{ -lean_object* x_48; uint64_t x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; uint64_t x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_48 = lean_ctor_get(x_4, 0); -x_49 = lean_ctor_get_uint64(x_48, sizeof(void*)*3); -x_50 = lean_ctor_get(x_48, 2); -lean_inc_ref(x_50); -lean_dec_ref(x_48); -x_88 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_89 = lean_box_uint64(x_49); -lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_89); -x_90 = lean_box_uint64(x_88); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_90); -x_92 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2(x_91, x_4); -lean_dec_ref(x_4); -lean_dec_ref(x_91); -if (x_92 == 0) -{ -lean_object* x_93; uint8_t x_94; -x_93 = lean_ctor_get(x_9, 0); -x_94 = lean_ctor_get_uint8(x_93, sizeof(void*)*2); -if (x_94 == 0) -{ -lean_dec_ref(x_50); -x_12 = x_94; -x_13 = x_10; -x_14 = x_11; -goto block_18; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_95 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_2, x_5, x_11); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec_ref(x_95); -x_98 = lean_unbox(x_96); -lean_dec(x_96); -x_51 = x_98; -x_52 = x_10; -x_53 = x_97; -goto block_87; } } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; -x_99 = l_System_FilePath_pathExists(x_2, x_11); -x_100 = lean_ctor_get(x_99, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_99, 1); -lean_inc(x_101); -lean_dec_ref(x_99); -x_102 = lean_unbox(x_100); -lean_dec(x_100); -x_51 = x_102; -x_52 = x_10; -x_53 = x_101; -goto block_87; +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = l_System_FilePath_pathExists(x_1, x_7); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_unbox(x_42); +lean_dec(x_42); +if (x_43 == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_41); +if (x_44 == 0) +{ +lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_41, 0); +lean_dec(x_45); +x_46 = 0; +x_47 = lean_box(x_46); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_6); +lean_ctor_set(x_41, 0, x_48); +return x_41; } -block_87: +else { -if (x_51 == 0) -{ -lean_dec_ref(x_50); -x_12 = x_51; -x_13 = x_52; -x_14 = x_53; -goto block_18; +lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_41, 1); +lean_inc(x_49); +lean_dec(x_41); +x_50 = 0; +x_51 = lean_box(x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_6); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_49); +return x_53; +} } else { uint8_t x_54; -x_54 = !lean_is_exclusive(x_52); +x_54 = !lean_is_exclusive(x_41); if (x_54 == 0) { -uint8_t x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_55 = lean_ctor_get_uint8(x_52, sizeof(void*)*3); +lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_41, 0); +lean_dec(x_55); +x_56 = 2; +x_57 = lean_box(x_56); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_6); +lean_ctor_set(x_41, 0, x_58); +return x_41; +} +else +{ +lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_59 = lean_ctor_get(x_41, 1); +lean_inc(x_59); +lean_dec(x_41); +x_60 = 2; +x_61 = lean_box(x_60); +x_62 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_6); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_4) == 2) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_4); +if (x_12 == 0) +{ +lean_object* x_13; uint64_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_29; uint8_t x_30; uint8_t x_31; +x_13 = lean_ctor_get(x_4, 0); +x_14 = lean_ctor_get_uint64(x_13, sizeof(void*)*3); +x_15 = lean_ctor_get(x_13, 2); +lean_inc_ref(x_15); +lean_dec_ref(x_13); +x_16 = lean_box_uint64(x_14); +lean_ctor_set_tag(x_4, 1); +lean_ctor_set(x_4, 0, x_16); +x_17 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(x_2, x_3, x_4, x_5, x_9, x_10, x_11); +lean_dec_ref(x_4); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +if (lean_is_exclusive(x_17)) { + lean_ctor_release(x_17, 0); + lean_ctor_release(x_17, 1); + x_20 = x_17; +} else { + lean_dec_ref(x_17); + x_20 = lean_box(0); +} +x_21 = lean_ctor_get(x_18, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_18, 1); +lean_inc(x_22); +if (lean_is_exclusive(x_18)) { + lean_ctor_release(x_18, 0); + lean_ctor_release(x_18, 1); + x_23 = x_18; +} else { + lean_dec_ref(x_18); + x_23 = lean_box(0); +} +x_29 = 0; +x_30 = lean_unbox(x_21); +x_31 = l_Lake_instDecidableEqOutputStatus(x_30, x_29); +if (x_31 == 0) +{ +uint8_t x_32; +x_32 = !lean_is_exclusive(x_22); +if (x_32 == 0) +{ +uint8_t x_33; uint8_t x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; +x_33 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_34 = 1; +x_35 = l_Lake_JobAction_merge(x_33, x_34); +lean_ctor_set_uint8(x_22, sizeof(void*)*3, x_35); +x_36 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_22, x_19); +lean_dec_ref(x_15); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +if (lean_obj_tag(x_37) == 0) +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec_ref(x_36); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec_ref(x_37); +x_24 = x_39; +x_25 = x_38; +goto block_28; +} +else +{ +uint8_t x_40; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +x_40 = !lean_is_exclusive(x_36); +if (x_40 == 0) +{ +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_36, 0); +lean_dec(x_41); +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +return x_36; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 0); +x_44 = lean_ctor_get(x_37, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_37); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_36, 0, x_45); +return x_36; +} +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_46 = lean_ctor_get(x_36, 1); +lean_inc(x_46); +lean_dec(x_36); +x_47 = lean_ctor_get(x_37, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_37, 1); +lean_inc(x_48); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_49 = x_37; +} else { + lean_dec_ref(x_37); + x_49 = lean_box(0); +} +if (lean_is_scalar(x_49)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_49; +} +lean_ctor_set(x_50, 0, x_47); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_46); +return x_51; +} +} +} +else +{ +lean_object* x_52; uint8_t x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_52 = lean_ctor_get(x_22, 0); +x_53 = lean_ctor_get_uint8(x_22, sizeof(void*)*3); +x_54 = lean_ctor_get(x_22, 1); +x_55 = lean_ctor_get(x_22, 2); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_52); +lean_dec(x_22); x_56 = 1; -x_57 = l_Lake_JobAction_merge(x_55, x_56); -lean_ctor_set_uint8(x_52, sizeof(void*)*3, x_57); -x_58 = lean_unsigned_to_nat(0u); -x_59 = lean_array_get_size(x_50); -x_60 = lean_nat_dec_lt(x_58, x_59); -if (x_60 == 0) +x_57 = l_Lake_JobAction_merge(x_53, x_56); +x_58 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_58, 0, x_52); +lean_ctor_set(x_58, 1, x_54); +lean_ctor_set(x_58, 2, x_55); +lean_ctor_set_uint8(x_58, sizeof(void*)*3, x_57); +x_59 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_15, x_1, x_6, x_7, x_8, x_9, x_58, x_19); +lean_dec_ref(x_15); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +if (lean_obj_tag(x_60) == 0) { -lean_dec(x_59); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_52; -x_21 = x_53; -goto block_25; +lean_object* x_61; lean_object* x_62; +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec_ref(x_59); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec_ref(x_60); +x_24 = x_62; +x_25 = x_61; +goto block_28; } else { -uint8_t x_61; -x_61 = lean_nat_dec_le(x_59, x_59); -if (x_61 == 0) -{ -lean_dec(x_59); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_52; -x_21 = x_53; -goto block_25; +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_20); +x_63 = lean_ctor_get(x_59, 1); +lean_inc(x_63); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + x_64 = x_59; +} else { + lean_dec_ref(x_59); + x_64 = lean_box(0); } -else -{ -lean_object* x_62; size_t x_63; size_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_62 = lean_box(0); -x_63 = 0; -x_64 = lean_usize_of_nat(x_59); -lean_dec(x_59); -x_65 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(x_50, x_63, x_64, x_62, x_52, x_53); -lean_dec_ref(x_50); -x_66 = lean_ctor_get(x_65, 0); +x_65 = lean_ctor_get(x_60, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_60, 1); lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); -lean_inc(x_67); -lean_dec_ref(x_65); -x_68 = lean_ctor_get(x_66, 1); -lean_inc(x_68); -lean_dec(x_66); -x_19 = x_51; -x_20 = x_68; -x_21 = x_67; -goto block_25; +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_67 = x_60; +} else { + lean_dec_ref(x_60); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +if (lean_is_scalar(x_64)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_64; +} +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_63); +return x_69; } } } else { -lean_object* x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; uint8_t x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_69 = lean_ctor_get(x_52, 0); -x_70 = lean_ctor_get_uint8(x_52, sizeof(void*)*3); -x_71 = lean_ctor_get(x_52, 1); -x_72 = lean_ctor_get(x_52, 2); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_69); -lean_dec(x_52); -x_73 = 1; -x_74 = l_Lake_JobAction_merge(x_70, x_73); -x_75 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_75, 0, x_69); -lean_ctor_set(x_75, 1, x_71); -lean_ctor_set(x_75, 2, x_72); -lean_ctor_set_uint8(x_75, sizeof(void*)*3, x_74); -x_76 = lean_unsigned_to_nat(0u); -x_77 = lean_array_get_size(x_50); -x_78 = lean_nat_dec_lt(x_76, x_77); -if (x_78 == 0) +lean_dec_ref(x_15); +x_24 = x_22; +x_25 = x_19; +goto block_28; +} +block_28: { -lean_dec(x_77); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_75; -x_21 = x_53; -goto block_25; -} -else -{ -uint8_t x_79; -x_79 = lean_nat_dec_le(x_77, x_77); -if (x_79 == 0) -{ -lean_dec(x_77); -lean_dec_ref(x_50); -x_19 = x_51; -x_20 = x_75; -x_21 = x_53; -goto block_25; -} -else -{ -lean_object* x_80; size_t x_81; size_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_80 = lean_box(0); -x_81 = 0; -x_82 = lean_usize_of_nat(x_77); -lean_dec(x_77); -x_83 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(x_50, x_81, x_82, x_80, x_75, x_53); -lean_dec_ref(x_50); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_83, 1); -lean_inc(x_85); -lean_dec_ref(x_83); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_19 = x_51; -x_20 = x_86; -x_21 = x_85; -goto block_25; -} -} +lean_object* x_26; lean_object* x_27; +if (lean_is_scalar(x_23)) { + x_26 = lean_alloc_ctor(0, 2, 0); +} else { + x_26 = x_23; } +lean_ctor_set(x_26, 0, x_21); +lean_ctor_set(x_26, 1, x_24); +if (lean_is_scalar(x_20)) { + x_27 = lean_alloc_ctor(0, 2, 0); +} else { + x_27 = x_20; } +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; } } else { -lean_object* x_103; uint64_t x_104; lean_object* x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; uint64_t x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; -x_103 = lean_ctor_get(x_4, 0); -lean_inc(x_103); +lean_object* x_70; uint64_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_87; uint8_t x_88; uint8_t x_89; +x_70 = lean_ctor_get(x_4, 0); +lean_inc(x_70); lean_dec(x_4); -x_104 = lean_ctor_get_uint64(x_103, sizeof(void*)*3); -x_105 = lean_ctor_get(x_103, 2); -lean_inc_ref(x_105); -lean_dec_ref(x_103); -x_129 = lean_ctor_get_uint64(x_3, sizeof(void*)*3); -x_130 = lean_box_uint64(x_104); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_130); -x_132 = lean_box_uint64(x_129); -x_133 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_133, 0, x_132); -x_134 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2(x_133, x_131); -lean_dec_ref(x_131); -lean_dec_ref(x_133); -if (x_134 == 0) -{ -lean_object* x_135; uint8_t x_136; -x_135 = lean_ctor_get(x_9, 0); -x_136 = lean_ctor_get_uint8(x_135, sizeof(void*)*2); -if (x_136 == 0) -{ -lean_dec_ref(x_105); -x_12 = x_136; -x_13 = x_10; -x_14 = x_11; -goto block_18; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_2, x_5, x_11); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec_ref(x_137); -x_140 = lean_unbox(x_138); -lean_dec(x_138); -x_106 = x_140; -x_107 = x_10; -x_108 = x_139; -goto block_128; -} -} -else -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; -x_141 = l_System_FilePath_pathExists(x_2, x_11); -x_142 = lean_ctor_get(x_141, 0); -lean_inc(x_142); -x_143 = lean_ctor_get(x_141, 1); -lean_inc(x_143); -lean_dec_ref(x_141); -x_144 = lean_unbox(x_142); -lean_dec(x_142); -x_106 = x_144; -x_107 = x_10; -x_108 = x_143; -goto block_128; -} -block_128: -{ -if (x_106 == 0) -{ -lean_dec_ref(x_105); -x_12 = x_106; -x_13 = x_107; -x_14 = x_108; -goto block_18; -} -else -{ -lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_109 = lean_ctor_get(x_107, 0); -lean_inc_ref(x_109); -x_110 = lean_ctor_get_uint8(x_107, sizeof(void*)*3); -x_111 = lean_ctor_get(x_107, 1); -lean_inc_ref(x_111); -x_112 = lean_ctor_get(x_107, 2); -lean_inc(x_112); -if (lean_is_exclusive(x_107)) { - lean_ctor_release(x_107, 0); - lean_ctor_release(x_107, 1); - lean_ctor_release(x_107, 2); - x_113 = x_107; +x_71 = lean_ctor_get_uint64(x_70, sizeof(void*)*3); +x_72 = lean_ctor_get(x_70, 2); +lean_inc_ref(x_72); +lean_dec_ref(x_70); +x_73 = lean_box_uint64(x_71); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(x_2, x_3, x_74, x_5, x_9, x_10, x_11); +lean_dec_ref(x_74); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_78 = x_75; } else { - lean_dec_ref(x_107); - x_113 = lean_box(0); + lean_dec_ref(x_75); + x_78 = lean_box(0); } -x_114 = 1; -x_115 = l_Lake_JobAction_merge(x_110, x_114); -if (lean_is_scalar(x_113)) { - x_116 = lean_alloc_ctor(0, 3, 1); +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +if (lean_is_exclusive(x_76)) { + lean_ctor_release(x_76, 0); + lean_ctor_release(x_76, 1); + x_81 = x_76; } else { - x_116 = x_113; + lean_dec_ref(x_76); + x_81 = lean_box(0); } -lean_ctor_set(x_116, 0, x_109); -lean_ctor_set(x_116, 1, x_111); -lean_ctor_set(x_116, 2, x_112); -lean_ctor_set_uint8(x_116, sizeof(void*)*3, x_115); -x_117 = lean_unsigned_to_nat(0u); -x_118 = lean_array_get_size(x_105); -x_119 = lean_nat_dec_lt(x_117, x_118); -if (x_119 == 0) +x_87 = 0; +x_88 = lean_unbox(x_79); +x_89 = l_Lake_instDecidableEqOutputStatus(x_88, x_87); +if (x_89 == 0) { -lean_dec(x_118); -lean_dec_ref(x_105); -x_19 = x_106; -x_20 = x_116; -x_21 = x_108; -goto block_25; +lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_90 = lean_ctor_get(x_80, 0); +lean_inc_ref(x_90); +x_91 = lean_ctor_get_uint8(x_80, sizeof(void*)*3); +x_92 = lean_ctor_get(x_80, 1); +lean_inc_ref(x_92); +x_93 = lean_ctor_get(x_80, 2); +lean_inc(x_93); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + lean_ctor_release(x_80, 2); + x_94 = x_80; +} else { + lean_dec_ref(x_80); + x_94 = lean_box(0); +} +x_95 = 1; +x_96 = l_Lake_JobAction_merge(x_91, x_95); +if (lean_is_scalar(x_94)) { + x_97 = lean_alloc_ctor(0, 3, 1); +} else { + x_97 = x_94; +} +lean_ctor_set(x_97, 0, x_90); +lean_ctor_set(x_97, 1, x_92); +lean_ctor_set(x_97, 2, x_93); +lean_ctor_set_uint8(x_97, sizeof(void*)*3, x_96); +x_98 = l___private_Lake_Build_Common_0__Lake_SavedTrace_replayIfUpToDate_x27_replay(x_72, x_1, x_6, x_7, x_8, x_9, x_97, x_77); +lean_dec_ref(x_72); +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +if (lean_obj_tag(x_99) == 0) +{ +lean_object* x_100; lean_object* x_101; +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec_ref(x_98); +x_101 = lean_ctor_get(x_99, 1); +lean_inc(x_101); +lean_dec_ref(x_99); +x_82 = x_101; +x_83 = x_100; +goto block_86; } else { -uint8_t x_120; -x_120 = lean_nat_dec_le(x_118, x_118); -if (x_120 == 0) -{ -lean_dec(x_118); -lean_dec_ref(x_105); -x_19 = x_106; -x_20 = x_116; -x_21 = x_108; -goto block_25; +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_81); +lean_dec(x_79); +lean_dec(x_78); +x_102 = lean_ctor_get(x_98, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_103 = x_98; +} else { + lean_dec_ref(x_98); + x_103 = lean_box(0); +} +x_104 = lean_ctor_get(x_99, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_99, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_99)) { + lean_ctor_release(x_99, 0); + lean_ctor_release(x_99, 1); + x_106 = x_99; +} else { + lean_dec_ref(x_99); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(1, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_104); +lean_ctor_set(x_107, 1, x_105); +if (lean_is_scalar(x_103)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_103; +} +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_102); +return x_108; +} } else { -lean_object* x_121; size_t x_122; size_t x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_121 = lean_box(0); -x_122 = 0; -x_123 = lean_usize_of_nat(x_118); -lean_dec(x_118); -x_124 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(x_105, x_122, x_123, x_121, x_116, x_108); -lean_dec_ref(x_105); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -x_126 = lean_ctor_get(x_124, 1); -lean_inc(x_126); -lean_dec_ref(x_124); -x_127 = lean_ctor_get(x_125, 1); -lean_inc(x_127); -lean_dec(x_125); -x_19 = x_106; -x_20 = x_127; -x_21 = x_126; -goto block_25; +lean_dec_ref(x_72); +x_82 = x_80; +x_83 = x_77; +goto block_86; } -} -} -} -} -} -} -block_18: +block_86: { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_box(x_12); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_14); -return x_17; +lean_object* x_84; lean_object* x_85; +if (lean_is_scalar(x_81)) { + x_84 = lean_alloc_ctor(0, 2, 0); +} else { + x_84 = x_81; } -block_25: +lean_ctor_set(x_84, 0, x_79); +lean_ctor_set(x_84, 1, x_82); +if (lean_is_scalar(x_78)) { + x_85 = lean_alloc_ctor(0, 2, 0); +} else { + x_85 = x_78; +} +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_83); +return x_85; +} +} +} +else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_22 = lean_box(x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; +lean_object* x_109; uint8_t x_110; +lean_dec(x_4); +x_109 = lean_ctor_get(x_9, 0); +x_110 = lean_ctor_get_uint8(x_109, sizeof(void*)*2); +if (x_110 == 0) +{ +uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_111 = 0; +x_112 = lean_box(x_111); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_10); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_11); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; uint8_t x_117; +x_115 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1(x_2, x_5, x_11); +x_116 = lean_ctor_get(x_115, 0); +lean_inc(x_116); +x_117 = lean_unbox(x_116); +lean_dec(x_116); +if (x_117 == 0) +{ +uint8_t x_118; +x_118 = !lean_is_exclusive(x_115); +if (x_118 == 0) +{ +lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; +x_119 = lean_ctor_get(x_115, 0); +lean_dec(x_119); +x_120 = 0; +x_121 = lean_box(x_120); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_10); +lean_ctor_set(x_115, 0, x_122); +return x_115; +} +else +{ +lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_123 = lean_ctor_get(x_115, 1); +lean_inc(x_123); +lean_dec(x_115); +x_124 = 0; +x_125 = lean_box(x_124); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_10); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_123); +return x_127; +} +} +else +{ +uint8_t x_128; +x_128 = !lean_is_exclusive(x_115); +if (x_128 == 0) +{ +lean_object* x_129; uint8_t x_130; lean_object* x_131; lean_object* x_132; +x_129 = lean_ctor_get(x_115, 0); +lean_dec(x_129); +x_130 = 1; +x_131 = lean_box(x_130); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_10); +lean_ctor_set(x_115, 0, x_132); +return x_115; +} +else +{ +lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_133 = lean_ctor_get(x_115, 1); +lean_inc(x_133); +lean_dec(x_115); +x_134 = 1; +x_135 = lean_box(x_134); +x_136 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_10); +x_137 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_133); +return x_137; +} +} +} } } } @@ -10249,7 +10403,7 @@ x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); if (lean_obj_tag(x_23) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; lean_object* x_44; uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_110; lean_object* x_117; uint8_t x_118; +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec_ref(x_22); @@ -10257,769 +10411,783 @@ x_25 = lean_ctor_get(x_23, 0); lean_inc(x_25); x_26 = lean_ctor_get(x_23, 1); lean_inc(x_26); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - lean_ctor_release(x_23, 1); - x_27 = x_23; -} else { - lean_dec_ref(x_23); - x_27 = lean_box(0); -} -x_28 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__1; -x_29 = lean_string_hash(x_2); -x_30 = lean_uint64_mix_hash(x_28, x_29); -x_31 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__2; -x_32 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3; -x_33 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__5; -x_34 = lean_alloc_ctor(0, 3, 8); -lean_ctor_set(x_34, 0, x_31); -lean_ctor_set(x_34, 1, x_32); -lean_ctor_set(x_34, 2, x_33); -lean_ctor_set_uint64(x_34, sizeof(void*)*3, x_30); -lean_ctor_set(x_10, 0, x_26); -x_35 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_34, x_25, x_33, x_6, x_7, x_8, x_9, x_10, x_24); -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); -lean_inc(x_37); -x_38 = 2; -x_117 = lean_ctor_get(x_36, 0); -lean_inc(x_117); -x_118 = lean_unbox(x_117); -if (x_118 == 0) -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -lean_dec_ref(x_35); -x_119 = lean_ctor_get(x_36, 1); -lean_inc(x_119); -lean_dec(x_36); -lean_inc_ref(x_3); -x_120 = l_Lake_buildAction___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__4___redArg(x_2, x_3, x_4, x_34, x_21, x_38, x_9, x_119, x_37); -lean_dec_ref(x_21); -lean_dec_ref(x_34); -x_121 = lean_ctor_get(x_120, 0); -lean_inc(x_121); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_122 = lean_ctor_get(x_120, 1); -lean_inc(x_122); -lean_dec_ref(x_120); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec_ref(x_121); -x_124 = lean_unbox(x_117); -lean_dec(x_117); -x_80 = x_124; -x_81 = x_123; -x_82 = x_122; -goto block_109; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -lean_dec(x_117); -lean_dec(x_27); -lean_dec_ref(x_3); -lean_dec_ref(x_1); -x_125 = lean_ctor_get(x_120, 1); -lean_inc(x_125); -lean_dec_ref(x_120); -x_126 = lean_ctor_get(x_121, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_121, 1); -lean_inc(x_127); -lean_dec_ref(x_121); -x_12 = x_126; -x_13 = x_127; -x_14 = x_125; -goto block_17; -} -} -else -{ -lean_dec(x_117); -lean_dec(x_37); -lean_dec(x_36); -lean_dec_ref(x_34); -lean_dec_ref(x_21); -lean_dec_ref(x_2); -x_110 = x_35; -goto block_116; -} -block_79: -{ -uint8_t x_45; lean_object* x_46; uint8_t x_47; -x_45 = 1; -x_46 = l_Lake_untar(x_3, x_42, x_45, x_40, x_41); -x_47 = !lean_is_exclusive(x_46); -if (x_47 == 0) -{ -lean_object* x_48; uint8_t x_49; -x_48 = lean_ctor_get(x_46, 0); -x_49 = l_Lake_JobAction_merge(x_43, x_38); -if (lean_obj_tag(x_48) == 0) -{ -uint8_t x_50; -x_50 = !lean_is_exclusive(x_48); -if (x_50 == 0) -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_48, 1); -x_52 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_39); -lean_ctor_set(x_52, 2, x_44); -lean_ctor_set_uint8(x_52, sizeof(void*)*3, x_49); -lean_ctor_set(x_48, 1, x_52); -return x_46; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_53 = lean_ctor_get(x_48, 0); -x_54 = lean_ctor_get(x_48, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_48); -x_55 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_39); -lean_ctor_set(x_55, 2, x_44); -lean_ctor_set_uint8(x_55, sizeof(void*)*3, x_49); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_53); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_46, 0, x_56); -return x_46; -} -} -else -{ -uint8_t x_57; -x_57 = !lean_is_exclusive(x_48); -if (x_57 == 0) -{ -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_48, 1); -x_59 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_39); -lean_ctor_set(x_59, 2, x_44); -lean_ctor_set_uint8(x_59, sizeof(void*)*3, x_49); -lean_ctor_set(x_48, 1, x_59); -return x_46; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_60 = lean_ctor_get(x_48, 0); -x_61 = lean_ctor_get(x_48, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_48); -x_62 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_39); -lean_ctor_set(x_62, 2, x_44); -lean_ctor_set_uint8(x_62, sizeof(void*)*3, x_49); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_60); -lean_ctor_set(x_63, 1, x_62); -lean_ctor_set(x_46, 0, x_63); -return x_46; -} -} -} -else -{ -lean_object* x_64; lean_object* x_65; uint8_t x_66; -x_64 = lean_ctor_get(x_46, 0); -x_65 = lean_ctor_get(x_46, 1); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_46); -x_66 = l_Lake_JobAction_merge(x_43, x_38); -if (lean_obj_tag(x_64) == 0) -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_67 = lean_ctor_get(x_64, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_64, 1); -lean_inc(x_68); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_69 = x_64; -} else { - lean_dec_ref(x_64); - x_69 = lean_box(0); -} -x_70 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_39); -lean_ctor_set(x_70, 2, x_44); -lean_ctor_set_uint8(x_70, sizeof(void*)*3, x_66); -if (lean_is_scalar(x_69)) { - x_71 = lean_alloc_ctor(0, 2, 0); -} else { - x_71 = x_69; -} -lean_ctor_set(x_71, 0, x_67); -lean_ctor_set(x_71, 1, x_70); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_65); -return x_72; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_73 = lean_ctor_get(x_64, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_64, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_75 = x_64; -} else { - lean_dec_ref(x_64); - x_75 = lean_box(0); -} -x_76 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_39); -lean_ctor_set(x_76, 2, x_44); -lean_ctor_set_uint8(x_76, sizeof(void*)*3, x_66); -if (lean_is_scalar(x_75)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_75; -} -lean_ctor_set(x_77, 0, x_73); -lean_ctor_set(x_77, 1, x_76); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_65); -return x_78; -} -} -} -block_109: -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_83 = lean_ctor_get(x_1, 4); -lean_inc_ref(x_83); -x_84 = lean_ctor_get(x_1, 2); -lean_inc_ref(x_84); -lean_dec_ref(x_1); -x_85 = lean_ctor_get(x_83, 6); -lean_inc_ref(x_85); -lean_dec_ref(x_83); -x_86 = l_System_FilePath_normalize(x_85); -x_87 = l_Lake_joinRelative(x_84, x_86); -lean_dec_ref(x_86); -x_88 = l_System_FilePath_pathExists(x_87, x_82); -if (x_80 == 0) -{ -lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_27); -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -lean_dec_ref(x_88); -x_90 = lean_ctor_get(x_81, 0); -lean_inc_ref(x_90); -x_91 = lean_ctor_get_uint8(x_81, sizeof(void*)*3); -x_92 = lean_ctor_get(x_81, 1); -lean_inc_ref(x_92); -x_93 = lean_ctor_get(x_81, 2); -lean_inc(x_93); -lean_dec_ref(x_81); -x_39 = x_92; -x_40 = x_90; -x_41 = x_89; -x_42 = x_87; -x_43 = x_91; -x_44 = x_93; -goto block_79; -} -else -{ -lean_object* x_94; uint8_t x_95; -x_94 = lean_ctor_get(x_88, 0); -lean_inc(x_94); -x_95 = lean_unbox(x_94); -lean_dec(x_94); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; uint8_t x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_27); -x_96 = lean_ctor_get(x_88, 1); -lean_inc(x_96); -lean_dec_ref(x_88); -x_97 = lean_ctor_get(x_81, 0); -lean_inc_ref(x_97); -x_98 = lean_ctor_get_uint8(x_81, sizeof(void*)*3); -x_99 = lean_ctor_get(x_81, 1); -lean_inc_ref(x_99); -x_100 = lean_ctor_get(x_81, 2); -lean_inc(x_100); -lean_dec_ref(x_81); -x_39 = x_99; -x_40 = x_97; -x_41 = x_96; -x_42 = x_87; -x_43 = x_98; -x_44 = x_100; -goto block_79; -} -else -{ -uint8_t x_101; -lean_dec_ref(x_87); -lean_dec_ref(x_3); -x_101 = !lean_is_exclusive(x_88); -if (x_101 == 0) -{ -lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_102 = lean_ctor_get(x_88, 0); -lean_dec(x_102); -x_103 = lean_box(0); -if (lean_is_scalar(x_27)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_27; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_81); -lean_ctor_set(x_88, 0, x_104); -return x_88; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_88, 1); -lean_inc(x_105); -lean_dec(x_88); -x_106 = lean_box(0); -if (lean_is_scalar(x_27)) { - x_107 = lean_alloc_ctor(0, 2, 0); -} else { - x_107 = x_27; -} -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_81); -x_108 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_108, 0, x_107); -lean_ctor_set(x_108, 1, x_105); -return x_108; -} -} -} -} -block_116: -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; -x_111 = lean_ctor_get(x_110, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -lean_dec_ref(x_110); -x_113 = lean_ctor_get(x_111, 0); -lean_inc(x_113); -x_114 = lean_ctor_get(x_111, 1); -lean_inc(x_114); -lean_dec(x_111); -x_115 = lean_unbox(x_113); -lean_dec(x_113); -x_80 = x_115; -x_81 = x_114; -x_82 = x_112; -goto block_109; -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -lean_dec_ref(x_21); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_128 = lean_ctor_get(x_22, 1); -lean_inc(x_128); -lean_dec_ref(x_22); -x_129 = lean_ctor_get(x_23, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_23, 1); -lean_inc(x_130); lean_dec_ref(x_23); -lean_ctor_set(x_10, 0, x_130); -x_12 = x_129; -x_13 = x_10; -x_14 = x_128; -goto block_17; -} -} -else +x_27 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__1; +x_28 = lean_string_hash(x_2); +x_29 = lean_uint64_mix_hash(x_27, x_28); +x_30 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__2; +x_31 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3; +x_32 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__5; +x_33 = lean_alloc_ctor(0, 3, 8); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set(x_33, 2, x_32); +lean_ctor_set_uint64(x_33, sizeof(void*)*3, x_29); +lean_ctor_set(x_10, 0, x_26); +x_34 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_33, x_25, x_32, x_6, x_7, x_8, x_9, x_10, x_24); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) { -lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_131 = lean_ctor_get(x_10, 0); -x_132 = lean_ctor_get_uint8(x_10, sizeof(void*)*3); -x_133 = lean_ctor_get(x_10, 1); -x_134 = lean_ctor_get(x_10, 2); -lean_inc(x_134); -lean_inc(x_133); -lean_inc(x_131); -lean_dec(x_10); -x_135 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__0; -lean_inc_ref(x_3); -x_136 = l_System_FilePath_addExtension(x_3, x_135); -lean_inc_ref(x_136); -x_137 = l_Lake_readTraceFile(x_136, x_131, x_11); -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -if (lean_obj_tag(x_138) == 0) -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint64_t x_143; uint64_t x_144; uint64_t x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; lean_object* x_160; uint8_t x_180; lean_object* x_181; lean_object* x_182; lean_object* x_207; lean_object* x_214; uint8_t x_215; -x_139 = lean_ctor_get(x_137, 1); -lean_inc(x_139); -lean_dec_ref(x_137); -x_140 = lean_ctor_get(x_138, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_138, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_142 = x_138; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_82; lean_object* x_83; lean_object* x_84; uint8_t x_112; uint8_t x_113; uint8_t x_114; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec_ref(x_34); +x_37 = lean_ctor_get(x_35, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +if (lean_is_exclusive(x_35)) { + lean_ctor_release(x_35, 0); + lean_ctor_release(x_35, 1); + x_39 = x_35; } else { - lean_dec_ref(x_138); - x_142 = lean_box(0); + lean_dec_ref(x_35); + x_39 = lean_box(0); } -x_143 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__1; -x_144 = lean_string_hash(x_2); -x_145 = lean_uint64_mix_hash(x_143, x_144); -x_146 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__2; -x_147 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3; -x_148 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__5; -x_149 = lean_alloc_ctor(0, 3, 8); -lean_ctor_set(x_149, 0, x_146); -lean_ctor_set(x_149, 1, x_147); -lean_ctor_set(x_149, 2, x_148); -lean_ctor_set_uint64(x_149, sizeof(void*)*3, x_145); -x_150 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_150, 0, x_141); -lean_ctor_set(x_150, 1, x_133); -lean_ctor_set(x_150, 2, x_134); -lean_ctor_set_uint8(x_150, sizeof(void*)*3, x_132); -x_151 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_149, x_140, x_148, x_6, x_7, x_8, x_9, x_150, x_139); -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -x_154 = 2; -x_214 = lean_ctor_get(x_152, 0); -lean_inc(x_214); -x_215 = lean_unbox(x_214); -if (x_215 == 0) +x_40 = 2; +x_112 = 0; +x_113 = lean_unbox(x_37); +lean_dec(x_37); +x_114 = l_Lake_instDecidableEqOutputStatus(x_113, x_112); +if (x_114 == 0) { -lean_object* x_216; lean_object* x_217; lean_object* x_218; -lean_dec_ref(x_151); -x_216 = lean_ctor_get(x_152, 1); -lean_inc(x_216); -lean_dec(x_152); -lean_inc_ref(x_3); -x_217 = l_Lake_buildAction___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__4___redArg(x_2, x_3, x_4, x_149, x_136, x_154, x_9, x_216, x_153); -lean_dec_ref(x_136); -lean_dec_ref(x_149); -x_218 = lean_ctor_get(x_217, 0); -lean_inc(x_218); -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_219; lean_object* x_220; uint8_t x_221; -x_219 = lean_ctor_get(x_217, 1); -lean_inc(x_219); -lean_dec_ref(x_217); -x_220 = lean_ctor_get(x_218, 1); -lean_inc(x_220); -lean_dec_ref(x_218); -x_221 = lean_unbox(x_214); -lean_dec(x_214); -x_180 = x_221; -x_181 = x_220; -x_182 = x_219; -goto block_206; +uint8_t x_115; +lean_dec_ref(x_33); +lean_dec_ref(x_21); +lean_dec_ref(x_2); +x_115 = 1; +x_82 = x_115; +x_83 = x_38; +x_84 = x_36; +goto block_111; } else { -lean_object* x_222; lean_object* x_223; lean_object* x_224; -lean_dec(x_214); -lean_dec(x_142); +lean_object* x_116; lean_object* x_117; +lean_inc_ref(x_3); +x_116 = l_Lake_buildAction___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__4___redArg(x_2, x_3, x_4, x_33, x_21, x_40, x_9, x_38, x_36); +lean_dec_ref(x_21); +lean_dec_ref(x_33); +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +if (lean_obj_tag(x_117) == 0) +{ +lean_object* x_118; lean_object* x_119; uint8_t x_120; +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec_ref(x_116); +x_119 = lean_ctor_get(x_117, 1); +lean_inc(x_119); +lean_dec_ref(x_117); +x_120 = 0; +x_82 = x_120; +x_83 = x_119; +x_84 = x_118; +goto block_111; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +lean_dec(x_39); lean_dec_ref(x_3); lean_dec_ref(x_1); -x_222 = lean_ctor_get(x_217, 1); -lean_inc(x_222); -lean_dec_ref(x_217); -x_223 = lean_ctor_get(x_218, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_218, 1); -lean_inc(x_224); -lean_dec_ref(x_218); -x_12 = x_223; -x_13 = x_224; -x_14 = x_222; +x_121 = lean_ctor_get(x_116, 1); +lean_inc(x_121); +lean_dec_ref(x_116); +x_122 = lean_ctor_get(x_117, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_117, 1); +lean_inc(x_123); +lean_dec_ref(x_117); +x_12 = x_122; +x_13 = x_123; +x_14 = x_121; +goto block_17; +} +} +block_81: +{ +uint8_t x_47; lean_object* x_48; uint8_t x_49; +x_47 = 1; +x_48 = l_Lake_untar(x_3, x_42, x_47, x_43, x_45); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_48, 0); +x_51 = l_Lake_JobAction_merge(x_41, x_40); +if (lean_obj_tag(x_50) == 0) +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_50); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +x_54 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_44); +lean_ctor_set(x_54, 2, x_46); +lean_ctor_set_uint8(x_54, sizeof(void*)*3, x_51); +lean_ctor_set(x_50, 1, x_54); +return x_48; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_55 = lean_ctor_get(x_50, 0); +x_56 = lean_ctor_get(x_50, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_50); +x_57 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_44); +lean_ctor_set(x_57, 2, x_46); +lean_ctor_set_uint8(x_57, sizeof(void*)*3, x_51); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_55); +lean_ctor_set(x_58, 1, x_57); +lean_ctor_set(x_48, 0, x_58); +return x_48; +} +} +else +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_50); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_50, 1); +x_61 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_44); +lean_ctor_set(x_61, 2, x_46); +lean_ctor_set_uint8(x_61, sizeof(void*)*3, x_51); +lean_ctor_set(x_50, 1, x_61); +return x_48; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_62 = lean_ctor_get(x_50, 0); +x_63 = lean_ctor_get(x_50, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_50); +x_64 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_44); +lean_ctor_set(x_64, 2, x_46); +lean_ctor_set_uint8(x_64, sizeof(void*)*3, x_51); +x_65 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_65, 0, x_62); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_48, 0, x_65); +return x_48; +} +} +} +else +{ +lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_66 = lean_ctor_get(x_48, 0); +x_67 = lean_ctor_get(x_48, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_48); +x_68 = l_Lake_JobAction_merge(x_41, x_40); +if (lean_obj_tag(x_66) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_69 = lean_ctor_get(x_66, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_66, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_71 = x_66; +} else { + lean_dec_ref(x_66); + x_71 = lean_box(0); +} +x_72 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_44); +lean_ctor_set(x_72, 2, x_46); +lean_ctor_set_uint8(x_72, sizeof(void*)*3, x_68); +if (lean_is_scalar(x_71)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_71; +} +lean_ctor_set(x_73, 0, x_69); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_67); +return x_74; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_75 = lean_ctor_get(x_66, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_66, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_66)) { + lean_ctor_release(x_66, 0); + lean_ctor_release(x_66, 1); + x_77 = x_66; +} else { + lean_dec_ref(x_66); + x_77 = lean_box(0); +} +x_78 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_44); +lean_ctor_set(x_78, 2, x_46); +lean_ctor_set_uint8(x_78, sizeof(void*)*3, x_68); +if (lean_is_scalar(x_77)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_77; +} +lean_ctor_set(x_79, 0, x_75); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_67); +return x_80; +} +} +} +block_111: +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_85 = lean_ctor_get(x_1, 4); +lean_inc_ref(x_85); +x_86 = lean_ctor_get(x_1, 2); +lean_inc_ref(x_86); +lean_dec_ref(x_1); +x_87 = lean_ctor_get(x_85, 6); +lean_inc_ref(x_87); +lean_dec_ref(x_85); +x_88 = l_System_FilePath_normalize(x_87); +x_89 = l_Lake_joinRelative(x_86, x_88); +lean_dec_ref(x_88); +x_90 = l_System_FilePath_pathExists(x_89, x_84); +if (x_82 == 0) +{ +lean_object* x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; +lean_dec(x_39); +x_91 = lean_ctor_get(x_90, 1); +lean_inc(x_91); +lean_dec_ref(x_90); +x_92 = lean_ctor_get(x_83, 0); +lean_inc_ref(x_92); +x_93 = lean_ctor_get_uint8(x_83, sizeof(void*)*3); +x_94 = lean_ctor_get(x_83, 1); +lean_inc_ref(x_94); +x_95 = lean_ctor_get(x_83, 2); +lean_inc(x_95); +lean_dec_ref(x_83); +x_41 = x_93; +x_42 = x_89; +x_43 = x_92; +x_44 = x_94; +x_45 = x_91; +x_46 = x_95; +goto block_81; +} +else +{ +lean_object* x_96; uint8_t x_97; +x_96 = lean_ctor_get(x_90, 0); +lean_inc(x_96); +x_97 = lean_unbox(x_96); +lean_dec(x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_39); +x_98 = lean_ctor_get(x_90, 1); +lean_inc(x_98); +lean_dec_ref(x_90); +x_99 = lean_ctor_get(x_83, 0); +lean_inc_ref(x_99); +x_100 = lean_ctor_get_uint8(x_83, sizeof(void*)*3); +x_101 = lean_ctor_get(x_83, 1); +lean_inc_ref(x_101); +x_102 = lean_ctor_get(x_83, 2); +lean_inc(x_102); +lean_dec_ref(x_83); +x_41 = x_100; +x_42 = x_89; +x_43 = x_99; +x_44 = x_101; +x_45 = x_98; +x_46 = x_102; +goto block_81; +} +else +{ +uint8_t x_103; +lean_dec_ref(x_89); +lean_dec_ref(x_3); +x_103 = !lean_is_exclusive(x_90); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +x_104 = lean_ctor_get(x_90, 0); +lean_dec(x_104); +x_105 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_106 = lean_alloc_ctor(0, 2, 0); +} else { + x_106 = x_39; +} +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_83); +lean_ctor_set(x_90, 0, x_106); +return x_90; +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_107 = lean_ctor_get(x_90, 1); +lean_inc(x_107); +lean_dec(x_90); +x_108 = lean_box(0); +if (lean_is_scalar(x_39)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_39; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_83); +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_107); +return x_110; +} +} +} +} +} +else +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec_ref(x_33); +lean_dec_ref(x_21); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_124 = lean_ctor_get(x_34, 1); +lean_inc(x_124); +lean_dec_ref(x_34); +x_125 = lean_ctor_get(x_35, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_35, 1); +lean_inc(x_126); +lean_dec_ref(x_35); +x_12 = x_125; +x_13 = x_126; +x_14 = x_124; goto block_17; } } else { -lean_dec(x_214); -lean_dec(x_153); -lean_dec(x_152); -lean_dec_ref(x_149); -lean_dec_ref(x_136); +lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec_ref(x_21); +lean_dec_ref(x_3); lean_dec_ref(x_2); -x_207 = x_151; -goto block_213; +lean_dec_ref(x_1); +x_127 = lean_ctor_get(x_22, 1); +lean_inc(x_127); +lean_dec_ref(x_22); +x_128 = lean_ctor_get(x_23, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_23, 1); +lean_inc(x_129); +lean_dec_ref(x_23); +lean_ctor_set(x_10, 0, x_129); +x_12 = x_128; +x_13 = x_10; +x_14 = x_127; +goto block_17; } -block_179: +} +else { -uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; -x_161 = 1; -x_162 = l_Lake_untar(x_3, x_158, x_161, x_156, x_157); -x_163 = lean_ctor_get(x_162, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_162, 1); -lean_inc(x_164); -if (lean_is_exclusive(x_162)) { - lean_ctor_release(x_162, 0); - lean_ctor_release(x_162, 1); - x_165 = x_162; +lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_130 = lean_ctor_get(x_10, 0); +x_131 = lean_ctor_get_uint8(x_10, sizeof(void*)*3); +x_132 = lean_ctor_get(x_10, 1); +x_133 = lean_ctor_get(x_10, 2); +lean_inc(x_133); +lean_inc(x_132); +lean_inc(x_130); +lean_dec(x_10); +x_134 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__0; +lean_inc_ref(x_3); +x_135 = l_System_FilePath_addExtension(x_3, x_134); +lean_inc_ref(x_135); +x_136 = l_Lake_readTraceFile(x_135, x_130, x_11); +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +if (lean_obj_tag(x_137) == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; uint64_t x_141; uint64_t x_142; uint64_t x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_138 = lean_ctor_get(x_136, 1); +lean_inc(x_138); +lean_dec_ref(x_136); +x_139 = lean_ctor_get(x_137, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_140); +lean_dec_ref(x_137); +x_141 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__1; +x_142 = lean_string_hash(x_2); +x_143 = lean_uint64_mix_hash(x_141, x_142); +x_144 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__2; +x_145 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__3; +x_146 = l___private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive___closed__5; +x_147 = lean_alloc_ctor(0, 3, 8); +lean_ctor_set(x_147, 0, x_144); +lean_ctor_set(x_147, 1, x_145); +lean_ctor_set(x_147, 2, x_146); +lean_ctor_set_uint64(x_147, sizeof(void*)*3, x_143); +x_148 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_148, 0, x_140); +lean_ctor_set(x_148, 1, x_132); +lean_ctor_set(x_148, 2, x_133); +lean_ctor_set_uint8(x_148, sizeof(void*)*3, x_131); +x_149 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_5, x_3, x_147, x_139, x_146, x_6, x_7, x_8, x_9, x_148, x_138); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; uint8_t x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_181; lean_object* x_182; lean_object* x_183; uint8_t x_208; uint8_t x_209; uint8_t x_210; +x_151 = lean_ctor_get(x_149, 1); +lean_inc(x_151); +lean_dec_ref(x_149); +x_152 = lean_ctor_get(x_150, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_150, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_154 = x_150; } else { - lean_dec_ref(x_162); - x_165 = lean_box(0); + lean_dec_ref(x_150); + x_154 = lean_box(0); } -x_166 = l_Lake_JobAction_merge(x_159, x_154); -if (lean_obj_tag(x_163) == 0) +x_155 = 2; +x_208 = 0; +x_209 = lean_unbox(x_152); +lean_dec(x_152); +x_210 = l_Lake_instDecidableEqOutputStatus(x_209, x_208); +if (x_210 == 0) { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_167 = lean_ctor_get(x_163, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_163, 1); -lean_inc(x_168); +uint8_t x_211; +lean_dec_ref(x_147); +lean_dec_ref(x_135); +lean_dec_ref(x_2); +x_211 = 1; +x_181 = x_211; +x_182 = x_153; +x_183 = x_151; +goto block_207; +} +else +{ +lean_object* x_212; lean_object* x_213; +lean_inc_ref(x_3); +x_212 = l_Lake_buildAction___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__4___redArg(x_2, x_3, x_4, x_147, x_135, x_155, x_9, x_153, x_151); +lean_dec_ref(x_135); +lean_dec_ref(x_147); +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +if (lean_obj_tag(x_213) == 0) +{ +lean_object* x_214; lean_object* x_215; uint8_t x_216; +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec_ref(x_212); +x_215 = lean_ctor_get(x_213, 1); +lean_inc(x_215); +lean_dec_ref(x_213); +x_216 = 0; +x_181 = x_216; +x_182 = x_215; +x_183 = x_214; +goto block_207; +} +else +{ +lean_object* x_217; lean_object* x_218; lean_object* x_219; +lean_dec(x_154); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +x_217 = lean_ctor_get(x_212, 1); +lean_inc(x_217); +lean_dec_ref(x_212); +x_218 = lean_ctor_get(x_213, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_213, 1); +lean_inc(x_219); +lean_dec_ref(x_213); +x_12 = x_218; +x_13 = x_219; +x_14 = x_217; +goto block_17; +} +} +block_180: +{ +uint8_t x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; +x_162 = 1; +x_163 = l_Lake_untar(x_3, x_157, x_162, x_158, x_160); +x_164 = lean_ctor_get(x_163, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 1); +lean_inc(x_165); if (lean_is_exclusive(x_163)) { lean_ctor_release(x_163, 0); lean_ctor_release(x_163, 1); - x_169 = x_163; + x_166 = x_163; } else { lean_dec_ref(x_163); - x_169 = lean_box(0); + x_166 = lean_box(0); } -x_170 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_170, 0, x_168); -lean_ctor_set(x_170, 1, x_155); -lean_ctor_set(x_170, 2, x_160); -lean_ctor_set_uint8(x_170, sizeof(void*)*3, x_166); -if (lean_is_scalar(x_169)) { - x_171 = lean_alloc_ctor(0, 2, 0); +x_167 = l_Lake_JobAction_merge(x_156, x_155); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_168 = lean_ctor_get(x_164, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_164, 1); +lean_inc(x_169); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_170 = x_164; } else { - x_171 = x_169; + lean_dec_ref(x_164); + x_170 = lean_box(0); } -lean_ctor_set(x_171, 0, x_167); -lean_ctor_set(x_171, 1, x_170); -if (lean_is_scalar(x_165)) { +x_171 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_171, 0, x_169); +lean_ctor_set(x_171, 1, x_159); +lean_ctor_set(x_171, 2, x_161); +lean_ctor_set_uint8(x_171, sizeof(void*)*3, x_167); +if (lean_is_scalar(x_170)) { x_172 = lean_alloc_ctor(0, 2, 0); } else { - x_172 = x_165; + x_172 = x_170; } -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_164); -return x_172; +lean_ctor_set(x_172, 0, x_168); +lean_ctor_set(x_172, 1, x_171); +if (lean_is_scalar(x_166)) { + x_173 = lean_alloc_ctor(0, 2, 0); +} else { + x_173 = x_166; +} +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_165); +return x_173; } else { -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_173 = lean_ctor_get(x_163, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_163, 1); +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; +x_174 = lean_ctor_get(x_164, 0); lean_inc(x_174); -if (lean_is_exclusive(x_163)) { - lean_ctor_release(x_163, 0); - lean_ctor_release(x_163, 1); - x_175 = x_163; +x_175 = lean_ctor_get(x_164, 1); +lean_inc(x_175); +if (lean_is_exclusive(x_164)) { + lean_ctor_release(x_164, 0); + lean_ctor_release(x_164, 1); + x_176 = x_164; } else { - lean_dec_ref(x_163); - x_175 = lean_box(0); + lean_dec_ref(x_164); + x_176 = lean_box(0); } -x_176 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set(x_176, 1, x_155); -lean_ctor_set(x_176, 2, x_160); -lean_ctor_set_uint8(x_176, sizeof(void*)*3, x_166); -if (lean_is_scalar(x_175)) { - x_177 = lean_alloc_ctor(1, 2, 0); +x_177 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_177, 0, x_175); +lean_ctor_set(x_177, 1, x_159); +lean_ctor_set(x_177, 2, x_161); +lean_ctor_set_uint8(x_177, sizeof(void*)*3, x_167); +if (lean_is_scalar(x_176)) { + x_178 = lean_alloc_ctor(1, 2, 0); } else { - x_177 = x_175; + x_178 = x_176; } -lean_ctor_set(x_177, 0, x_173); -lean_ctor_set(x_177, 1, x_176); -if (lean_is_scalar(x_165)) { - x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_174); +lean_ctor_set(x_178, 1, x_177); +if (lean_is_scalar(x_166)) { + x_179 = lean_alloc_ctor(0, 2, 0); } else { - x_178 = x_165; + x_179 = x_166; } -lean_ctor_set(x_178, 0, x_177); -lean_ctor_set(x_178, 1, x_164); -return x_178; +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_165); +return x_179; } } -block_206: +block_207: { -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_183 = lean_ctor_get(x_1, 4); -lean_inc_ref(x_183); -x_184 = lean_ctor_get(x_1, 2); +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_184 = lean_ctor_get(x_1, 4); lean_inc_ref(x_184); -lean_dec_ref(x_1); -x_185 = lean_ctor_get(x_183, 6); +x_185 = lean_ctor_get(x_1, 2); lean_inc_ref(x_185); -lean_dec_ref(x_183); -x_186 = l_System_FilePath_normalize(x_185); -x_187 = l_Lake_joinRelative(x_184, x_186); -lean_dec_ref(x_186); -x_188 = l_System_FilePath_pathExists(x_187, x_182); -if (x_180 == 0) -{ -lean_object* x_189; lean_object* x_190; uint8_t x_191; lean_object* x_192; lean_object* x_193; -lean_dec(x_142); -x_189 = lean_ctor_get(x_188, 1); -lean_inc(x_189); -lean_dec_ref(x_188); -x_190 = lean_ctor_get(x_181, 0); -lean_inc_ref(x_190); -x_191 = lean_ctor_get_uint8(x_181, sizeof(void*)*3); -x_192 = lean_ctor_get(x_181, 1); -lean_inc_ref(x_192); -x_193 = lean_ctor_get(x_181, 2); -lean_inc(x_193); -lean_dec_ref(x_181); -x_155 = x_192; -x_156 = x_190; -x_157 = x_189; -x_158 = x_187; -x_159 = x_191; -x_160 = x_193; -goto block_179; -} -else -{ -lean_object* x_194; uint8_t x_195; -x_194 = lean_ctor_get(x_188, 0); -lean_inc(x_194); -x_195 = lean_unbox(x_194); -lean_dec(x_194); -if (x_195 == 0) -{ -lean_object* x_196; lean_object* x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_142); -x_196 = lean_ctor_get(x_188, 1); -lean_inc(x_196); -lean_dec_ref(x_188); -x_197 = lean_ctor_get(x_181, 0); -lean_inc_ref(x_197); -x_198 = lean_ctor_get_uint8(x_181, sizeof(void*)*3); -x_199 = lean_ctor_get(x_181, 1); -lean_inc_ref(x_199); -x_200 = lean_ctor_get(x_181, 2); -lean_inc(x_200); -lean_dec_ref(x_181); -x_155 = x_199; -x_156 = x_197; -x_157 = x_196; -x_158 = x_187; -x_159 = x_198; -x_160 = x_200; -goto block_179; -} -else -{ -lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; +lean_dec_ref(x_1); +x_186 = lean_ctor_get(x_184, 6); +lean_inc_ref(x_186); +lean_dec_ref(x_184); +x_187 = l_System_FilePath_normalize(x_186); +x_188 = l_Lake_joinRelative(x_185, x_187); lean_dec_ref(x_187); -lean_dec_ref(x_3); -x_201 = lean_ctor_get(x_188, 1); +x_189 = l_System_FilePath_pathExists(x_188, x_183); +if (x_181 == 0) +{ +lean_object* x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; lean_object* x_194; +lean_dec(x_154); +x_190 = lean_ctor_get(x_189, 1); +lean_inc(x_190); +lean_dec_ref(x_189); +x_191 = lean_ctor_get(x_182, 0); +lean_inc_ref(x_191); +x_192 = lean_ctor_get_uint8(x_182, sizeof(void*)*3); +x_193 = lean_ctor_get(x_182, 1); +lean_inc_ref(x_193); +x_194 = lean_ctor_get(x_182, 2); +lean_inc(x_194); +lean_dec_ref(x_182); +x_156 = x_192; +x_157 = x_188; +x_158 = x_191; +x_159 = x_193; +x_160 = x_190; +x_161 = x_194; +goto block_180; +} +else +{ +lean_object* x_195; uint8_t x_196; +x_195 = lean_ctor_get(x_189, 0); +lean_inc(x_195); +x_196 = lean_unbox(x_195); +lean_dec(x_195); +if (x_196 == 0) +{ +lean_object* x_197; lean_object* x_198; uint8_t x_199; lean_object* x_200; lean_object* x_201; +lean_dec(x_154); +x_197 = lean_ctor_get(x_189, 1); +lean_inc(x_197); +lean_dec_ref(x_189); +x_198 = lean_ctor_get(x_182, 0); +lean_inc_ref(x_198); +x_199 = lean_ctor_get_uint8(x_182, sizeof(void*)*3); +x_200 = lean_ctor_get(x_182, 1); +lean_inc_ref(x_200); +x_201 = lean_ctor_get(x_182, 2); lean_inc(x_201); -if (lean_is_exclusive(x_188)) { - lean_ctor_release(x_188, 0); - lean_ctor_release(x_188, 1); - x_202 = x_188; -} else { - lean_dec_ref(x_188); - x_202 = lean_box(0); +lean_dec_ref(x_182); +x_156 = x_199; +x_157 = x_188; +x_158 = x_198; +x_159 = x_200; +x_160 = x_197; +x_161 = x_201; +goto block_180; } -x_203 = lean_box(0); -if (lean_is_scalar(x_142)) { - x_204 = lean_alloc_ctor(0, 2, 0); +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec_ref(x_188); +lean_dec_ref(x_3); +x_202 = lean_ctor_get(x_189, 1); +lean_inc(x_202); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + x_203 = x_189; } else { - x_204 = x_142; + lean_dec_ref(x_189); + x_203 = lean_box(0); } -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_181); -if (lean_is_scalar(x_202)) { +x_204 = lean_box(0); +if (lean_is_scalar(x_154)) { x_205 = lean_alloc_ctor(0, 2, 0); } else { - x_205 = x_202; + x_205 = x_154; } lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_201); -return x_205; +lean_ctor_set(x_205, 1, x_182); +if (lean_is_scalar(x_203)) { + x_206 = lean_alloc_ctor(0, 2, 0); +} else { + x_206 = x_203; +} +lean_ctor_set(x_206, 0, x_205); +lean_ctor_set(x_206, 1, x_202); +return x_206; } } } -block_213: -{ -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; uint8_t x_212; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec_ref(x_207); -x_210 = lean_ctor_get(x_208, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_208, 1); -lean_inc(x_211); -lean_dec(x_208); -x_212 = lean_unbox(x_210); -lean_dec(x_210); -x_180 = x_212; -x_181 = x_211; -x_182 = x_209; -goto block_206; -} } else { -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; -lean_dec_ref(x_136); +lean_object* x_220; lean_object* x_221; lean_object* x_222; +lean_dec_ref(x_147); +lean_dec_ref(x_135); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); +x_220 = lean_ctor_get(x_149, 1); +lean_inc(x_220); +lean_dec_ref(x_149); +x_221 = lean_ctor_get(x_150, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_150, 1); +lean_inc(x_222); +lean_dec_ref(x_150); +x_12 = x_221; +x_13 = x_222; +x_14 = x_220; +goto block_17; +} +} +else +{ +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; +lean_dec_ref(x_135); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_223 = lean_ctor_get(x_136, 1); +lean_inc(x_223); +lean_dec_ref(x_136); +x_224 = lean_ctor_get(x_137, 0); +lean_inc(x_224); x_225 = lean_ctor_get(x_137, 1); lean_inc(x_225); lean_dec_ref(x_137); -x_226 = lean_ctor_get(x_138, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_138, 1); -lean_inc(x_227); -lean_dec_ref(x_138); -x_228 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_228, 0, x_227); -lean_ctor_set(x_228, 1, x_133); -lean_ctor_set(x_228, 2, x_134); -lean_ctor_set_uint8(x_228, sizeof(void*)*3, x_132); -x_12 = x_226; -x_13 = x_228; -x_14 = x_225; +x_226 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_132); +lean_ctor_set(x_226, 2, x_133); +lean_ctor_set_uint8(x_226, sizeof(void*)*3, x_131); +x_12 = x_224; +x_13 = x_226; +x_14 = x_223; goto block_17; } } @@ -11036,63 +11204,62 @@ return x_16; } } } -LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lake_MTime_checkUpToDate___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_1, x_2, x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -size_t x_7; size_t x_8; lean_object* x_9; -x_7 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_8 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___redArg(x_1, x_7, x_8, x_4, x_5, x_6); -lean_dec_ref(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -size_t x_12; size_t x_13; lean_object* x_14; -x_12 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_13 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_14 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__1(x_1, x_12, x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec_ref(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_1); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Option_instBEq_beq___at___Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__2(x_1, x_2); +x_3 = l_Option_instBEq_beq___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__0(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l_Lake_MTime_checkUpToDate___at_____private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0_spec__1(x_1, x_2, x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +x_8 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_8; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; -x_12 = l_Lake_SavedTrace_replayIfUpToDate___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l___private_Lake_Build_Common_0__Lake_checkHashUpToDate_x27___at___Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec_ref(x_5); +lean_dec(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lake_SavedTrace_replayIfUpToDate_x27___at_____private_Lake_Build_Package_0__Lake_Package_fetchBuildArchive_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec_ref(x_9); lean_dec(x_8); lean_dec(x_7); diff --git a/stage0/stdlib/Lake/CLI/Help.c b/stage0/stdlib/Lake/CLI/Help.c index 4572cb68fb..0e3771c1e4 100644 --- a/stage0/stdlib/Lake/CLI/Help.c +++ b/stage0/stdlib/Lake/CLI/Help.c @@ -403,7 +403,7 @@ static lean_object* _init_l___private_Lake_CLI_Help_0__Lake_helpCacheGet___close _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Download artifacts from a remote service into the Lake cache\n\nUSAGE:\n lake cache get [] [--scope=] [--max-revs=]\n\nDownloads artifacts for packages in the workspace from a remote cache service.\nThe cache service used can be configured via the environment variables:\n\n LAKE_CACHE_ARTIFACT_ENDPOINT base URL for artifact downloads\n LAKE_CACHE_REVISION_ENDPOINT base URL for the mapping download\n\nIf neither of these are set, Lake will use Reservoir instead.\n\nIf an input-to-outputs mappings file or a scope is provided, Lake will\ndownload artifacts for the root package. Otherwise, it will download artifacts\nfor each package in the root's dependency tree in order (using Reservoir).\nNon-Reservoir dependencies will be skipped.\n\nTo determine the artifacts to download, Lake uses the package's Git revision\n(commit hash) to lookup its input-to-outputs mappings on the cache service.\nLake will download the artifacts for the most recent commit with available\nmappings. It will backtrack up to `--max-revs`, which defaults to 100.\nIf set to 0, Lake will search the repository's whole history.\n\nWhile downloading, Lake will continue on when a download for an artifact\nfails or if the download process for a whole package fails. However, it will\nreport this and exit with a nonzero status code in such cases.", 1332, 1332); +x_1 = lean_mk_string_unchecked("Download artifacts from a remote service into the Lake cache\n\nUSAGE:\n lake cache get []\n\nOPTIONS:\n --max-revs= backtrack up to n revisions (default: 100)\n --rev= uses this exact revision to lookup artifacts\n --repo= GitHub repository of the package or a fork\n --platform= with Reservoir or --repo, sets the platform\n --toolchain= with Reservoir or --repo, sets the toolchain\n --scope= scope for a custom endpoint\n\nDownloads artifacts for packages in the workspace from a remote cache service.\nThe cache service used can be configured via the environment variables:\n\n LAKE_CACHE_ARTIFACT_ENDPOINT base URL for artifact downloads\n LAKE_CACHE_REVISION_ENDPOINT base URL for the mapping download\n\nIf neither of these are set, Lake will use Reservoir.\n\nIf an input-to-outputs mappings file, `--scope`, or `--repo` is provided,\nLake will download artifacts for the root package. Otherwise, it will use\nReservoir to download artifacts for each dependency in workspace (in order).\nNon-Reservoir dependencies will be skipped.\n\nTo determine the artifacts to download, Lake searches for input-to-output\nmappings for a given build of the package via the cache service. This mapping\nis identified by a Git revision and prefixed with a scope derived from the\npackage's name, GitHub repository, Lean toolchain, and current platform.\nThe exact configuration can be customized using options.\n\nFor Reservoir, setting `--repo` will make Lake lookup artifacts for the root\npackage by a repository name, rather than the package's. This can be used to\ndownload artifacts for a fork of the Reservoir package (if such artifacts are\navailable). The `--platform` and `--toolchain` options can be used to download\nartifacts for a different platform/toolchain configuration than Lake detects.\nFor a custom endpoint, the full prefix Lake uses can be set via `--scope`.\n\nIf `--rev` is not set, Lake uses the package's current revision to lookup\nartifacts. If no mappings are found, Lake will backtrack the Git history up to\n`--max-revs`, looking for a revision with mappings. If `--max-revs` is 0, Lake\nwill search the repository's entire history (or as far as Git will allow).\n\nIf a download for an artifact fails or the download process for a whole\npackage fails, Lake will report this and continue on to the next. Once done,\nif any download failed, Lake will exit with a nonzero status code.", 2517, 2517); return x_1; } } @@ -419,7 +419,7 @@ static lean_object* _init_l___private_Lake_CLI_Help_0__Lake_helpCachePut___close _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("Upload artifacts from the Lake cache to a remote service\n\nUSAGE:\n lake cache put --scope=\n\nUploads the input-to-outputs mappings contained in the specified file along\nwith the corresponding output artifacts to a remote cache. The cache service\nused is configured via the environment variables:\n\n LAKE_CACHE_KEY authentication key for requests\n LAKE_CACHE_ARTIFACT_ENDPOINT base URL for artifact uploads\n LAKE_CACHE_REVISION_ENDPOINT base URL for the mapping upload\n\nFiles are uploaded using the AWS Signature Version 4 authentication protocol\nvia `curl`. Thus, the service should generally be an S3-compatible bucket.\n\nArtifacts are uploaded to the artifact endpoint under the prefix `scope`\nwith a file name corresponding to their Lake content hash. The mappings file\nis uploaded to the revision endpoint under the prefix `scope` with a file name\ncorresponding to the package's current Git revision. As such, the command will\nfail if the the work tree currently has changes.", 1022, 1022); +x_1 = lean_mk_string_unchecked("Upload artifacts from the Lake cache to a remote service\n\nUSAGE:\n lake cache put \n\nUploads the input-to-outputs mappings contained in the specified file along\nwith the corresponding output artifacts to a remote cache. The cache service\nused is configured via the environment variables:\n\n LAKE_CACHE_KEY authentication key for requests\n LAKE_CACHE_ARTIFACT_ENDPOINT base URL for artifact uploads\n LAKE_CACHE_REVISION_ENDPOINT base URL for the mapping upload\n\nFiles are uploaded using the AWS Signature Version 4 authentication protocol\nvia `curl`. Thus, the service should generally be an S3-compatible bucket.\n\nSince Lake does not currently use cryptographically secure hashes for\nartifacts and outputs, uploads to the cache are prefixed with a scope to avoid\nclashes. This scoped is configured with the following options:\n\n --scope= sets a fixed scope\n --repo= uses the repository + toolchain & platform\n --toolchain= with --repo, sets the toolchain\n --platform= with --repo, sets the platform\n\nAt least one of `--scope` or `--repo` must be set. If `--repo` is used, Lake\nwill produce a scope by augmenting the repository with toolchain and platform\ninformation as it deems necessary. If `--scope` is set, Lake will use the\nspecified scope verbatim.\n\nArtifacts are uploaded to the artifact endpoint with a file name derived\nfrom their Lake content hash (and prefixed by the repository or scope).\nThe mappings file is uploaded to the revision endpoint with a file name\nderived from the package's current Git revision (and prefixed by the\nfull scope). As such, the command will warn if the the work tree currently\nhas changes.", 1767, 1767); return x_1; } } diff --git a/stage0/stdlib/Lake/CLI/Main.c b/stage0/stdlib/Lake/CLI/Main.c index b6515aa069..2be612bc20 100644 --- a/stage0/stdlib/Lake/CLI/Main.c +++ b/stage0/stdlib/Lake/CLI/Main.c @@ -17,8 +17,9 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_parseLangSpec(lean_ob lean_object* l_Lake_Env_vars(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__10; lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0; lean_object* lean_format_pretty(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO_spec__0(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_serve___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); @@ -31,7 +32,7 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_checkLint(lean_o uint32_t lean_string_utf8_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_lint___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig(lean_object*, lean_object*, uint8_t); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1(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_CLI_Main_0__Lake_lake_cache_put___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__0___redArg___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -39,8 +40,8 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_pack(lean_object lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_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___private_Lake_CLI_Main_0__Lake_verifyLeanVersion___boxed(lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3; LEAN_EXPORT lean_object* l_Array_filterMapM___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__2(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_____private_Lake_CLI_Main_0__Lake_lake_queryKind_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_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_verifyInstall(lean_object*, lean_object*); @@ -51,11 +52,14 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__18; extern lean_object* l_Lean_githash; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig___lam__0___boxed__const__1; +static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_lint___lam__0___boxed__const__1; lean_object* l_Lake_Package_mkConfigString___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar(uint32_t); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig___closed__0; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_AnsiMode_isEnabled(lean_object*, uint8_t, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_verifyInstall___closed__1; lean_object* l_Lean_Json_mkObj(lean_object*); @@ -63,30 +67,33 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_update(lean_obje lean_object* l_System_FilePath_normalize(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__10; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_exe___closed__0; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__20; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__21; static lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__23; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_query___boxed__const__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3(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 lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__25; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__16; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4; uint8_t l_Array_isEmpty___redArg(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__20; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_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_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_help(lean_object*); lean_object* l_String_toNat_x3f(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_build___closed__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__13; LEAN_EXPORT lean_object* l_List_foldl___at_____private_Lake_CLI_Main_0__Lake_lake_update_spec__0(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3; lean_object* l_Lake_CacheService_downloadOutputArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_getLakeInstall___closed__0; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_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_EXPORT lean_object* l_List_mapM_loop___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_parseScriptSpec___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__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_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig___boxed__const__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); lean_object* l_Lake_BuildInfo_key(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -94,9 +101,10 @@ lean_object* l_Lake_loadPackage(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__4; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__3; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0; +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_pack___lam__0(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_help(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__12; @@ -111,18 +119,19 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* lean_io_rename(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__14; lean_object* l_Lake_instReprLakeInstall_repr___redArg(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lake_instOrdLogLevel_ord(uint8_t, uint8_t); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_doc___lam__0___boxed__const__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___boxed(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__13; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2; LEAN_EXPORT lean_object* l_Array_filterMapM___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_init___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Package_clean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_getInstall(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Array_filterMapM___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__2_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lakeOption(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0_spec__0___redArg___boxed__const__1; @@ -137,15 +146,18 @@ LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at_____private_Lake_CLI_Main lean_object* l_Lake_CacheService_downloadOutputArtifacts(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lake_Package_lint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___boxed__const__1; +static uint8_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_doc___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__0; 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*, lean_object*); LEAN_EXPORT lean_object* l_String_mapAux___at_____private_Lake_CLI_Main_0__Lake_parseTemplateSpec_spec__0(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_outLv___boxed(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__29; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake___closed__2; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__15; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__5; @@ -154,10 +166,11 @@ static lean_object* l___private_Lake_CLI_Main_0__Lake_verifyInstall___closed__2; LEAN_EXPORT lean_object* l_List_mapM_loop___at___List_mapM_loop___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_set(lean_object*, lean_object*, uint32_t); uint8_t l_List_isEmpty___redArg(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_querySpecs___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_CLI_Main_0__Lake_lake_init(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__6; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_ofExcept___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_doc___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_lean(lean_object*, lean_object*, lean_object*); @@ -167,6 +180,7 @@ static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__32; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__2; uint8_t lean_string_dec_eq(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_IO_print___at___IO_println___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__1_spec__1(lean_object*, lean_object*); @@ -179,36 +193,40 @@ lean_object* l_Lake_serve(lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__0___redArg(lean_object*, lean_object*); lean_object* lean_string_push(lean_object*, uint32_t); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__22; lean_object* lean_get_stdout(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__2___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script___boxed__const__1; lean_object* l_List_foldl___at___Array_appendList_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__0(size_t, size_t, lean_object*); -lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_build___closed__0; lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Nat_reprFast(lean_object*); lean_object* l_Lake_Workspace_augmentedEnvVars(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__11; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___boxed(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_parseTemplateSpec___closed__0; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0; size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_serve___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_resolvePath(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_add___lam__0___boxed__const__1; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1; lean_object* l_Lake_Env_compute(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_____private_Lake_CLI_Main_0__Lake_lake_script_list_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0; extern lean_object* l_Lake_usage; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_pack___lam__0___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__25; -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_query(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__3(lean_object*); extern lean_object* l_Lake_LeanExe_exeFacet; @@ -218,7 +236,7 @@ uint32_t l_Char_toLower(uint32_t); lean_object* l_Lake_helpScript(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_unpack___lam__0(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_scriptCli___closed__1; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_instMonadLiftLogIOCliStateM; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__7; lean_object* lean_st_ref_take(lean_object*, lean_object*); @@ -228,21 +246,24 @@ lean_object* lean_string_utf8_next(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_____private_Lake_CLI_Main_0__Lake_lake_script_list_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__8; lean_object* l_String_splitOnAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_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_Lake_CLI_Main_0__Lake_lake_script_list___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); +static uint8_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_exe(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__6; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___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_CLI_Main_0__Lake_CliM_run___redArg___boxed__const__1; lean_object* l_Lake_StdVer_toString(lean_object*); LEAN_EXPORT lean_object* l_IO_println___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__1(lean_object*, lean_object*); +uint8_t lean_uint32_dec_le(uint32_t, uint32_t); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_normalizeToolchain(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig___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_____private_Lake_CLI_Main_0__Lake_lake_query_spec__0___boxed(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_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__26; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___lam__1___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__30; -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_ReservoirConfig_currentSchemaVersion; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_reservoirConfig(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_translateConfig___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -252,40 +273,43 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_ReservoirConfig_ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_new___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_lean___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__1; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_getInstall___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_toLogConfig(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_translateConfig(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar___boxed(lean_object*); lean_object* l_Lake_Workspace_findScript_x3f(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_stringToLegalOrSimpleName(lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__37; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_help(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_logToStream(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake___closed__1; +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO_spec__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_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_build_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_run(lean_object*, lean_object*, lean_object*); uint8_t l_Lake_Verbosity_minLogLv(uint8_t); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_scriptCli(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Package_unpack(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__3; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_parseTemplateSpec(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_new___closed__0; lean_object* l_Lake_Package_pack(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_script_run_spec__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_Lake_CLI_Main_0__Lake_CliM_run___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___lam__1(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_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__17; lean_object* l_Lake_CliError_toString(lean_object*); +lean_object* l_instDecidableEqBool___boxed(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0; lean_object* l_Lake_PartialBuildKey_toString(lean_object*); lean_object* lean_array_to_list(lean_object*); @@ -296,6 +320,7 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at__ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_add(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_takeOptArg_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_loadWorkspace(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg___lam__0(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); @@ -306,16 +331,16 @@ lean_object* l_Lake_BuildKey_toSimpleString(lean_object*); LEAN_EXPORT lean_object* l_Array_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__4(lean_object*); uint8_t lean_string_utf8_at_end(lean_object*, lean_object*); lean_object* lean_io_process_spawn(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_list___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_instBEqOfDecidableEq___redArg(lean_object*); LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at_____private_Lake_CLI_Main_0__Lake_lakeOption_spec__0(lean_object*, lean_object*, lean_object*); lean_object* lean_get_stdin(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_clean(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_list(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5(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___Array_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__4_spec__4(size_t, size_t, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___Lean_NameMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static size_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8; lean_object* l_String_posOfAux(lean_object*, uint32_t, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_CliM_run___redArg___closed__0; lean_object* l_System_FilePath_addExtension(lean_object*, lean_object*); @@ -338,11 +363,14 @@ lean_object* l_Lake_OutStream_logEntry(lean_object*, lean_object*, uint8_t, uint lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_noArgsRem___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__3; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_script_run_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_queryKind(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0; lean_object* l_Lake_Cache_writeMap(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_test(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_translateConfig___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); @@ -354,21 +382,26 @@ lean_object* l_Lake_Package_test(lean_object*, lean_object*, lean_object*, lean_ static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__6; lean_object* l_Lake_Job_renew___redArg(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__6; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cacheToolchain(lean_object*, lean_object*); lean_object* l_Lake_GitRepo_hasNoDiff(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Option_repr___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_updateManifest___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static uint8_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cacheToolchain___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliM_run___redArg___boxed__const__2; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__24; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_env___boxed__const__2; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_upload___closed__0; lean_object* l_Lake_GitRepo_getHeadRevision(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_filterTR_loop___at_____private_Lake_CLI_Main_0__Lake_lake_reservoirConfig_spec__4(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__9; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_build(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; LEAN_EXPORT uint8_t l___private_Lake_CLI_Main_0__Lake_LakeOptions_outLv(lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*); extern lean_object* l_Std_Format_defWidth; extern lean_object* l_Lake_defaultLakeDir; @@ -381,6 +414,7 @@ lean_object* l_Lake_instReprElanInstall_repr___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_checkBuild(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__17; +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_____private_Lake_CLI_Main_0__Lake_lake_script_list_spec__0___boxed__const__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__5; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__9; @@ -394,14 +428,15 @@ static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__ lean_object* l_Lake_init___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(lean_object*, uint8_t); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___closed__0; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1; LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_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___private_Lake_CLI_Main_0__Lake_lake___boxed__const__1; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_lean___lam__0___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_script_run___boxed__const__2; +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1___boxed(lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_GitRepo_getHeadRevisions(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7; @@ -413,14 +448,15 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe static lean_object* l___private_Lake_CLI_Main_0__Lake_verifyInstall___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_test___lam__0___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_queryKind___boxed__const__2; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44; lean_object* l_Lake_helpCache(lean_object*); lean_object* l_Lake_parseExeTargetSpec(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -static uint8_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__2; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__23; static lean_object* l_Lake_LakeOptions_mkLoadConfig___closed__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_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*, lean_object*); LEAN_EXPORT lean_object* l_List_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__0(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__5___boxed__const__1; LEAN_EXPORT lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__7(lean_object*, lean_object*); @@ -442,16 +478,21 @@ LEAN_EXPORT lean_object* l_Option_toJson___at_____private_Lake_CLI_Main_0__Lake_ static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_add___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2___redArg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile___lam__0___boxed__const__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_translateConfig___closed__0; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lake_Workspace_runFetchM___redArg(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0(size_t, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__5; +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__4; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__5; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cacheCli(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_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_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__8; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_setupFile(lean_object*, lean_object*, lean_object*); @@ -463,11 +504,11 @@ static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__9 LEAN_EXPORT lean_object* l_Option_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__6(lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__2; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_ReservoirConfig_currentSchemaVersion___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_queryKind___boxed__const__1; -static lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig___closed__0; lean_object* l_Lake_Script_run(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson(lean_object*); @@ -477,7 +518,6 @@ lean_object* l_Lake_instReprLeanInstall_repr___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__11; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_test___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliM_run(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_env_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__31; @@ -491,14 +531,13 @@ lean_object* l_Repr_addAppParen(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_resolveDeps(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__6; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_getLakeInstall(lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; lean_object* l_List_reverse___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_takeArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_mkRelPathString(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_upload___lam__0(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_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*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__30; lean_object* l_Array_append___redArg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_scriptCli___closed__0; LEAN_EXPORT lean_object* l_Lake_collectArgs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_serve(lean_object*, lean_object*, lean_object*); @@ -517,15 +556,20 @@ lean_object* l_Lake_CacheMap_load(lean_object*, lean_object*, lean_object*); lean_object* l_Lake_Job_toOpaque___redArg(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_getLeanInstall___closed__0; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg___boxed__const__1; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_parseScriptSpec(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___at_____private_Lake_CLI_Main_0__Lake_lake_script_run_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg___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_object* l_Option_repr___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__0___closed__2; LEAN_EXPORT lean_object* l_Lake_LakeOptions_ctorIdx___boxed(lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__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_array_mk(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_scriptCli___closed__2; -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0(size_t, lean_object*, lean_object*, lean_object*, size_t, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_build___boxed__const__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Array_toJson___at___List_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__0_spec__0_spec__0(size_t, size_t, lean_object*); uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*); @@ -538,36 +582,38 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_m static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__33; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__18; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__22; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__0___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_exe___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_CLI_Main_0__Lake_lake_lint(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_help___boxed__const__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_versionTags(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l___private_Lake_CLI_Main_0__Lake_verifyLeanVersion___closed__1; static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_env_spec__0___closed__0; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache___boxed__const__1; LEAN_EXPORT lean_object* l_Option_repr___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__3(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__24; LEAN_EXPORT lean_object* l_Option_repr___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__0(lean_object*, lean_object*); +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47; LEAN_EXPORT lean_object* l_Lake_LakeOptions_ctorIdx(lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__28; lean_object* lean_io_error_to_string(lean_object*); lean_object* l_Lake_GitRepo_getTags(lean_object*, lean_object*); extern lean_object* l_Lake_defaultConfigFile; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Option_instBEq_beq___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___closed__2; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__16; +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption(uint32_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_new___lam__0(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__4; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_CacheService_uploadArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Option_repr___at_____private_Lake_CLI_Main_0__Lake_verifyInstall_spec__0___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); @@ -589,6 +635,7 @@ lean_object* l_Lake_LogLevel_ofString_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_cli(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__10; +static lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_test___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_parse(lean_object*); lean_object* l_Lake_joinRelative(lean_object*, lean_object*); @@ -602,34 +649,40 @@ static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache___closed__0; LEAN_EXPORT lean_object* l_IO_ofExcept___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__0___redArg(lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__11; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_build_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -static size_t l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); +extern lean_object* l_System_Platform_target; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeCli___closed__28; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Array_toJson___at___List_toJson___at_____private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___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_CLI_Main_0__Lake_lake_script_help___boxed__const__1; +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_update___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__1; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_init___lam__0(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_env(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_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_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_new(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_selfCheck___lam__0(lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__4___closed__0; LEAN_EXPORT lean_object* l_List_forM___at_____private_Lake_CLI_Main_0__Lake_lake_clean_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_verifyLeanVersion___closed__0; static lean_object* l_Lake_LakeOptions_mkLoadConfig___closed__2; +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_instToJsonReservoirConfig_toJson___closed__0; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___closed__1; static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_noArgsRem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__7; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_ReservoirConfig_currentSchemaVersion___closed__0; extern lean_object* l_Lake_uiVersionString; static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at_____private_Lake_CLI_Main_0__Lake_lake_queryKind_spec__2(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_____private_Lake_CLI_Main_0__Lake_lake_versionTags_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_help(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4; @@ -660,7 +713,7 @@ x_2 = lean_ctor_get(x_1, 10); if (lean_obj_tag(x_2) == 0) { uint8_t x_3; uint8_t x_4; -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 1); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 1); x_4 = l_Lake_Verbosity_minLogLv(x_3); return x_4; } @@ -687,8 +740,8 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_toLogConf _start: { uint8_t x_2; uint8_t x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; -x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 8); -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 9); +x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 8); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 9); x_4 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_outLv(x_1); x_5 = lean_box(1); x_6 = lean_alloc_ctor(0, 1, 3); @@ -1086,9 +1139,9 @@ x_6 = lean_ctor_get(x_1, 6); lean_inc(x_6); x_7 = lean_ctor_get(x_1, 7); lean_inc_ref(x_7); -x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 2); -x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 3); -x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 4); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 2); +x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 3); +x_10 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 4); lean_inc_ref(x_4); x_11 = l_Lake_resolvePath(x_4, x_2); x_12 = !lean_is_exclusive(x_11); @@ -1354,12 +1407,12 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildCo _start: { uint8_t x_4; uint8_t x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; uint8_t x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; -x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 1); -x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 5); -x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 6); -x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 7); -x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 8); -x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 9); +x_4 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 1); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 5); +x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 6); +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 7); +x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 8); +x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 9); x_10 = lean_ctor_get(x_1, 11); x_11 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_outLv(x_1); x_12 = lean_alloc_ctor(0, 1, 3); @@ -1458,7 +1511,7 @@ x_21 = 0; x_22 = 0; x_23 = lean_unsigned_to_nat(100u); lean_inc(x_2); -x_24 = lean_alloc_ctor(0, 15, 13); +x_24 = lean_alloc_ctor(0, 17, 14); lean_ctor_set(x_24, 0, x_2); lean_ctor_set(x_24, 1, x_11); lean_ctor_set(x_24, 2, x_12); @@ -1473,20 +1526,23 @@ lean_ctor_set(x_24, 10, x_19); lean_ctor_set(x_24, 11, x_19); lean_ctor_set(x_24, 12, x_19); lean_ctor_set(x_24, 13, x_19); -lean_ctor_set(x_24, 14, x_23); -lean_ctor_set_uint8(x_24, sizeof(void*)*15, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 1, x_17); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 2, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 3, x_18); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 4, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 5, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 6, x_18); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 7, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 8, x_20); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 9, x_21); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 10, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 11, x_16); -lean_ctor_set_uint8(x_24, sizeof(void*)*15 + 12, x_16); +lean_ctor_set(x_24, 14, x_19); +lean_ctor_set(x_24, 15, x_19); +lean_ctor_set(x_24, 16, x_23); +lean_ctor_set_uint8(x_24, sizeof(void*)*17, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 1, x_17); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 2, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 3, x_18); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 4, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 5, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 6, x_18); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 7, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 8, x_20); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 9, x_21); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 10, x_22); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 11, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 12, x_16); +lean_ctor_set_uint8(x_24, sizeof(void*)*17 + 13, x_16); x_25 = lean_apply_3(x_1, x_2, x_24, x_7); if (lean_obj_tag(x_25) == 0) { @@ -1650,7 +1706,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +lean_object* x_4; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; uint8_t x_32; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; x_20 = lean_unsigned_to_nat(0u); x_21 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; x_22 = lean_apply_2(x_1, x_21, x_3); @@ -1659,8 +1715,8 @@ lean_inc(x_23); x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); lean_dec_ref(x_22); -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*15 + 8); -x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*15 + 9); +x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*17 + 8); +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*17 + 9); x_27 = lean_box(1); if (lean_obj_tag(x_23) == 0) { @@ -1679,10 +1735,10 @@ if (x_59 == 2) uint8_t x_60; uint8_t x_61; x_60 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_outLv(x_2); x_61 = 0; -x_28 = x_61; -x_29 = x_56; -x_30 = x_57; -x_31 = x_24; +x_28 = x_56; +x_29 = x_24; +x_30 = x_61; +x_31 = x_57; x_32 = x_60; goto block_48; } @@ -1691,8 +1747,8 @@ else uint8_t x_62; x_62 = 1; x_49 = x_56; -x_50 = x_57; -x_51 = x_24; +x_50 = x_24; +x_51 = x_57; x_52 = x_62; goto block_54; } @@ -1706,8 +1762,8 @@ lean_dec_ref(x_23); x_64 = lean_box(0); x_65 = 1; x_49 = x_63; -x_50 = x_64; -x_51 = x_24; +x_50 = x_24; +x_51 = x_64; x_52 = x_65; goto block_54; } @@ -1776,7 +1832,7 @@ goto block_7; block_48: { lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_33 = l_Lake_OutStream_get(x_27, x_31); +x_33 = l_Lake_OutStream_get(x_27, x_29); x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); @@ -1789,16 +1845,16 @@ lean_inc(x_37); x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec_ref(x_36); -x_39 = lean_array_get_size(x_29); +x_39 = lean_array_get_size(x_28); x_40 = lean_nat_dec_lt(x_20, x_39); if (x_40 == 0) { lean_dec(x_39); lean_dec(x_37); lean_dec(x_34); -lean_dec_ref(x_29); -x_8 = x_28; -x_9 = x_30; +lean_dec_ref(x_28); +x_8 = x_30; +x_9 = x_31; x_10 = x_38; goto block_19; } @@ -1811,9 +1867,9 @@ if (x_41 == 0) lean_dec(x_39); lean_dec(x_37); lean_dec(x_34); -lean_dec_ref(x_29); -x_8 = x_28; -x_9 = x_30; +lean_dec_ref(x_28); +x_8 = x_30; +x_9 = x_31; x_10 = x_38; goto block_19; } @@ -1826,13 +1882,13 @@ x_44 = lean_usize_of_nat(x_39); lean_dec(x_39); x_45 = lean_unbox(x_37); lean_dec(x_37); -x_46 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO_spec__0(x_34, x_32, x_45, x_29, x_43, x_44, x_42, x_38); -lean_dec_ref(x_29); +x_46 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO_spec__0(x_34, x_32, x_45, x_28, x_43, x_44, x_42, x_38); +lean_dec_ref(x_28); x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); lean_dec_ref(x_46); -x_8 = x_28; -x_9 = x_30; +x_8 = x_30; +x_9 = x_31; x_10 = x_47; goto block_19; } @@ -1842,9 +1898,9 @@ block_54: { uint8_t x_53; x_53 = 0; -x_28 = x_52; -x_29 = x_49; -x_30 = x_50; +x_28 = x_49; +x_29 = x_50; +x_30 = x_52; x_31 = x_51; x_32 = x_53; goto block_48; @@ -1918,7 +1974,7 @@ lean_inc(x_6); x_7 = lean_ctor_get(x_5, 1); lean_inc(x_7); lean_dec_ref(x_5); -x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*15 + 9); +x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*17 + 9); lean_inc(x_6); x_9 = l_Lake_AnsiMode_isEnabled(x_6, x_8, x_7); x_10 = !lean_is_exclusive(x_9); @@ -3251,7 +3307,7 @@ LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_getWantsHelp(lean_obj _start: { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*15); +x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*17); x_4 = lean_box(x_3); x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); @@ -3267,39 +3323,39 @@ return x_7; LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_setConfigOpt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; uint32_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_51 = 61; -x_52 = lean_string_utf8_byte_size(x_1); -x_53 = lean_unsigned_to_nat(0u); -x_54 = l_String_posOfAux(x_1, x_51, x_52, x_53); -x_55 = lean_nat_dec_eq(x_54, x_52); -if (x_55 == 0) +lean_object* x_5; lean_object* x_6; uint32_t x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_54 = 61; +x_55 = lean_string_utf8_byte_size(x_1); +x_56 = lean_unsigned_to_nat(0u); +x_57 = l_String_posOfAux(x_1, x_54, x_55, x_56); +x_58 = lean_nat_dec_eq(x_57, x_55); +if (x_58 == 0) { -lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_56 = lean_string_utf8_extract(x_1, x_53, x_54); -x_57 = l_String_toName(x_56); -x_58 = lean_string_utf8_next(x_1, x_54); -lean_dec(x_54); -x_59 = lean_string_utf8_extract(x_1, x_58, x_52); -lean_dec(x_52); -lean_dec(x_58); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_59 = lean_string_utf8_extract(x_1, x_56, x_57); +x_60 = l_String_toName(x_59); +x_61 = lean_string_utf8_next(x_1, x_57); +lean_dec(x_57); +x_62 = lean_string_utf8_extract(x_1, x_61, x_55); +lean_dec(x_55); +lean_dec(x_61); lean_dec_ref(x_1); -x_5 = x_57; -x_6 = x_59; -goto block_50; +x_5 = x_60; +x_6 = x_62; +goto block_53; } else { -lean_object* x_60; lean_object* x_61; -lean_dec(x_54); -lean_dec(x_52); -x_60 = l_String_toName(x_1); -x_61 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_5 = x_60; -x_6 = x_61; -goto block_50; +lean_object* x_63; lean_object* x_64; +lean_dec(x_57); +lean_dec(x_55); +x_63 = l_String_toName(x_1); +x_64 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_5 = x_63; +x_6 = x_64; +goto block_53; } -block_50: +block_53: { uint8_t x_7; x_7 = !lean_is_exclusive(x_3); @@ -3325,7 +3381,7 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; uint8_t x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; uint8_t x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; x_15 = lean_ctor_get(x_3, 0); x_16 = lean_ctor_get(x_3, 1); x_17 = lean_ctor_get(x_3, 2); @@ -3335,27 +3391,32 @@ x_20 = lean_ctor_get(x_3, 5); x_21 = lean_ctor_get(x_3, 6); x_22 = lean_ctor_get(x_3, 7); x_23 = lean_ctor_get(x_3, 8); -x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); x_32 = lean_ctor_get(x_3, 9); -x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); +x_33 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); x_34 = lean_ctor_get(x_3, 10); -x_35 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_36 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_37 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); +x_35 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_36 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_37 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); x_38 = lean_ctor_get(x_3, 11); -x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); +x_39 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); x_40 = lean_ctor_get(x_3, 12); -x_41 = lean_ctor_get(x_3, 13); -x_42 = lean_ctor_get(x_3, 14); +x_41 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_42 = lean_ctor_get(x_3, 13); +x_43 = lean_ctor_get(x_3, 14); +x_44 = lean_ctor_get(x_3, 15); +x_45 = lean_ctor_get(x_3, 16); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); lean_inc(x_42); -lean_inc(x_41); lean_inc(x_40); lean_inc(x_38); lean_inc(x_34); @@ -3370,49 +3431,52 @@ lean_inc(x_17); lean_inc(x_16); lean_inc(x_15); lean_dec(x_3); -x_43 = lean_box(0); -x_44 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_NameMap_insert_spec__0___redArg(x_5, x_6, x_21); -x_45 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_45, 0, x_15); -lean_ctor_set(x_45, 1, x_16); -lean_ctor_set(x_45, 2, x_17); -lean_ctor_set(x_45, 3, x_18); -lean_ctor_set(x_45, 4, x_19); -lean_ctor_set(x_45, 5, x_20); -lean_ctor_set(x_45, 6, x_44); -lean_ctor_set(x_45, 7, x_22); -lean_ctor_set(x_45, 8, x_23); -lean_ctor_set(x_45, 9, x_32); -lean_ctor_set(x_45, 10, x_34); -lean_ctor_set(x_45, 11, x_38); -lean_ctor_set(x_45, 12, x_40); -lean_ctor_set(x_45, 13, x_41); -lean_ctor_set(x_45, 14, x_42); -lean_ctor_set_uint8(x_45, sizeof(void*)*15, x_24); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 1, x_25); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 2, x_26); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 3, x_27); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 4, x_28); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 5, x_29); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 6, x_30); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 7, x_31); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 8, x_33); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 9, x_35); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 10, x_36); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 11, x_37); -lean_ctor_set_uint8(x_45, sizeof(void*)*15 + 12, x_39); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_43); -lean_ctor_set(x_46, 1, x_2); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); +x_46 = lean_box(0); +x_47 = l_Std_DTreeMap_Internal_Impl_insert___at___Lean_NameMap_insert_spec__0___redArg(x_5, x_6, x_21); +x_48 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_48, 0, x_15); +lean_ctor_set(x_48, 1, x_16); +lean_ctor_set(x_48, 2, x_17); +lean_ctor_set(x_48, 3, x_18); +lean_ctor_set(x_48, 4, x_19); +lean_ctor_set(x_48, 5, x_20); +lean_ctor_set(x_48, 6, x_47); +lean_ctor_set(x_48, 7, x_22); +lean_ctor_set(x_48, 8, x_23); +lean_ctor_set(x_48, 9, x_32); +lean_ctor_set(x_48, 10, x_34); +lean_ctor_set(x_48, 11, x_38); +lean_ctor_set(x_48, 12, x_40); +lean_ctor_set(x_48, 13, x_42); +lean_ctor_set(x_48, 14, x_43); +lean_ctor_set(x_48, 15, x_44); +lean_ctor_set(x_48, 16, x_45); +lean_ctor_set_uint8(x_48, sizeof(void*)*17, x_24); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 1, x_25); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 2, x_26); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 3, x_27); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 4, x_28); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 5, x_29); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 6, x_30); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 7, x_31); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 8, x_33); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 9, x_35); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 10, x_36); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 11, x_37); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 12, x_39); +lean_ctor_set_uint8(x_48, sizeof(void*)*17 + 13, x_41); x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_4); -return x_49; +lean_ctor_set(x_49, 0, x_46); +lean_ctor_set(x_49, 1, x_2); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_51, 0, x_50); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_4); +return x_52; } } } @@ -3564,7 +3628,7 @@ if (x_30 == 0) lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_31 = lean_box(0); x_32 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 10, x_32); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 10, x_32); x_33 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_33, 0, x_31); lean_ctor_set(x_33, 1, x_2); @@ -3580,7 +3644,7 @@ return x_36; } else { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; uint8_t x_51; uint8_t x_52; uint8_t x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; x_37 = lean_ctor_get(x_3, 0); x_38 = lean_ctor_get(x_3, 1); x_39 = lean_ctor_get(x_3, 2); @@ -3590,26 +3654,31 @@ x_42 = lean_ctor_get(x_3, 5); x_43 = lean_ctor_get(x_3, 6); x_44 = lean_ctor_get(x_3, 7); x_45 = lean_ctor_get(x_3, 8); -x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_53 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); +x_46 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_47 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_48 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_49 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_50 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_51 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_52 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_53 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); x_54 = lean_ctor_get(x_3, 9); -x_55 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); +x_55 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); x_56 = lean_ctor_get(x_3, 10); -x_57 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); +x_57 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_58 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); x_59 = lean_ctor_get(x_3, 11); -x_60 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); +x_60 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); x_61 = lean_ctor_get(x_3, 12); -x_62 = lean_ctor_get(x_3, 13); -x_63 = lean_ctor_get(x_3, 14); +x_62 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_63 = lean_ctor_get(x_3, 13); +x_64 = lean_ctor_get(x_3, 14); +x_65 = lean_ctor_get(x_3, 15); +x_66 = lean_ctor_get(x_3, 16); +lean_inc(x_66); +lean_inc(x_65); +lean_inc(x_64); lean_inc(x_63); -lean_inc(x_62); lean_inc(x_61); lean_inc(x_59); lean_inc(x_56); @@ -3624,180 +3693,167 @@ lean_inc(x_39); lean_inc(x_38); lean_inc(x_37); lean_dec(x_3); -x_64 = lean_box(0); -x_65 = 1; -x_66 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_66, 0, x_37); -lean_ctor_set(x_66, 1, x_38); -lean_ctor_set(x_66, 2, x_39); -lean_ctor_set(x_66, 3, x_40); -lean_ctor_set(x_66, 4, x_41); -lean_ctor_set(x_66, 5, x_42); -lean_ctor_set(x_66, 6, x_43); -lean_ctor_set(x_66, 7, x_44); -lean_ctor_set(x_66, 8, x_45); -lean_ctor_set(x_66, 9, x_54); -lean_ctor_set(x_66, 10, x_56); -lean_ctor_set(x_66, 11, x_59); -lean_ctor_set(x_66, 12, x_61); -lean_ctor_set(x_66, 13, x_62); -lean_ctor_set(x_66, 14, x_63); -lean_ctor_set_uint8(x_66, sizeof(void*)*15, x_46); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 1, x_47); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 2, x_48); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 3, x_49); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 4, x_50); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 5, x_51); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 6, x_52); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 7, x_53); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 8, x_55); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 9, x_57); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 10, x_65); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 11, x_58); -lean_ctor_set_uint8(x_66, sizeof(void*)*15 + 12, x_60); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_2); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_66); -x_69 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_69, 0, x_68); +x_67 = lean_box(0); +x_68 = 1; +x_69 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_69, 0, x_37); +lean_ctor_set(x_69, 1, x_38); +lean_ctor_set(x_69, 2, x_39); +lean_ctor_set(x_69, 3, x_40); +lean_ctor_set(x_69, 4, x_41); +lean_ctor_set(x_69, 5, x_42); +lean_ctor_set(x_69, 6, x_43); +lean_ctor_set(x_69, 7, x_44); +lean_ctor_set(x_69, 8, x_45); +lean_ctor_set(x_69, 9, x_54); +lean_ctor_set(x_69, 10, x_56); +lean_ctor_set(x_69, 11, x_59); +lean_ctor_set(x_69, 12, x_61); +lean_ctor_set(x_69, 13, x_63); +lean_ctor_set(x_69, 14, x_64); +lean_ctor_set(x_69, 15, x_65); +lean_ctor_set(x_69, 16, x_66); +lean_ctor_set_uint8(x_69, sizeof(void*)*17, x_46); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 1, x_47); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 2, x_48); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 3, x_49); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 4, x_50); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 5, x_51); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 6, x_52); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 7, x_53); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 8, x_55); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 9, x_57); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 10, x_68); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 11, x_58); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 12, x_60); +lean_ctor_set_uint8(x_69, sizeof(void*)*17 + 13, x_62); x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_4); -return x_70; -} -} -} -else -{ -uint8_t x_71; -x_71 = !lean_is_exclusive(x_3); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_72 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 6, x_22); +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_2); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_72, 0, x_71); x_73 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_2); -x_74 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_3); -x_75 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_75, 0, x_74); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_4); -return x_76; +lean_ctor_set(x_73, 1, x_4); +return x_73; +} +} } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; uint8_t x_96; uint8_t x_97; uint8_t x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_77 = lean_ctor_get(x_3, 0); -x_78 = lean_ctor_get(x_3, 1); -x_79 = lean_ctor_get(x_3, 2); -x_80 = lean_ctor_get(x_3, 3); -x_81 = lean_ctor_get(x_3, 4); -x_82 = lean_ctor_get(x_3, 5); -x_83 = lean_ctor_get(x_3, 6); -x_84 = lean_ctor_get(x_3, 7); -x_85 = lean_ctor_get(x_3, 8); -x_86 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_87 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_88 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_92 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_93 = lean_ctor_get(x_3, 9); -x_94 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_95 = lean_ctor_get(x_3, 10); -x_96 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_97 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_98 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_99 = lean_ctor_get(x_3, 11); -x_100 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_101 = lean_ctor_get(x_3, 12); -x_102 = lean_ctor_get(x_3, 13); -x_103 = lean_ctor_get(x_3, 14); -lean_inc(x_103); +uint8_t x_74; +x_74 = !lean_is_exclusive(x_3); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_75 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 6, x_22); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_2); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_3); +x_78 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_78, 0, x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_4); +return x_79; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; uint8_t x_94; uint8_t x_95; lean_object* x_96; uint8_t x_97; lean_object* x_98; uint8_t x_99; uint8_t x_100; uint8_t x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +x_80 = lean_ctor_get(x_3, 0); +x_81 = lean_ctor_get(x_3, 1); +x_82 = lean_ctor_get(x_3, 2); +x_83 = lean_ctor_get(x_3, 3); +x_84 = lean_ctor_get(x_3, 4); +x_85 = lean_ctor_get(x_3, 5); +x_86 = lean_ctor_get(x_3, 6); +x_87 = lean_ctor_get(x_3, 7); +x_88 = lean_ctor_get(x_3, 8); +x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_92 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_93 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_94 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_95 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_96 = lean_ctor_get(x_3, 9); +x_97 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_98 = lean_ctor_get(x_3, 10); +x_99 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_100 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_101 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_102 = lean_ctor_get(x_3, 11); +x_103 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_104 = lean_ctor_get(x_3, 12); +x_105 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_106 = lean_ctor_get(x_3, 13); +x_107 = lean_ctor_get(x_3, 14); +x_108 = lean_ctor_get(x_3, 15); +x_109 = lean_ctor_get(x_3, 16); +lean_inc(x_109); +lean_inc(x_108); +lean_inc(x_107); +lean_inc(x_106); +lean_inc(x_104); lean_inc(x_102); -lean_inc(x_101); -lean_inc(x_99); -lean_inc(x_95); -lean_inc(x_93); +lean_inc(x_98); +lean_inc(x_96); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); lean_inc(x_80); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); lean_dec(x_3); -x_104 = lean_box(0); -x_105 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_105, 0, x_77); -lean_ctor_set(x_105, 1, x_78); -lean_ctor_set(x_105, 2, x_79); -lean_ctor_set(x_105, 3, x_80); -lean_ctor_set(x_105, 4, x_81); -lean_ctor_set(x_105, 5, x_82); -lean_ctor_set(x_105, 6, x_83); -lean_ctor_set(x_105, 7, x_84); -lean_ctor_set(x_105, 8, x_85); -lean_ctor_set(x_105, 9, x_93); -lean_ctor_set(x_105, 10, x_95); -lean_ctor_set(x_105, 11, x_99); -lean_ctor_set(x_105, 12, x_101); -lean_ctor_set(x_105, 13, x_102); -lean_ctor_set(x_105, 14, x_103); -lean_ctor_set_uint8(x_105, sizeof(void*)*15, x_86); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 1, x_87); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 2, x_88); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 3, x_89); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 4, x_90); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 5, x_91); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 6, x_22); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 7, x_92); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 8, x_94); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 9, x_96); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 10, x_97); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 11, x_98); -lean_ctor_set_uint8(x_105, sizeof(void*)*15 + 12, x_100); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_2); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_105); -x_108 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_108, 0, x_107); -x_109 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_4); -return x_109; -} -} -} -else -{ -uint8_t x_110; -x_110 = !lean_is_exclusive(x_3); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_111 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15, x_22); +x_110 = lean_box(0); +x_111 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_111, 0, x_80); +lean_ctor_set(x_111, 1, x_81); +lean_ctor_set(x_111, 2, x_82); +lean_ctor_set(x_111, 3, x_83); +lean_ctor_set(x_111, 4, x_84); +lean_ctor_set(x_111, 5, x_85); +lean_ctor_set(x_111, 6, x_86); +lean_ctor_set(x_111, 7, x_87); +lean_ctor_set(x_111, 8, x_88); +lean_ctor_set(x_111, 9, x_96); +lean_ctor_set(x_111, 10, x_98); +lean_ctor_set(x_111, 11, x_102); +lean_ctor_set(x_111, 12, x_104); +lean_ctor_set(x_111, 13, x_106); +lean_ctor_set(x_111, 14, x_107); +lean_ctor_set(x_111, 15, x_108); +lean_ctor_set(x_111, 16, x_109); +lean_ctor_set_uint8(x_111, sizeof(void*)*17, x_89); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 1, x_90); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 2, x_91); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 3, x_92); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 4, x_93); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 5, x_94); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 6, x_22); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 7, x_95); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 8, x_97); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 9, x_99); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 10, x_100); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 11, x_101); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 12, x_103); +lean_ctor_set_uint8(x_111, sizeof(void*)*17 + 13, x_105); x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 0, x_110); lean_ctor_set(x_112, 1, x_2); x_113 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_3); +lean_ctor_set(x_113, 1, x_111); x_114 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_114, 0, x_113); x_115 = lean_alloc_ctor(0, 2, 0); @@ -3805,377 +3861,430 @@ lean_ctor_set(x_115, 0, x_114); lean_ctor_set(x_115, 1, x_4); return x_115; } +} +} else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_116 = lean_ctor_get(x_3, 0); -x_117 = lean_ctor_get(x_3, 1); -x_118 = lean_ctor_get(x_3, 2); -x_119 = lean_ctor_get(x_3, 3); -x_120 = lean_ctor_get(x_3, 4); -x_121 = lean_ctor_get(x_3, 5); -x_122 = lean_ctor_get(x_3, 6); -x_123 = lean_ctor_get(x_3, 7); -x_124 = lean_ctor_get(x_3, 8); -x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_126 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_127 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_128 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_129 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_130 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_131 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_132 = lean_ctor_get(x_3, 9); -x_133 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_134 = lean_ctor_get(x_3, 10); -x_135 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_136 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_137 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_138 = lean_ctor_get(x_3, 11); -x_139 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_140 = lean_ctor_get(x_3, 12); -x_141 = lean_ctor_get(x_3, 13); -x_142 = lean_ctor_get(x_3, 14); -lean_inc(x_142); -lean_inc(x_141); +uint8_t x_116; +x_116 = !lean_is_exclusive(x_3); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_117 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17, x_22); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_2); +x_119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_3); +x_120 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_120, 0, x_119); +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_120); +lean_ctor_set(x_121, 1, x_4); +return x_121; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; uint8_t x_132; uint8_t x_133; uint8_t x_134; uint8_t x_135; uint8_t x_136; uint8_t x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; uint8_t x_141; uint8_t x_142; uint8_t x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; uint8_t x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_122 = lean_ctor_get(x_3, 0); +x_123 = lean_ctor_get(x_3, 1); +x_124 = lean_ctor_get(x_3, 2); +x_125 = lean_ctor_get(x_3, 3); +x_126 = lean_ctor_get(x_3, 4); +x_127 = lean_ctor_get(x_3, 5); +x_128 = lean_ctor_get(x_3, 6); +x_129 = lean_ctor_get(x_3, 7); +x_130 = lean_ctor_get(x_3, 8); +x_131 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_132 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_133 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_134 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_135 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_136 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_137 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_138 = lean_ctor_get(x_3, 9); +x_139 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_140 = lean_ctor_get(x_3, 10); +x_141 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_142 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_143 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_144 = lean_ctor_get(x_3, 11); +x_145 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_146 = lean_ctor_get(x_3, 12); +x_147 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_148 = lean_ctor_get(x_3, 13); +x_149 = lean_ctor_get(x_3, 14); +x_150 = lean_ctor_get(x_3, 15); +x_151 = lean_ctor_get(x_3, 16); +lean_inc(x_151); +lean_inc(x_150); +lean_inc(x_149); +lean_inc(x_148); +lean_inc(x_146); +lean_inc(x_144); lean_inc(x_140); lean_inc(x_138); -lean_inc(x_134); -lean_inc(x_132); +lean_inc(x_130); +lean_inc(x_129); +lean_inc(x_128); +lean_inc(x_127); +lean_inc(x_126); +lean_inc(x_125); lean_inc(x_124); lean_inc(x_123); lean_inc(x_122); -lean_inc(x_121); -lean_inc(x_120); -lean_inc(x_119); -lean_inc(x_118); -lean_inc(x_117); -lean_inc(x_116); lean_dec(x_3); -x_143 = lean_box(0); -x_144 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_144, 0, x_116); -lean_ctor_set(x_144, 1, x_117); -lean_ctor_set(x_144, 2, x_118); -lean_ctor_set(x_144, 3, x_119); -lean_ctor_set(x_144, 4, x_120); -lean_ctor_set(x_144, 5, x_121); -lean_ctor_set(x_144, 6, x_122); -lean_ctor_set(x_144, 7, x_123); -lean_ctor_set(x_144, 8, x_124); -lean_ctor_set(x_144, 9, x_132); -lean_ctor_set(x_144, 10, x_134); -lean_ctor_set(x_144, 11, x_138); -lean_ctor_set(x_144, 12, x_140); -lean_ctor_set(x_144, 13, x_141); -lean_ctor_set(x_144, 14, x_142); -lean_ctor_set_uint8(x_144, sizeof(void*)*15, x_22); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 1, x_125); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 2, x_126); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 3, x_127); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 4, x_128); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 5, x_129); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 6, x_130); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 7, x_131); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 8, x_133); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 9, x_135); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 10, x_136); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 11, x_137); -lean_ctor_set_uint8(x_144, sizeof(void*)*15 + 12, x_139); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_143); -lean_ctor_set(x_145, 1, x_2); -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_4); -return x_148; -} -} -} -else -{ -uint8_t x_149; -x_149 = !lean_is_exclusive(x_3); -if (x_149 == 0) -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_150 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 4, x_20); -x_151 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_151, 0, x_150); -lean_ctor_set(x_151, 1, x_2); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_3); -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_152); +x_152 = lean_box(0); +x_153 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_153, 0, x_122); +lean_ctor_set(x_153, 1, x_123); +lean_ctor_set(x_153, 2, x_124); +lean_ctor_set(x_153, 3, x_125); +lean_ctor_set(x_153, 4, x_126); +lean_ctor_set(x_153, 5, x_127); +lean_ctor_set(x_153, 6, x_128); +lean_ctor_set(x_153, 7, x_129); +lean_ctor_set(x_153, 8, x_130); +lean_ctor_set(x_153, 9, x_138); +lean_ctor_set(x_153, 10, x_140); +lean_ctor_set(x_153, 11, x_144); +lean_ctor_set(x_153, 12, x_146); +lean_ctor_set(x_153, 13, x_148); +lean_ctor_set(x_153, 14, x_149); +lean_ctor_set(x_153, 15, x_150); +lean_ctor_set(x_153, 16, x_151); +lean_ctor_set_uint8(x_153, sizeof(void*)*17, x_22); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 1, x_131); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 2, x_132); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 3, x_133); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 4, x_134); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 5, x_135); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 6, x_136); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 7, x_137); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 8, x_139); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 9, x_141); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 10, x_142); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 11, x_143); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 12, x_145); +lean_ctor_set_uint8(x_153, sizeof(void*)*17 + 13, x_147); x_154 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_4); -return x_154; +lean_ctor_set(x_154, 0, x_152); +lean_ctor_set(x_154, 1, x_2); +x_155 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_153); +x_156 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_156, 0, x_155); +x_157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_4); +return x_157; +} +} } else { -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; uint8_t x_164; uint8_t x_165; uint8_t x_166; uint8_t x_167; uint8_t x_168; uint8_t x_169; uint8_t x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; lean_object* x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_155 = lean_ctor_get(x_3, 0); -x_156 = lean_ctor_get(x_3, 1); -x_157 = lean_ctor_get(x_3, 2); -x_158 = lean_ctor_get(x_3, 3); -x_159 = lean_ctor_get(x_3, 4); -x_160 = lean_ctor_get(x_3, 5); -x_161 = lean_ctor_get(x_3, 6); -x_162 = lean_ctor_get(x_3, 7); -x_163 = lean_ctor_get(x_3, 8); -x_164 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_165 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_166 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_167 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_168 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_169 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_170 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_171 = lean_ctor_get(x_3, 9); -x_172 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_173 = lean_ctor_get(x_3, 10); -x_174 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_175 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_176 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_177 = lean_ctor_get(x_3, 11); -x_178 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_179 = lean_ctor_get(x_3, 12); -x_180 = lean_ctor_get(x_3, 13); -x_181 = lean_ctor_get(x_3, 14); -lean_inc(x_181); +uint8_t x_158; +x_158 = !lean_is_exclusive(x_3); +if (x_158 == 0) +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +x_159 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 4, x_20); +x_160 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_2); +x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_3); +x_162 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_162, 0, x_161); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_4); +return x_163; +} +else +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; uint8_t x_174; uint8_t x_175; uint8_t x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; lean_object* x_180; uint8_t x_181; lean_object* x_182; uint8_t x_183; uint8_t x_184; uint8_t x_185; lean_object* x_186; uint8_t x_187; lean_object* x_188; uint8_t x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_164 = lean_ctor_get(x_3, 0); +x_165 = lean_ctor_get(x_3, 1); +x_166 = lean_ctor_get(x_3, 2); +x_167 = lean_ctor_get(x_3, 3); +x_168 = lean_ctor_get(x_3, 4); +x_169 = lean_ctor_get(x_3, 5); +x_170 = lean_ctor_get(x_3, 6); +x_171 = lean_ctor_get(x_3, 7); +x_172 = lean_ctor_get(x_3, 8); +x_173 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_174 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_175 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_176 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_177 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_178 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_179 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_180 = lean_ctor_get(x_3, 9); +x_181 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_182 = lean_ctor_get(x_3, 10); +x_183 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_184 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_185 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_186 = lean_ctor_get(x_3, 11); +x_187 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_188 = lean_ctor_get(x_3, 12); +x_189 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_190 = lean_ctor_get(x_3, 13); +x_191 = lean_ctor_get(x_3, 14); +x_192 = lean_ctor_get(x_3, 15); +x_193 = lean_ctor_get(x_3, 16); +lean_inc(x_193); +lean_inc(x_192); +lean_inc(x_191); +lean_inc(x_190); +lean_inc(x_188); +lean_inc(x_186); +lean_inc(x_182); lean_inc(x_180); -lean_inc(x_179); -lean_inc(x_177); -lean_inc(x_173); +lean_inc(x_172); lean_inc(x_171); -lean_inc(x_163); -lean_inc(x_162); -lean_inc(x_161); -lean_inc(x_160); -lean_inc(x_159); -lean_inc(x_158); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); +lean_inc(x_170); +lean_inc(x_169); +lean_inc(x_168); +lean_inc(x_167); +lean_inc(x_166); +lean_inc(x_165); +lean_inc(x_164); lean_dec(x_3); -x_182 = lean_box(0); -x_183 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_183, 0, x_155); -lean_ctor_set(x_183, 1, x_156); -lean_ctor_set(x_183, 2, x_157); -lean_ctor_set(x_183, 3, x_158); -lean_ctor_set(x_183, 4, x_159); -lean_ctor_set(x_183, 5, x_160); -lean_ctor_set(x_183, 6, x_161); -lean_ctor_set(x_183, 7, x_162); -lean_ctor_set(x_183, 8, x_163); -lean_ctor_set(x_183, 9, x_171); -lean_ctor_set(x_183, 10, x_173); -lean_ctor_set(x_183, 11, x_177); -lean_ctor_set(x_183, 12, x_179); -lean_ctor_set(x_183, 13, x_180); -lean_ctor_set(x_183, 14, x_181); -lean_ctor_set_uint8(x_183, sizeof(void*)*15, x_164); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 1, x_165); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 2, x_166); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 3, x_167); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 4, x_20); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 5, x_168); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 6, x_169); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 7, x_170); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 8, x_172); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 9, x_174); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 10, x_175); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 11, x_176); -lean_ctor_set_uint8(x_183, sizeof(void*)*15 + 12, x_178); -x_184 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_184, 0, x_182); -lean_ctor_set(x_184, 1, x_2); -x_185 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_185, 0, x_184); -lean_ctor_set(x_185, 1, x_183); -x_186 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_186, 0, x_185); -x_187 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_4); -return x_187; -} -} -} -else -{ -lean_object* x_188; uint8_t x_189; uint8_t x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; -x_188 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__1; -x_189 = 1; -x_190 = 0; -x_191 = lean_box(1); -x_192 = l_Lake_OutStream_logEntry(x_191, x_188, x_189, x_190, x_4); -x_193 = !lean_is_exclusive(x_192); -if (x_193 == 0) -{ -lean_object* x_194; uint8_t x_195; -x_194 = lean_ctor_get(x_192, 0); -lean_dec(x_194); -x_195 = !lean_is_exclusive(x_3); -if (x_195 == 0) -{ -lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_196 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 2, x_18); +x_194 = lean_box(0); +x_195 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_195, 0, x_164); +lean_ctor_set(x_195, 1, x_165); +lean_ctor_set(x_195, 2, x_166); +lean_ctor_set(x_195, 3, x_167); +lean_ctor_set(x_195, 4, x_168); +lean_ctor_set(x_195, 5, x_169); +lean_ctor_set(x_195, 6, x_170); +lean_ctor_set(x_195, 7, x_171); +lean_ctor_set(x_195, 8, x_172); +lean_ctor_set(x_195, 9, x_180); +lean_ctor_set(x_195, 10, x_182); +lean_ctor_set(x_195, 11, x_186); +lean_ctor_set(x_195, 12, x_188); +lean_ctor_set(x_195, 13, x_190); +lean_ctor_set(x_195, 14, x_191); +lean_ctor_set(x_195, 15, x_192); +lean_ctor_set(x_195, 16, x_193); +lean_ctor_set_uint8(x_195, sizeof(void*)*17, x_173); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 1, x_174); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 2, x_175); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 3, x_176); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 4, x_20); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 5, x_177); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 6, x_178); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 7, x_179); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 8, x_181); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 9, x_183); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 10, x_184); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 11, x_185); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 12, x_187); +lean_ctor_set_uint8(x_195, sizeof(void*)*17 + 13, x_189); +x_196 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_196, 0, x_194); +lean_ctor_set(x_196, 1, x_2); x_197 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_2); -x_198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 1, x_195); +x_198 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_3); -x_199 = lean_alloc_ctor(1, 1, 0); +x_199 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_199, 0, x_198); -lean_ctor_set(x_192, 0, x_199); -return x_192; +lean_ctor_set(x_199, 1, x_4); +return x_199; } -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; uint8_t x_217; lean_object* x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -x_200 = lean_ctor_get(x_3, 0); -x_201 = lean_ctor_get(x_3, 1); -x_202 = lean_ctor_get(x_3, 2); -x_203 = lean_ctor_get(x_3, 3); -x_204 = lean_ctor_get(x_3, 4); -x_205 = lean_ctor_get(x_3, 5); -x_206 = lean_ctor_get(x_3, 6); -x_207 = lean_ctor_get(x_3, 7); -x_208 = lean_ctor_get(x_3, 8); -x_209 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_210 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_211 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_212 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_213 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_214 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_215 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_216 = lean_ctor_get(x_3, 9); -x_217 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_218 = lean_ctor_get(x_3, 10); -x_219 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_220 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_221 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_222 = lean_ctor_get(x_3, 11); -x_223 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_224 = lean_ctor_get(x_3, 12); -x_225 = lean_ctor_get(x_3, 13); -x_226 = lean_ctor_get(x_3, 14); -lean_inc(x_226); -lean_inc(x_225); -lean_inc(x_224); -lean_inc(x_222); -lean_inc(x_218); -lean_inc(x_216); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); -lean_inc(x_204); -lean_inc(x_203); -lean_inc(x_202); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_3); -x_227 = lean_box(0); -x_228 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_228, 0, x_200); -lean_ctor_set(x_228, 1, x_201); -lean_ctor_set(x_228, 2, x_202); -lean_ctor_set(x_228, 3, x_203); -lean_ctor_set(x_228, 4, x_204); -lean_ctor_set(x_228, 5, x_205); -lean_ctor_set(x_228, 6, x_206); -lean_ctor_set(x_228, 7, x_207); -lean_ctor_set(x_228, 8, x_208); -lean_ctor_set(x_228, 9, x_216); -lean_ctor_set(x_228, 10, x_218); -lean_ctor_set(x_228, 11, x_222); -lean_ctor_set(x_228, 12, x_224); -lean_ctor_set(x_228, 13, x_225); -lean_ctor_set(x_228, 14, x_226); -lean_ctor_set_uint8(x_228, sizeof(void*)*15, x_209); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 1, x_210); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 2, x_18); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 3, x_211); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 4, x_212); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 5, x_213); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 6, x_214); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 7, x_215); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 8, x_217); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 9, x_219); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 10, x_220); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 11, x_221); -lean_ctor_set_uint8(x_228, sizeof(void*)*15 + 12, x_223); -x_229 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_229, 0, x_227); -lean_ctor_set(x_229, 1, x_2); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_229); -lean_ctor_set(x_230, 1, x_228); -x_231 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_231, 0, x_230); -lean_ctor_set(x_192, 0, x_231); -return x_192; } } else { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; uint8_t x_243; uint8_t x_244; uint8_t x_245; uint8_t x_246; uint8_t x_247; uint8_t x_248; lean_object* x_249; uint8_t x_250; lean_object* x_251; uint8_t x_252; uint8_t x_253; uint8_t x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_232 = lean_ctor_get(x_192, 1); -lean_inc(x_232); -lean_dec(x_192); -x_233 = lean_ctor_get(x_3, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_234); -x_235 = lean_ctor_get(x_3, 2); -lean_inc_ref(x_235); -x_236 = lean_ctor_get(x_3, 3); -lean_inc(x_236); -x_237 = lean_ctor_get(x_3, 4); -lean_inc(x_237); -x_238 = lean_ctor_get(x_3, 5); -lean_inc(x_238); -x_239 = lean_ctor_get(x_3, 6); -lean_inc(x_239); -x_240 = lean_ctor_get(x_3, 7); -lean_inc_ref(x_240); -x_241 = lean_ctor_get(x_3, 8); +lean_object* x_200; uint8_t x_201; uint8_t x_202; lean_object* x_203; lean_object* x_204; uint8_t x_205; +x_200 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__1; +x_201 = 1; +x_202 = 0; +x_203 = lean_box(1); +x_204 = l_Lake_OutStream_logEntry(x_203, x_200, x_201, x_202, x_4); +x_205 = !lean_is_exclusive(x_204); +if (x_205 == 0) +{ +lean_object* x_206; uint8_t x_207; +x_206 = lean_ctor_get(x_204, 0); +lean_dec(x_206); +x_207 = !lean_is_exclusive(x_3); +if (x_207 == 0) +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +x_208 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 2, x_18); +x_209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_209, 0, x_208); +lean_ctor_set(x_209, 1, x_2); +x_210 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_3); +x_211 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_204, 0, x_211); +return x_204; +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; uint8_t x_226; uint8_t x_227; lean_object* x_228; uint8_t x_229; lean_object* x_230; uint8_t x_231; uint8_t x_232; uint8_t x_233; lean_object* x_234; uint8_t x_235; lean_object* x_236; uint8_t x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_212 = lean_ctor_get(x_3, 0); +x_213 = lean_ctor_get(x_3, 1); +x_214 = lean_ctor_get(x_3, 2); +x_215 = lean_ctor_get(x_3, 3); +x_216 = lean_ctor_get(x_3, 4); +x_217 = lean_ctor_get(x_3, 5); +x_218 = lean_ctor_get(x_3, 6); +x_219 = lean_ctor_get(x_3, 7); +x_220 = lean_ctor_get(x_3, 8); +x_221 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_222 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_223 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_224 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_225 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_226 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_227 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_228 = lean_ctor_get(x_3, 9); +x_229 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_230 = lean_ctor_get(x_3, 10); +x_231 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_232 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_233 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_234 = lean_ctor_get(x_3, 11); +x_235 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_236 = lean_ctor_get(x_3, 12); +x_237 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_238 = lean_ctor_get(x_3, 13); +x_239 = lean_ctor_get(x_3, 14); +x_240 = lean_ctor_get(x_3, 15); +x_241 = lean_ctor_get(x_3, 16); lean_inc(x_241); -x_242 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_243 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_244 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_245 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_246 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_247 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_248 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_249 = lean_ctor_get(x_3, 9); -lean_inc(x_249); -x_250 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_251 = lean_ctor_get(x_3, 10); +lean_inc(x_240); +lean_inc(x_239); +lean_inc(x_238); +lean_inc(x_236); +lean_inc(x_234); +lean_inc(x_230); +lean_inc(x_228); +lean_inc(x_220); +lean_inc(x_219); +lean_inc(x_218); +lean_inc(x_217); +lean_inc(x_216); +lean_inc(x_215); +lean_inc(x_214); +lean_inc(x_213); +lean_inc(x_212); +lean_dec(x_3); +x_242 = lean_box(0); +x_243 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_243, 0, x_212); +lean_ctor_set(x_243, 1, x_213); +lean_ctor_set(x_243, 2, x_214); +lean_ctor_set(x_243, 3, x_215); +lean_ctor_set(x_243, 4, x_216); +lean_ctor_set(x_243, 5, x_217); +lean_ctor_set(x_243, 6, x_218); +lean_ctor_set(x_243, 7, x_219); +lean_ctor_set(x_243, 8, x_220); +lean_ctor_set(x_243, 9, x_228); +lean_ctor_set(x_243, 10, x_230); +lean_ctor_set(x_243, 11, x_234); +lean_ctor_set(x_243, 12, x_236); +lean_ctor_set(x_243, 13, x_238); +lean_ctor_set(x_243, 14, x_239); +lean_ctor_set(x_243, 15, x_240); +lean_ctor_set(x_243, 16, x_241); +lean_ctor_set_uint8(x_243, sizeof(void*)*17, x_221); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 1, x_222); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 2, x_18); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 3, x_223); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 4, x_224); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 5, x_225); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 6, x_226); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 7, x_227); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 8, x_229); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 9, x_231); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 10, x_232); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 11, x_233); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 12, x_235); +lean_ctor_set_uint8(x_243, sizeof(void*)*17 + 13, x_237); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_242); +lean_ctor_set(x_244, 1, x_2); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_243); +x_246 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_204, 0, x_246); +return x_204; +} +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; uint8_t x_257; uint8_t x_258; uint8_t x_259; uint8_t x_260; uint8_t x_261; uint8_t x_262; uint8_t x_263; lean_object* x_264; uint8_t x_265; lean_object* x_266; uint8_t x_267; uint8_t x_268; uint8_t x_269; lean_object* x_270; uint8_t x_271; lean_object* x_272; uint8_t x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_247 = lean_ctor_get(x_204, 1); +lean_inc(x_247); +lean_dec(x_204); +x_248 = lean_ctor_get(x_3, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_249); +x_250 = lean_ctor_get(x_3, 2); +lean_inc_ref(x_250); +x_251 = lean_ctor_get(x_3, 3); lean_inc(x_251); -x_252 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_253 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_254 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_255 = lean_ctor_get(x_3, 11); -lean_inc(x_255); -x_256 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_257 = lean_ctor_get(x_3, 12); -lean_inc(x_257); -x_258 = lean_ctor_get(x_3, 13); -lean_inc(x_258); -x_259 = lean_ctor_get(x_3, 14); -lean_inc(x_259); +x_252 = lean_ctor_get(x_3, 4); +lean_inc(x_252); +x_253 = lean_ctor_get(x_3, 5); +lean_inc(x_253); +x_254 = lean_ctor_get(x_3, 6); +lean_inc(x_254); +x_255 = lean_ctor_get(x_3, 7); +lean_inc_ref(x_255); +x_256 = lean_ctor_get(x_3, 8); +lean_inc(x_256); +x_257 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_258 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_259 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_260 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_261 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_262 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_263 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_264 = lean_ctor_get(x_3, 9); +lean_inc(x_264); +x_265 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_266 = lean_ctor_get(x_3, 10); +lean_inc(x_266); +x_267 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_268 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_269 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_270 = lean_ctor_get(x_3, 11); +lean_inc(x_270); +x_271 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_272 = lean_ctor_get(x_3, 12); +lean_inc(x_272); +x_273 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_274 = lean_ctor_get(x_3, 13); +lean_inc(x_274); +x_275 = lean_ctor_get(x_3, 14); +lean_inc(x_275); +x_276 = lean_ctor_get(x_3, 15); +lean_inc(x_276); +x_277 = lean_ctor_get(x_3, 16); +lean_inc(x_277); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); @@ -4192,2580 +4301,2745 @@ if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 12); lean_ctor_release(x_3, 13); lean_ctor_release(x_3, 14); - x_260 = x_3; + lean_ctor_release(x_3, 15); + lean_ctor_release(x_3, 16); + x_278 = x_3; } else { lean_dec_ref(x_3); - x_260 = lean_box(0); -} -x_261 = lean_box(0); -if (lean_is_scalar(x_260)) { - x_262 = lean_alloc_ctor(0, 15, 13); -} else { - x_262 = x_260; -} -lean_ctor_set(x_262, 0, x_233); -lean_ctor_set(x_262, 1, x_234); -lean_ctor_set(x_262, 2, x_235); -lean_ctor_set(x_262, 3, x_236); -lean_ctor_set(x_262, 4, x_237); -lean_ctor_set(x_262, 5, x_238); -lean_ctor_set(x_262, 6, x_239); -lean_ctor_set(x_262, 7, x_240); -lean_ctor_set(x_262, 8, x_241); -lean_ctor_set(x_262, 9, x_249); -lean_ctor_set(x_262, 10, x_251); -lean_ctor_set(x_262, 11, x_255); -lean_ctor_set(x_262, 12, x_257); -lean_ctor_set(x_262, 13, x_258); -lean_ctor_set(x_262, 14, x_259); -lean_ctor_set_uint8(x_262, sizeof(void*)*15, x_242); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 1, x_243); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 2, x_18); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 3, x_244); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 4, x_245); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 5, x_246); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 6, x_247); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 7, x_248); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 8, x_250); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 9, x_252); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 10, x_253); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 11, x_254); -lean_ctor_set_uint8(x_262, sizeof(void*)*15 + 12, x_256); -x_263 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_263, 0, x_261); -lean_ctor_set(x_263, 1, x_2); -x_264 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_264, 0, x_263); -lean_ctor_set(x_264, 1, x_262); -x_265 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_265, 0, x_264); -x_266 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_232); -return x_266; -} -} -} -else -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_267 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__2; -x_268 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__3; -x_269 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_267, x_268, x_2, x_3, x_4); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -if (lean_obj_tag(x_270) == 0) -{ -uint8_t x_271; -x_271 = !lean_is_exclusive(x_269); -if (x_271 == 0) -{ -lean_object* x_272; uint8_t x_273; -x_272 = lean_ctor_get(x_269, 0); -lean_dec(x_272); -x_273 = !lean_is_exclusive(x_270); -if (x_273 == 0) -{ -return x_269; -} -else -{ -lean_object* x_274; lean_object* x_275; -x_274 = lean_ctor_get(x_270, 0); -lean_inc(x_274); -lean_dec(x_270); -x_275 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_275, 0, x_274); -lean_ctor_set(x_269, 0, x_275); -return x_269; -} -} -else -{ -lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_276 = lean_ctor_get(x_269, 1); -lean_inc(x_276); -lean_dec(x_269); -x_277 = lean_ctor_get(x_270, 0); -lean_inc(x_277); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - x_278 = x_270; -} else { - lean_dec_ref(x_270); x_278 = lean_box(0); } +x_279 = lean_box(0); if (lean_is_scalar(x_278)) { - x_279 = lean_alloc_ctor(0, 1, 0); + x_280 = lean_alloc_ctor(0, 17, 14); } else { - x_279 = x_278; + x_280 = x_278; +} +lean_ctor_set(x_280, 0, x_248); +lean_ctor_set(x_280, 1, x_249); +lean_ctor_set(x_280, 2, x_250); +lean_ctor_set(x_280, 3, x_251); +lean_ctor_set(x_280, 4, x_252); +lean_ctor_set(x_280, 5, x_253); +lean_ctor_set(x_280, 6, x_254); +lean_ctor_set(x_280, 7, x_255); +lean_ctor_set(x_280, 8, x_256); +lean_ctor_set(x_280, 9, x_264); +lean_ctor_set(x_280, 10, x_266); +lean_ctor_set(x_280, 11, x_270); +lean_ctor_set(x_280, 12, x_272); +lean_ctor_set(x_280, 13, x_274); +lean_ctor_set(x_280, 14, x_275); +lean_ctor_set(x_280, 15, x_276); +lean_ctor_set(x_280, 16, x_277); +lean_ctor_set_uint8(x_280, sizeof(void*)*17, x_257); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 1, x_258); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 2, x_18); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 3, x_259); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 4, x_260); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 5, x_261); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 6, x_262); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 7, x_263); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 8, x_265); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 9, x_267); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 10, x_268); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 11, x_269); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 12, x_271); +lean_ctor_set_uint8(x_280, sizeof(void*)*17 + 13, x_273); +x_281 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_281, 0, x_279); +lean_ctor_set(x_281, 1, x_2); +x_282 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_282, 0, x_281); +lean_ctor_set(x_282, 1, x_280); +x_283 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_283, 0, x_282); +x_284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_284, 0, x_283); +lean_ctor_set(x_284, 1, x_247); +return x_284; } -lean_ctor_set(x_279, 0, x_277); -x_280 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_276); -return x_280; } } else { -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_281 = lean_ctor_get(x_270, 0); -lean_inc(x_281); -lean_dec_ref(x_270); -x_282 = lean_ctor_get(x_281, 0); -lean_inc(x_282); -x_283 = lean_ctor_get(x_269, 1); -lean_inc(x_283); -lean_dec_ref(x_269); -x_284 = lean_ctor_get(x_281, 1); -lean_inc(x_284); -lean_dec(x_281); -x_285 = lean_ctor_get(x_282, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_282, 1); -lean_inc(x_286); -lean_dec(x_282); -x_287 = l___private_Lake_CLI_Main_0__Lake_setConfigOpt(x_285, x_286, x_284, x_283); +lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_285 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__2; +x_286 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__3; +x_287 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_285, x_286, x_2, x_3, x_4); +x_288 = lean_ctor_get(x_287, 0); +lean_inc(x_288); +if (lean_obj_tag(x_288) == 0) +{ +uint8_t x_289; +x_289 = !lean_is_exclusive(x_287); +if (x_289 == 0) +{ +lean_object* x_290; uint8_t x_291; +x_290 = lean_ctor_get(x_287, 0); +lean_dec(x_290); +x_291 = !lean_is_exclusive(x_288); +if (x_291 == 0) +{ +return x_287; +} +else +{ +lean_object* x_292; lean_object* x_293; +x_292 = lean_ctor_get(x_288, 0); +lean_inc(x_292); +lean_dec(x_288); +x_293 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_293, 0, x_292); +lean_ctor_set(x_287, 0, x_293); return x_287; } } -} else { -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; -x_288 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__4; -x_289 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; -x_290 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_288, x_289, x_2, x_3, x_4); -x_291 = lean_ctor_get(x_290, 0); -lean_inc(x_291); -if (lean_obj_tag(x_291) == 0) -{ -uint8_t x_292; -x_292 = !lean_is_exclusive(x_290); -if (x_292 == 0) -{ -lean_object* x_293; uint8_t x_294; -x_293 = lean_ctor_get(x_290, 0); -lean_dec(x_293); -x_294 = !lean_is_exclusive(x_291); -if (x_294 == 0) -{ -return x_290; -} -else -{ -lean_object* x_295; lean_object* x_296; -x_295 = lean_ctor_get(x_291, 0); +lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; +x_294 = lean_ctor_get(x_287, 1); +lean_inc(x_294); +lean_dec(x_287); +x_295 = lean_ctor_get(x_288, 0); lean_inc(x_295); -lean_dec(x_291); -x_296 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_290, 0, x_296); -return x_290; +if (lean_is_exclusive(x_288)) { + lean_ctor_release(x_288, 0); + x_296 = x_288; +} else { + lean_dec_ref(x_288); + x_296 = lean_box(0); +} +if (lean_is_scalar(x_296)) { + x_297 = lean_alloc_ctor(0, 1, 0); +} else { + x_297 = x_296; +} +lean_ctor_set(x_297, 0, x_295); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_297); +lean_ctor_set(x_298, 1, x_294); +return x_298; } } else { -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_297 = lean_ctor_get(x_290, 1); -lean_inc(x_297); -lean_dec(x_290); -x_298 = lean_ctor_get(x_291, 0); -lean_inc(x_298); -if (lean_is_exclusive(x_291)) { - lean_ctor_release(x_291, 0); - x_299 = x_291; -} else { - lean_dec_ref(x_291); - x_299 = lean_box(0); +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_299 = lean_ctor_get(x_288, 0); +lean_inc(x_299); +lean_dec_ref(x_288); +x_300 = lean_ctor_get(x_299, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_287, 1); +lean_inc(x_301); +lean_dec_ref(x_287); +x_302 = lean_ctor_get(x_299, 1); +lean_inc(x_302); +lean_dec(x_299); +x_303 = lean_ctor_get(x_300, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_300, 1); +lean_inc(x_304); +lean_dec(x_300); +x_305 = l___private_Lake_CLI_Main_0__Lake_setConfigOpt(x_303, x_304, x_302, x_301); +return x_305; } -if (lean_is_scalar(x_299)) { - x_300 = lean_alloc_ctor(0, 1, 0); -} else { - x_300 = x_299; -} -lean_ctor_set(x_300, 0, x_298); -x_301 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_301, 0, x_300); -lean_ctor_set(x_301, 1, x_297); -return x_301; } } else { -uint8_t x_302; -x_302 = !lean_is_exclusive(x_291); -if (x_302 == 0) -{ -lean_object* x_303; uint8_t x_304; -x_303 = lean_ctor_get(x_291, 0); -x_304 = !lean_is_exclusive(x_303); -if (x_304 == 0) -{ -uint8_t x_305; -x_305 = !lean_is_exclusive(x_290); -if (x_305 == 0) -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; -x_306 = lean_ctor_get(x_303, 0); -x_307 = lean_ctor_get(x_303, 1); -x_308 = lean_ctor_get(x_290, 0); -lean_dec(x_308); -x_309 = !lean_is_exclusive(x_306); -if (x_309 == 0) +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_306 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__4; +x_307 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; +x_308 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_306, x_307, x_2, x_3, x_4); +x_309 = lean_ctor_get(x_308, 0); +lean_inc(x_309); +if (lean_obj_tag(x_309) == 0) { uint8_t x_310; -x_310 = !lean_is_exclusive(x_307); +x_310 = !lean_is_exclusive(x_308); if (x_310 == 0) { -lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_311 = lean_ctor_get(x_306, 0); -x_312 = lean_ctor_get(x_307, 11); -lean_dec(x_312); -x_313 = lean_box(0); -x_314 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_314, 0, x_311); -lean_ctor_set(x_307, 11, x_314); -lean_ctor_set(x_306, 0, x_313); -return x_290; +lean_object* x_311; uint8_t x_312; +x_311 = lean_ctor_get(x_308, 0); +lean_dec(x_311); +x_312 = !lean_is_exclusive(x_309); +if (x_312 == 0) +{ +return x_308; } else { -lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; uint8_t x_325; uint8_t x_326; uint8_t x_327; uint8_t x_328; uint8_t x_329; uint8_t x_330; uint8_t x_331; uint8_t x_332; lean_object* x_333; uint8_t x_334; lean_object* x_335; uint8_t x_336; uint8_t x_337; uint8_t x_338; uint8_t x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_315 = lean_ctor_get(x_306, 0); -x_316 = lean_ctor_get(x_307, 0); -x_317 = lean_ctor_get(x_307, 1); -x_318 = lean_ctor_get(x_307, 2); -x_319 = lean_ctor_get(x_307, 3); -x_320 = lean_ctor_get(x_307, 4); -x_321 = lean_ctor_get(x_307, 5); -x_322 = lean_ctor_get(x_307, 6); -x_323 = lean_ctor_get(x_307, 7); -x_324 = lean_ctor_get(x_307, 8); -x_325 = lean_ctor_get_uint8(x_307, sizeof(void*)*15); -x_326 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 1); -x_327 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 2); -x_328 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 3); -x_329 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 4); -x_330 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 5); -x_331 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 6); -x_332 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 7); -x_333 = lean_ctor_get(x_307, 9); -x_334 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 8); -x_335 = lean_ctor_get(x_307, 10); -x_336 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 9); -x_337 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 10); -x_338 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 11); -x_339 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 12); -x_340 = lean_ctor_get(x_307, 12); -x_341 = lean_ctor_get(x_307, 13); -x_342 = lean_ctor_get(x_307, 14); +lean_object* x_313; lean_object* x_314; +x_313 = lean_ctor_get(x_309, 0); +lean_inc(x_313); +lean_dec(x_309); +x_314 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_308, 0, x_314); +return x_308; +} +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; +x_315 = lean_ctor_get(x_308, 1); +lean_inc(x_315); +lean_dec(x_308); +x_316 = lean_ctor_get(x_309, 0); +lean_inc(x_316); +if (lean_is_exclusive(x_309)) { + lean_ctor_release(x_309, 0); + x_317 = x_309; +} else { + lean_dec_ref(x_309); + x_317 = lean_box(0); +} +if (lean_is_scalar(x_317)) { + x_318 = lean_alloc_ctor(0, 1, 0); +} else { + x_318 = x_317; +} +lean_ctor_set(x_318, 0, x_316); +x_319 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_319, 0, x_318); +lean_ctor_set(x_319, 1, x_315); +return x_319; +} +} +else +{ +uint8_t x_320; +x_320 = !lean_is_exclusive(x_309); +if (x_320 == 0) +{ +lean_object* x_321; uint8_t x_322; +x_321 = lean_ctor_get(x_309, 0); +x_322 = !lean_is_exclusive(x_321); +if (x_322 == 0) +{ +uint8_t x_323; +x_323 = !lean_is_exclusive(x_308); +if (x_323 == 0) +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; +x_324 = lean_ctor_get(x_321, 0); +x_325 = lean_ctor_get(x_321, 1); +x_326 = lean_ctor_get(x_308, 0); +lean_dec(x_326); +x_327 = !lean_is_exclusive(x_324); +if (x_327 == 0) +{ +uint8_t x_328; +x_328 = !lean_is_exclusive(x_325); +if (x_328 == 0) +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; +x_329 = lean_ctor_get(x_324, 0); +x_330 = lean_ctor_get(x_325, 11); +lean_dec(x_330); +x_331 = lean_box(0); +x_332 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_325, 11, x_332); +lean_ctor_set(x_324, 0, x_331); +return x_308; +} +else +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; uint8_t x_343; uint8_t x_344; uint8_t x_345; uint8_t x_346; uint8_t x_347; uint8_t x_348; uint8_t x_349; uint8_t x_350; lean_object* x_351; uint8_t x_352; lean_object* x_353; uint8_t x_354; uint8_t x_355; uint8_t x_356; uint8_t x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_333 = lean_ctor_get(x_324, 0); +x_334 = lean_ctor_get(x_325, 0); +x_335 = lean_ctor_get(x_325, 1); +x_336 = lean_ctor_get(x_325, 2); +x_337 = lean_ctor_get(x_325, 3); +x_338 = lean_ctor_get(x_325, 4); +x_339 = lean_ctor_get(x_325, 5); +x_340 = lean_ctor_get(x_325, 6); +x_341 = lean_ctor_get(x_325, 7); +x_342 = lean_ctor_get(x_325, 8); +x_343 = lean_ctor_get_uint8(x_325, sizeof(void*)*17); +x_344 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 1); +x_345 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 2); +x_346 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 3); +x_347 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 4); +x_348 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 5); +x_349 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 6); +x_350 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 7); +x_351 = lean_ctor_get(x_325, 9); +x_352 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 8); +x_353 = lean_ctor_get(x_325, 10); +x_354 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 9); +x_355 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 10); +x_356 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 11); +x_357 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 12); +x_358 = lean_ctor_get(x_325, 12); +x_359 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 13); +x_360 = lean_ctor_get(x_325, 13); +x_361 = lean_ctor_get(x_325, 14); +x_362 = lean_ctor_get(x_325, 15); +x_363 = lean_ctor_get(x_325, 16); +lean_inc(x_363); +lean_inc(x_362); +lean_inc(x_361); +lean_inc(x_360); +lean_inc(x_358); +lean_inc(x_353); +lean_inc(x_351); lean_inc(x_342); lean_inc(x_341); lean_inc(x_340); +lean_inc(x_339); +lean_inc(x_338); +lean_inc(x_337); +lean_inc(x_336); lean_inc(x_335); -lean_inc(x_333); -lean_inc(x_324); -lean_inc(x_323); -lean_inc(x_322); -lean_inc(x_321); -lean_inc(x_320); -lean_inc(x_319); -lean_inc(x_318); -lean_inc(x_317); -lean_inc(x_316); -lean_dec(x_307); -x_343 = lean_box(0); -x_344 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_344, 0, x_315); -x_345 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_345, 0, x_316); -lean_ctor_set(x_345, 1, x_317); -lean_ctor_set(x_345, 2, x_318); -lean_ctor_set(x_345, 3, x_319); -lean_ctor_set(x_345, 4, x_320); -lean_ctor_set(x_345, 5, x_321); -lean_ctor_set(x_345, 6, x_322); -lean_ctor_set(x_345, 7, x_323); -lean_ctor_set(x_345, 8, x_324); -lean_ctor_set(x_345, 9, x_333); -lean_ctor_set(x_345, 10, x_335); -lean_ctor_set(x_345, 11, x_344); -lean_ctor_set(x_345, 12, x_340); -lean_ctor_set(x_345, 13, x_341); -lean_ctor_set(x_345, 14, x_342); -lean_ctor_set_uint8(x_345, sizeof(void*)*15, x_325); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 1, x_326); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 2, x_327); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 3, x_328); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 4, x_329); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 5, x_330); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 6, x_331); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 7, x_332); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 8, x_334); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 9, x_336); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 10, x_337); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 11, x_338); -lean_ctor_set_uint8(x_345, sizeof(void*)*15 + 12, x_339); -lean_ctor_set(x_306, 0, x_343); -lean_ctor_set(x_303, 1, x_345); -return x_290; +lean_inc(x_334); +lean_dec(x_325); +x_364 = lean_box(0); +x_365 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_365, 0, x_333); +x_366 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_366, 0, x_334); +lean_ctor_set(x_366, 1, x_335); +lean_ctor_set(x_366, 2, x_336); +lean_ctor_set(x_366, 3, x_337); +lean_ctor_set(x_366, 4, x_338); +lean_ctor_set(x_366, 5, x_339); +lean_ctor_set(x_366, 6, x_340); +lean_ctor_set(x_366, 7, x_341); +lean_ctor_set(x_366, 8, x_342); +lean_ctor_set(x_366, 9, x_351); +lean_ctor_set(x_366, 10, x_353); +lean_ctor_set(x_366, 11, x_365); +lean_ctor_set(x_366, 12, x_358); +lean_ctor_set(x_366, 13, x_360); +lean_ctor_set(x_366, 14, x_361); +lean_ctor_set(x_366, 15, x_362); +lean_ctor_set(x_366, 16, x_363); +lean_ctor_set_uint8(x_366, sizeof(void*)*17, x_343); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 1, x_344); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 2, x_345); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 3, x_346); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 4, x_347); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 5, x_348); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 6, x_349); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 7, x_350); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 8, x_352); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 9, x_354); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 10, x_355); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 11, x_356); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 12, x_357); +lean_ctor_set_uint8(x_366, sizeof(void*)*17 + 13, x_359); +lean_ctor_set(x_324, 0, x_364); +lean_ctor_set(x_321, 1, x_366); +return x_308; } } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; uint8_t x_358; uint8_t x_359; uint8_t x_360; uint8_t x_361; uint8_t x_362; uint8_t x_363; uint8_t x_364; lean_object* x_365; uint8_t x_366; lean_object* x_367; uint8_t x_368; uint8_t x_369; uint8_t x_370; uint8_t x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_346 = lean_ctor_get(x_306, 0); -x_347 = lean_ctor_get(x_306, 1); -lean_inc(x_347); -lean_inc(x_346); -lean_dec(x_306); -x_348 = lean_ctor_get(x_307, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_307, 1); -lean_inc_ref(x_349); -x_350 = lean_ctor_get(x_307, 2); -lean_inc_ref(x_350); -x_351 = lean_ctor_get(x_307, 3); -lean_inc(x_351); -x_352 = lean_ctor_get(x_307, 4); -lean_inc(x_352); -x_353 = lean_ctor_get(x_307, 5); -lean_inc(x_353); -x_354 = lean_ctor_get(x_307, 6); -lean_inc(x_354); -x_355 = lean_ctor_get(x_307, 7); -lean_inc_ref(x_355); -x_356 = lean_ctor_get(x_307, 8); -lean_inc(x_356); -x_357 = lean_ctor_get_uint8(x_307, sizeof(void*)*15); -x_358 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 1); -x_359 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 2); -x_360 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 3); -x_361 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 4); -x_362 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 5); -x_363 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 6); -x_364 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 7); -x_365 = lean_ctor_get(x_307, 9); -lean_inc(x_365); -x_366 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 8); -x_367 = lean_ctor_get(x_307, 10); +lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; uint8_t x_378; uint8_t x_379; uint8_t x_380; uint8_t x_381; uint8_t x_382; uint8_t x_383; uint8_t x_384; uint8_t x_385; lean_object* x_386; uint8_t x_387; lean_object* x_388; uint8_t x_389; uint8_t x_390; uint8_t x_391; uint8_t x_392; lean_object* x_393; uint8_t x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_367 = lean_ctor_get(x_324, 0); +x_368 = lean_ctor_get(x_324, 1); +lean_inc(x_368); lean_inc(x_367); -x_368 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 9); -x_369 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 10); -x_370 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 11); -x_371 = lean_ctor_get_uint8(x_307, sizeof(void*)*15 + 12); -x_372 = lean_ctor_get(x_307, 12); +lean_dec(x_324); +x_369 = lean_ctor_get(x_325, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_325, 1); +lean_inc_ref(x_370); +x_371 = lean_ctor_get(x_325, 2); +lean_inc_ref(x_371); +x_372 = lean_ctor_get(x_325, 3); lean_inc(x_372); -x_373 = lean_ctor_get(x_307, 13); +x_373 = lean_ctor_get(x_325, 4); lean_inc(x_373); -x_374 = lean_ctor_get(x_307, 14); +x_374 = lean_ctor_get(x_325, 5); lean_inc(x_374); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - lean_ctor_release(x_307, 2); - lean_ctor_release(x_307, 3); - lean_ctor_release(x_307, 4); - lean_ctor_release(x_307, 5); - lean_ctor_release(x_307, 6); - lean_ctor_release(x_307, 7); - lean_ctor_release(x_307, 8); - lean_ctor_release(x_307, 9); - lean_ctor_release(x_307, 10); - lean_ctor_release(x_307, 11); - lean_ctor_release(x_307, 12); - lean_ctor_release(x_307, 13); - lean_ctor_release(x_307, 14); - x_375 = x_307; -} else { - lean_dec_ref(x_307); - x_375 = lean_box(0); -} -x_376 = lean_box(0); -x_377 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_377, 0, x_346); -if (lean_is_scalar(x_375)) { - x_378 = lean_alloc_ctor(0, 15, 13); -} else { - x_378 = x_375; -} -lean_ctor_set(x_378, 0, x_348); -lean_ctor_set(x_378, 1, x_349); -lean_ctor_set(x_378, 2, x_350); -lean_ctor_set(x_378, 3, x_351); -lean_ctor_set(x_378, 4, x_352); -lean_ctor_set(x_378, 5, x_353); -lean_ctor_set(x_378, 6, x_354); -lean_ctor_set(x_378, 7, x_355); -lean_ctor_set(x_378, 8, x_356); -lean_ctor_set(x_378, 9, x_365); -lean_ctor_set(x_378, 10, x_367); -lean_ctor_set(x_378, 11, x_377); -lean_ctor_set(x_378, 12, x_372); -lean_ctor_set(x_378, 13, x_373); -lean_ctor_set(x_378, 14, x_374); -lean_ctor_set_uint8(x_378, sizeof(void*)*15, x_357); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 1, x_358); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 2, x_359); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 3, x_360); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 4, x_361); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 5, x_362); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 6, x_363); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 7, x_364); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 8, x_366); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 9, x_368); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 10, x_369); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 11, x_370); -lean_ctor_set_uint8(x_378, sizeof(void*)*15 + 12, x_371); -x_379 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_379, 0, x_376); -lean_ctor_set(x_379, 1, x_347); -lean_ctor_set(x_303, 1, x_378); -lean_ctor_set(x_303, 0, x_379); -return x_290; -} -} -else -{ -lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; uint8_t x_395; uint8_t x_396; uint8_t x_397; uint8_t x_398; uint8_t x_399; uint8_t x_400; uint8_t x_401; uint8_t x_402; lean_object* x_403; uint8_t x_404; lean_object* x_405; uint8_t x_406; uint8_t x_407; uint8_t x_408; uint8_t x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_380 = lean_ctor_get(x_303, 0); -x_381 = lean_ctor_get(x_303, 1); -x_382 = lean_ctor_get(x_290, 1); -lean_inc(x_382); -lean_dec(x_290); -x_383 = lean_ctor_get(x_380, 0); -lean_inc(x_383); -x_384 = lean_ctor_get(x_380, 1); -lean_inc(x_384); -if (lean_is_exclusive(x_380)) { - lean_ctor_release(x_380, 0); - lean_ctor_release(x_380, 1); - x_385 = x_380; -} else { - lean_dec_ref(x_380); - x_385 = lean_box(0); -} -x_386 = lean_ctor_get(x_381, 0); +x_375 = lean_ctor_get(x_325, 6); +lean_inc(x_375); +x_376 = lean_ctor_get(x_325, 7); +lean_inc_ref(x_376); +x_377 = lean_ctor_get(x_325, 8); +lean_inc(x_377); +x_378 = lean_ctor_get_uint8(x_325, sizeof(void*)*17); +x_379 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 1); +x_380 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 2); +x_381 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 3); +x_382 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 4); +x_383 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 5); +x_384 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 6); +x_385 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 7); +x_386 = lean_ctor_get(x_325, 9); lean_inc(x_386); -x_387 = lean_ctor_get(x_381, 1); -lean_inc_ref(x_387); -x_388 = lean_ctor_get(x_381, 2); -lean_inc_ref(x_388); -x_389 = lean_ctor_get(x_381, 3); -lean_inc(x_389); -x_390 = lean_ctor_get(x_381, 4); -lean_inc(x_390); -x_391 = lean_ctor_get(x_381, 5); -lean_inc(x_391); -x_392 = lean_ctor_get(x_381, 6); -lean_inc(x_392); -x_393 = lean_ctor_get(x_381, 7); -lean_inc_ref(x_393); -x_394 = lean_ctor_get(x_381, 8); -lean_inc(x_394); -x_395 = lean_ctor_get_uint8(x_381, sizeof(void*)*15); -x_396 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 1); -x_397 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 2); -x_398 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 3); -x_399 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 4); -x_400 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 5); -x_401 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 6); -x_402 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 7); -x_403 = lean_ctor_get(x_381, 9); -lean_inc(x_403); -x_404 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 8); -x_405 = lean_ctor_get(x_381, 10); -lean_inc(x_405); -x_406 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 9); -x_407 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 10); -x_408 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 11); -x_409 = lean_ctor_get_uint8(x_381, sizeof(void*)*15 + 12); -x_410 = lean_ctor_get(x_381, 12); +x_387 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 8); +x_388 = lean_ctor_get(x_325, 10); +lean_inc(x_388); +x_389 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 9); +x_390 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 10); +x_391 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 11); +x_392 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 12); +x_393 = lean_ctor_get(x_325, 12); +lean_inc(x_393); +x_394 = lean_ctor_get_uint8(x_325, sizeof(void*)*17 + 13); +x_395 = lean_ctor_get(x_325, 13); +lean_inc(x_395); +x_396 = lean_ctor_get(x_325, 14); +lean_inc(x_396); +x_397 = lean_ctor_get(x_325, 15); +lean_inc(x_397); +x_398 = lean_ctor_get(x_325, 16); +lean_inc(x_398); +if (lean_is_exclusive(x_325)) { + lean_ctor_release(x_325, 0); + lean_ctor_release(x_325, 1); + lean_ctor_release(x_325, 2); + lean_ctor_release(x_325, 3); + lean_ctor_release(x_325, 4); + lean_ctor_release(x_325, 5); + lean_ctor_release(x_325, 6); + lean_ctor_release(x_325, 7); + lean_ctor_release(x_325, 8); + lean_ctor_release(x_325, 9); + lean_ctor_release(x_325, 10); + lean_ctor_release(x_325, 11); + lean_ctor_release(x_325, 12); + lean_ctor_release(x_325, 13); + lean_ctor_release(x_325, 14); + lean_ctor_release(x_325, 15); + lean_ctor_release(x_325, 16); + x_399 = x_325; +} else { + lean_dec_ref(x_325); + x_399 = lean_box(0); +} +x_400 = lean_box(0); +x_401 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_401, 0, x_367); +if (lean_is_scalar(x_399)) { + x_402 = lean_alloc_ctor(0, 17, 14); +} else { + x_402 = x_399; +} +lean_ctor_set(x_402, 0, x_369); +lean_ctor_set(x_402, 1, x_370); +lean_ctor_set(x_402, 2, x_371); +lean_ctor_set(x_402, 3, x_372); +lean_ctor_set(x_402, 4, x_373); +lean_ctor_set(x_402, 5, x_374); +lean_ctor_set(x_402, 6, x_375); +lean_ctor_set(x_402, 7, x_376); +lean_ctor_set(x_402, 8, x_377); +lean_ctor_set(x_402, 9, x_386); +lean_ctor_set(x_402, 10, x_388); +lean_ctor_set(x_402, 11, x_401); +lean_ctor_set(x_402, 12, x_393); +lean_ctor_set(x_402, 13, x_395); +lean_ctor_set(x_402, 14, x_396); +lean_ctor_set(x_402, 15, x_397); +lean_ctor_set(x_402, 16, x_398); +lean_ctor_set_uint8(x_402, sizeof(void*)*17, x_378); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 1, x_379); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 2, x_380); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 3, x_381); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 4, x_382); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 5, x_383); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 6, x_384); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 7, x_385); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 8, x_387); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 9, x_389); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 10, x_390); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 11, x_391); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 12, x_392); +lean_ctor_set_uint8(x_402, sizeof(void*)*17 + 13, x_394); +x_403 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_403, 0, x_400); +lean_ctor_set(x_403, 1, x_368); +lean_ctor_set(x_321, 1, x_402); +lean_ctor_set(x_321, 0, x_403); +return x_308; +} +} +else +{ +lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; uint8_t x_419; uint8_t x_420; uint8_t x_421; uint8_t x_422; uint8_t x_423; uint8_t x_424; uint8_t x_425; uint8_t x_426; lean_object* x_427; uint8_t x_428; lean_object* x_429; uint8_t x_430; uint8_t x_431; uint8_t x_432; uint8_t x_433; lean_object* x_434; uint8_t x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; +x_404 = lean_ctor_get(x_321, 0); +x_405 = lean_ctor_get(x_321, 1); +x_406 = lean_ctor_get(x_308, 1); +lean_inc(x_406); +lean_dec(x_308); +x_407 = lean_ctor_get(x_404, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_404, 1); +lean_inc(x_408); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + x_409 = x_404; +} else { + lean_dec_ref(x_404); + x_409 = lean_box(0); +} +x_410 = lean_ctor_get(x_405, 0); lean_inc(x_410); -x_411 = lean_ctor_get(x_381, 13); -lean_inc(x_411); -x_412 = lean_ctor_get(x_381, 14); -lean_inc(x_412); -if (lean_is_exclusive(x_381)) { - lean_ctor_release(x_381, 0); - lean_ctor_release(x_381, 1); - lean_ctor_release(x_381, 2); - lean_ctor_release(x_381, 3); - lean_ctor_release(x_381, 4); - lean_ctor_release(x_381, 5); - lean_ctor_release(x_381, 6); - lean_ctor_release(x_381, 7); - lean_ctor_release(x_381, 8); - lean_ctor_release(x_381, 9); - lean_ctor_release(x_381, 10); - lean_ctor_release(x_381, 11); - lean_ctor_release(x_381, 12); - lean_ctor_release(x_381, 13); - lean_ctor_release(x_381, 14); - x_413 = x_381; -} else { - lean_dec_ref(x_381); - x_413 = lean_box(0); -} -x_414 = lean_box(0); -x_415 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_415, 0, x_383); -if (lean_is_scalar(x_413)) { - x_416 = lean_alloc_ctor(0, 15, 13); -} else { - x_416 = x_413; -} -lean_ctor_set(x_416, 0, x_386); -lean_ctor_set(x_416, 1, x_387); -lean_ctor_set(x_416, 2, x_388); -lean_ctor_set(x_416, 3, x_389); -lean_ctor_set(x_416, 4, x_390); -lean_ctor_set(x_416, 5, x_391); -lean_ctor_set(x_416, 6, x_392); -lean_ctor_set(x_416, 7, x_393); -lean_ctor_set(x_416, 8, x_394); -lean_ctor_set(x_416, 9, x_403); -lean_ctor_set(x_416, 10, x_405); -lean_ctor_set(x_416, 11, x_415); -lean_ctor_set(x_416, 12, x_410); -lean_ctor_set(x_416, 13, x_411); -lean_ctor_set(x_416, 14, x_412); -lean_ctor_set_uint8(x_416, sizeof(void*)*15, x_395); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 1, x_396); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 2, x_397); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 3, x_398); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 4, x_399); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 5, x_400); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 6, x_401); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 7, x_402); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 8, x_404); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 9, x_406); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 10, x_407); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 11, x_408); -lean_ctor_set_uint8(x_416, sizeof(void*)*15 + 12, x_409); -if (lean_is_scalar(x_385)) { - x_417 = lean_alloc_ctor(0, 2, 0); -} else { - x_417 = x_385; -} -lean_ctor_set(x_417, 0, x_414); -lean_ctor_set(x_417, 1, x_384); -lean_ctor_set(x_303, 1, x_416); -lean_ctor_set(x_303, 0, x_417); -x_418 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_418, 0, x_291); -lean_ctor_set(x_418, 1, x_382); -return x_418; -} -} -else -{ -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; uint8_t x_435; uint8_t x_436; uint8_t x_437; uint8_t x_438; uint8_t x_439; uint8_t x_440; uint8_t x_441; uint8_t x_442; lean_object* x_443; uint8_t x_444; lean_object* x_445; uint8_t x_446; uint8_t x_447; uint8_t x_448; uint8_t x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; -x_419 = lean_ctor_get(x_303, 0); -x_420 = lean_ctor_get(x_303, 1); -lean_inc(x_420); -lean_inc(x_419); -lean_dec(x_303); -x_421 = lean_ctor_get(x_290, 1); -lean_inc(x_421); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_422 = x_290; -} else { - lean_dec_ref(x_290); - x_422 = lean_box(0); -} -x_423 = lean_ctor_get(x_419, 0); -lean_inc(x_423); -x_424 = lean_ctor_get(x_419, 1); -lean_inc(x_424); -if (lean_is_exclusive(x_419)) { - lean_ctor_release(x_419, 0); - lean_ctor_release(x_419, 1); - x_425 = x_419; -} else { - lean_dec_ref(x_419); - x_425 = lean_box(0); -} -x_426 = lean_ctor_get(x_420, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_420, 1); -lean_inc_ref(x_427); -x_428 = lean_ctor_get(x_420, 2); -lean_inc_ref(x_428); -x_429 = lean_ctor_get(x_420, 3); +x_411 = lean_ctor_get(x_405, 1); +lean_inc_ref(x_411); +x_412 = lean_ctor_get(x_405, 2); +lean_inc_ref(x_412); +x_413 = lean_ctor_get(x_405, 3); +lean_inc(x_413); +x_414 = lean_ctor_get(x_405, 4); +lean_inc(x_414); +x_415 = lean_ctor_get(x_405, 5); +lean_inc(x_415); +x_416 = lean_ctor_get(x_405, 6); +lean_inc(x_416); +x_417 = lean_ctor_get(x_405, 7); +lean_inc_ref(x_417); +x_418 = lean_ctor_get(x_405, 8); +lean_inc(x_418); +x_419 = lean_ctor_get_uint8(x_405, sizeof(void*)*17); +x_420 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 1); +x_421 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 2); +x_422 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 3); +x_423 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 4); +x_424 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 5); +x_425 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 6); +x_426 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 7); +x_427 = lean_ctor_get(x_405, 9); +lean_inc(x_427); +x_428 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 8); +x_429 = lean_ctor_get(x_405, 10); lean_inc(x_429); -x_430 = lean_ctor_get(x_420, 4); -lean_inc(x_430); -x_431 = lean_ctor_get(x_420, 5); -lean_inc(x_431); -x_432 = lean_ctor_get(x_420, 6); -lean_inc(x_432); -x_433 = lean_ctor_get(x_420, 7); -lean_inc_ref(x_433); -x_434 = lean_ctor_get(x_420, 8); +x_430 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 9); +x_431 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 10); +x_432 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 11); +x_433 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 12); +x_434 = lean_ctor_get(x_405, 12); lean_inc(x_434); -x_435 = lean_ctor_get_uint8(x_420, sizeof(void*)*15); -x_436 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 1); -x_437 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 2); -x_438 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 3); -x_439 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 4); -x_440 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 5); -x_441 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 6); -x_442 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 7); -x_443 = lean_ctor_get(x_420, 9); -lean_inc(x_443); -x_444 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 8); -x_445 = lean_ctor_get(x_420, 10); -lean_inc(x_445); -x_446 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 9); -x_447 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 10); -x_448 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 11); -x_449 = lean_ctor_get_uint8(x_420, sizeof(void*)*15 + 12); -x_450 = lean_ctor_get(x_420, 12); +x_435 = lean_ctor_get_uint8(x_405, sizeof(void*)*17 + 13); +x_436 = lean_ctor_get(x_405, 13); +lean_inc(x_436); +x_437 = lean_ctor_get(x_405, 14); +lean_inc(x_437); +x_438 = lean_ctor_get(x_405, 15); +lean_inc(x_438); +x_439 = lean_ctor_get(x_405, 16); +lean_inc(x_439); +if (lean_is_exclusive(x_405)) { + lean_ctor_release(x_405, 0); + lean_ctor_release(x_405, 1); + lean_ctor_release(x_405, 2); + lean_ctor_release(x_405, 3); + lean_ctor_release(x_405, 4); + lean_ctor_release(x_405, 5); + lean_ctor_release(x_405, 6); + lean_ctor_release(x_405, 7); + lean_ctor_release(x_405, 8); + lean_ctor_release(x_405, 9); + lean_ctor_release(x_405, 10); + lean_ctor_release(x_405, 11); + lean_ctor_release(x_405, 12); + lean_ctor_release(x_405, 13); + lean_ctor_release(x_405, 14); + lean_ctor_release(x_405, 15); + lean_ctor_release(x_405, 16); + x_440 = x_405; +} else { + lean_dec_ref(x_405); + x_440 = lean_box(0); +} +x_441 = lean_box(0); +x_442 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_442, 0, x_407); +if (lean_is_scalar(x_440)) { + x_443 = lean_alloc_ctor(0, 17, 14); +} else { + x_443 = x_440; +} +lean_ctor_set(x_443, 0, x_410); +lean_ctor_set(x_443, 1, x_411); +lean_ctor_set(x_443, 2, x_412); +lean_ctor_set(x_443, 3, x_413); +lean_ctor_set(x_443, 4, x_414); +lean_ctor_set(x_443, 5, x_415); +lean_ctor_set(x_443, 6, x_416); +lean_ctor_set(x_443, 7, x_417); +lean_ctor_set(x_443, 8, x_418); +lean_ctor_set(x_443, 9, x_427); +lean_ctor_set(x_443, 10, x_429); +lean_ctor_set(x_443, 11, x_442); +lean_ctor_set(x_443, 12, x_434); +lean_ctor_set(x_443, 13, x_436); +lean_ctor_set(x_443, 14, x_437); +lean_ctor_set(x_443, 15, x_438); +lean_ctor_set(x_443, 16, x_439); +lean_ctor_set_uint8(x_443, sizeof(void*)*17, x_419); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 1, x_420); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 2, x_421); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 3, x_422); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 4, x_423); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 5, x_424); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 6, x_425); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 7, x_426); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 8, x_428); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 9, x_430); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 10, x_431); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 11, x_432); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 12, x_433); +lean_ctor_set_uint8(x_443, sizeof(void*)*17 + 13, x_435); +if (lean_is_scalar(x_409)) { + x_444 = lean_alloc_ctor(0, 2, 0); +} else { + x_444 = x_409; +} +lean_ctor_set(x_444, 0, x_441); +lean_ctor_set(x_444, 1, x_408); +lean_ctor_set(x_321, 1, x_443); +lean_ctor_set(x_321, 0, x_444); +x_445 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_445, 0, x_309); +lean_ctor_set(x_445, 1, x_406); +return x_445; +} +} +else +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; uint8_t x_463; uint8_t x_464; uint8_t x_465; uint8_t x_466; uint8_t x_467; uint8_t x_468; uint8_t x_469; lean_object* x_470; uint8_t x_471; lean_object* x_472; uint8_t x_473; uint8_t x_474; uint8_t x_475; uint8_t x_476; lean_object* x_477; uint8_t x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_446 = lean_ctor_get(x_321, 0); +x_447 = lean_ctor_get(x_321, 1); +lean_inc(x_447); +lean_inc(x_446); +lean_dec(x_321); +x_448 = lean_ctor_get(x_308, 1); +lean_inc(x_448); +if (lean_is_exclusive(x_308)) { + lean_ctor_release(x_308, 0); + lean_ctor_release(x_308, 1); + x_449 = x_308; +} else { + lean_dec_ref(x_308); + x_449 = lean_box(0); +} +x_450 = lean_ctor_get(x_446, 0); lean_inc(x_450); -x_451 = lean_ctor_get(x_420, 13); +x_451 = lean_ctor_get(x_446, 1); lean_inc(x_451); -x_452 = lean_ctor_get(x_420, 14); -lean_inc(x_452); -if (lean_is_exclusive(x_420)) { - lean_ctor_release(x_420, 0); - lean_ctor_release(x_420, 1); - lean_ctor_release(x_420, 2); - lean_ctor_release(x_420, 3); - lean_ctor_release(x_420, 4); - lean_ctor_release(x_420, 5); - lean_ctor_release(x_420, 6); - lean_ctor_release(x_420, 7); - lean_ctor_release(x_420, 8); - lean_ctor_release(x_420, 9); - lean_ctor_release(x_420, 10); - lean_ctor_release(x_420, 11); - lean_ctor_release(x_420, 12); - lean_ctor_release(x_420, 13); - lean_ctor_release(x_420, 14); - x_453 = x_420; +if (lean_is_exclusive(x_446)) { + lean_ctor_release(x_446, 0); + lean_ctor_release(x_446, 1); + x_452 = x_446; } else { - lean_dec_ref(x_420); - x_453 = lean_box(0); + lean_dec_ref(x_446); + x_452 = lean_box(0); } -x_454 = lean_box(0); -x_455 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_455, 0, x_423); -if (lean_is_scalar(x_453)) { - x_456 = lean_alloc_ctor(0, 15, 13); -} else { - x_456 = x_453; -} -lean_ctor_set(x_456, 0, x_426); -lean_ctor_set(x_456, 1, x_427); -lean_ctor_set(x_456, 2, x_428); -lean_ctor_set(x_456, 3, x_429); -lean_ctor_set(x_456, 4, x_430); -lean_ctor_set(x_456, 5, x_431); -lean_ctor_set(x_456, 6, x_432); -lean_ctor_set(x_456, 7, x_433); -lean_ctor_set(x_456, 8, x_434); -lean_ctor_set(x_456, 9, x_443); -lean_ctor_set(x_456, 10, x_445); -lean_ctor_set(x_456, 11, x_455); -lean_ctor_set(x_456, 12, x_450); -lean_ctor_set(x_456, 13, x_451); -lean_ctor_set(x_456, 14, x_452); -lean_ctor_set_uint8(x_456, sizeof(void*)*15, x_435); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 1, x_436); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 2, x_437); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 3, x_438); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 4, x_439); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 5, x_440); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 6, x_441); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 7, x_442); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 8, x_444); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 9, x_446); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 10, x_447); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 11, x_448); -lean_ctor_set_uint8(x_456, sizeof(void*)*15 + 12, x_449); -if (lean_is_scalar(x_425)) { - x_457 = lean_alloc_ctor(0, 2, 0); -} else { - x_457 = x_425; -} -lean_ctor_set(x_457, 0, x_454); -lean_ctor_set(x_457, 1, x_424); -x_458 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_458, 0, x_457); -lean_ctor_set(x_458, 1, x_456); -lean_ctor_set(x_291, 0, x_458); -if (lean_is_scalar(x_422)) { - x_459 = lean_alloc_ctor(0, 2, 0); -} else { - x_459 = x_422; -} -lean_ctor_set(x_459, 0, x_291); -lean_ctor_set(x_459, 1, x_421); -return x_459; -} -} -else -{ -lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; uint8_t x_479; uint8_t x_480; uint8_t x_481; uint8_t x_482; uint8_t x_483; uint8_t x_484; uint8_t x_485; lean_object* x_486; uint8_t x_487; lean_object* x_488; uint8_t x_489; uint8_t x_490; uint8_t x_491; uint8_t x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; -x_460 = lean_ctor_get(x_291, 0); -lean_inc(x_460); -lean_dec(x_291); -x_461 = lean_ctor_get(x_460, 0); +x_453 = lean_ctor_get(x_447, 0); +lean_inc(x_453); +x_454 = lean_ctor_get(x_447, 1); +lean_inc_ref(x_454); +x_455 = lean_ctor_get(x_447, 2); +lean_inc_ref(x_455); +x_456 = lean_ctor_get(x_447, 3); +lean_inc(x_456); +x_457 = lean_ctor_get(x_447, 4); +lean_inc(x_457); +x_458 = lean_ctor_get(x_447, 5); +lean_inc(x_458); +x_459 = lean_ctor_get(x_447, 6); +lean_inc(x_459); +x_460 = lean_ctor_get(x_447, 7); +lean_inc_ref(x_460); +x_461 = lean_ctor_get(x_447, 8); lean_inc(x_461); -x_462 = lean_ctor_get(x_460, 1); -lean_inc(x_462); -if (lean_is_exclusive(x_460)) { - lean_ctor_release(x_460, 0); - lean_ctor_release(x_460, 1); - x_463 = x_460; -} else { - lean_dec_ref(x_460); - x_463 = lean_box(0); -} -x_464 = lean_ctor_get(x_290, 1); -lean_inc(x_464); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - lean_ctor_release(x_290, 1); - x_465 = x_290; -} else { - lean_dec_ref(x_290); - x_465 = lean_box(0); -} -x_466 = lean_ctor_get(x_461, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_461, 1); -lean_inc(x_467); -if (lean_is_exclusive(x_461)) { - lean_ctor_release(x_461, 0); - lean_ctor_release(x_461, 1); - x_468 = x_461; -} else { - lean_dec_ref(x_461); - x_468 = lean_box(0); -} -x_469 = lean_ctor_get(x_462, 0); -lean_inc(x_469); -x_470 = lean_ctor_get(x_462, 1); -lean_inc_ref(x_470); -x_471 = lean_ctor_get(x_462, 2); -lean_inc_ref(x_471); -x_472 = lean_ctor_get(x_462, 3); +x_462 = lean_ctor_get_uint8(x_447, sizeof(void*)*17); +x_463 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 1); +x_464 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 2); +x_465 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 3); +x_466 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 4); +x_467 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 5); +x_468 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 6); +x_469 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 7); +x_470 = lean_ctor_get(x_447, 9); +lean_inc(x_470); +x_471 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 8); +x_472 = lean_ctor_get(x_447, 10); lean_inc(x_472); -x_473 = lean_ctor_get(x_462, 4); -lean_inc(x_473); -x_474 = lean_ctor_get(x_462, 5); -lean_inc(x_474); -x_475 = lean_ctor_get(x_462, 6); -lean_inc(x_475); -x_476 = lean_ctor_get(x_462, 7); -lean_inc_ref(x_476); -x_477 = lean_ctor_get(x_462, 8); +x_473 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 9); +x_474 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 10); +x_475 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 11); +x_476 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 12); +x_477 = lean_ctor_get(x_447, 12); lean_inc(x_477); -x_478 = lean_ctor_get_uint8(x_462, sizeof(void*)*15); -x_479 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 1); -x_480 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 2); -x_481 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 3); -x_482 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 4); -x_483 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 5); -x_484 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 6); -x_485 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 7); -x_486 = lean_ctor_get(x_462, 9); -lean_inc(x_486); -x_487 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 8); -x_488 = lean_ctor_get(x_462, 10); -lean_inc(x_488); -x_489 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 9); -x_490 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 10); -x_491 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 11); -x_492 = lean_ctor_get_uint8(x_462, sizeof(void*)*15 + 12); -x_493 = lean_ctor_get(x_462, 12); -lean_inc(x_493); -x_494 = lean_ctor_get(x_462, 13); +x_478 = lean_ctor_get_uint8(x_447, sizeof(void*)*17 + 13); +x_479 = lean_ctor_get(x_447, 13); +lean_inc(x_479); +x_480 = lean_ctor_get(x_447, 14); +lean_inc(x_480); +x_481 = lean_ctor_get(x_447, 15); +lean_inc(x_481); +x_482 = lean_ctor_get(x_447, 16); +lean_inc(x_482); +if (lean_is_exclusive(x_447)) { + lean_ctor_release(x_447, 0); + lean_ctor_release(x_447, 1); + lean_ctor_release(x_447, 2); + lean_ctor_release(x_447, 3); + lean_ctor_release(x_447, 4); + lean_ctor_release(x_447, 5); + lean_ctor_release(x_447, 6); + lean_ctor_release(x_447, 7); + lean_ctor_release(x_447, 8); + lean_ctor_release(x_447, 9); + lean_ctor_release(x_447, 10); + lean_ctor_release(x_447, 11); + lean_ctor_release(x_447, 12); + lean_ctor_release(x_447, 13); + lean_ctor_release(x_447, 14); + lean_ctor_release(x_447, 15); + lean_ctor_release(x_447, 16); + x_483 = x_447; +} else { + lean_dec_ref(x_447); + x_483 = lean_box(0); +} +x_484 = lean_box(0); +x_485 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_485, 0, x_450); +if (lean_is_scalar(x_483)) { + x_486 = lean_alloc_ctor(0, 17, 14); +} else { + x_486 = x_483; +} +lean_ctor_set(x_486, 0, x_453); +lean_ctor_set(x_486, 1, x_454); +lean_ctor_set(x_486, 2, x_455); +lean_ctor_set(x_486, 3, x_456); +lean_ctor_set(x_486, 4, x_457); +lean_ctor_set(x_486, 5, x_458); +lean_ctor_set(x_486, 6, x_459); +lean_ctor_set(x_486, 7, x_460); +lean_ctor_set(x_486, 8, x_461); +lean_ctor_set(x_486, 9, x_470); +lean_ctor_set(x_486, 10, x_472); +lean_ctor_set(x_486, 11, x_485); +lean_ctor_set(x_486, 12, x_477); +lean_ctor_set(x_486, 13, x_479); +lean_ctor_set(x_486, 14, x_480); +lean_ctor_set(x_486, 15, x_481); +lean_ctor_set(x_486, 16, x_482); +lean_ctor_set_uint8(x_486, sizeof(void*)*17, x_462); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 1, x_463); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 2, x_464); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 3, x_465); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 4, x_466); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 5, x_467); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 6, x_468); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 7, x_469); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 8, x_471); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 9, x_473); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 10, x_474); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 11, x_475); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 12, x_476); +lean_ctor_set_uint8(x_486, sizeof(void*)*17 + 13, x_478); +if (lean_is_scalar(x_452)) { + x_487 = lean_alloc_ctor(0, 2, 0); +} else { + x_487 = x_452; +} +lean_ctor_set(x_487, 0, x_484); +lean_ctor_set(x_487, 1, x_451); +x_488 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_488, 0, x_487); +lean_ctor_set(x_488, 1, x_486); +lean_ctor_set(x_309, 0, x_488); +if (lean_is_scalar(x_449)) { + x_489 = lean_alloc_ctor(0, 2, 0); +} else { + x_489 = x_449; +} +lean_ctor_set(x_489, 0, x_309); +lean_ctor_set(x_489, 1, x_448); +return x_489; +} +} +else +{ +lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; uint8_t x_508; uint8_t x_509; uint8_t x_510; uint8_t x_511; uint8_t x_512; uint8_t x_513; uint8_t x_514; uint8_t x_515; lean_object* x_516; uint8_t x_517; lean_object* x_518; uint8_t x_519; uint8_t x_520; uint8_t x_521; uint8_t x_522; lean_object* x_523; uint8_t x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_490 = lean_ctor_get(x_309, 0); +lean_inc(x_490); +lean_dec(x_309); +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +x_492 = lean_ctor_get(x_490, 1); +lean_inc(x_492); +if (lean_is_exclusive(x_490)) { + lean_ctor_release(x_490, 0); + lean_ctor_release(x_490, 1); + x_493 = x_490; +} else { + lean_dec_ref(x_490); + x_493 = lean_box(0); +} +x_494 = lean_ctor_get(x_308, 1); lean_inc(x_494); -x_495 = lean_ctor_get(x_462, 14); -lean_inc(x_495); -if (lean_is_exclusive(x_462)) { - lean_ctor_release(x_462, 0); - lean_ctor_release(x_462, 1); - lean_ctor_release(x_462, 2); - lean_ctor_release(x_462, 3); - lean_ctor_release(x_462, 4); - lean_ctor_release(x_462, 5); - lean_ctor_release(x_462, 6); - lean_ctor_release(x_462, 7); - lean_ctor_release(x_462, 8); - lean_ctor_release(x_462, 9); - lean_ctor_release(x_462, 10); - lean_ctor_release(x_462, 11); - lean_ctor_release(x_462, 12); - lean_ctor_release(x_462, 13); - lean_ctor_release(x_462, 14); - x_496 = x_462; +if (lean_is_exclusive(x_308)) { + lean_ctor_release(x_308, 0); + lean_ctor_release(x_308, 1); + x_495 = x_308; } else { - lean_dec_ref(x_462); - x_496 = lean_box(0); + lean_dec_ref(x_308); + x_495 = lean_box(0); } -x_497 = lean_box(0); -x_498 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_498, 0, x_466); -if (lean_is_scalar(x_496)) { - x_499 = lean_alloc_ctor(0, 15, 13); +x_496 = lean_ctor_get(x_491, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_491, 1); +lean_inc(x_497); +if (lean_is_exclusive(x_491)) { + lean_ctor_release(x_491, 0); + lean_ctor_release(x_491, 1); + x_498 = x_491; } else { - x_499 = x_496; + lean_dec_ref(x_491); + x_498 = lean_box(0); } -lean_ctor_set(x_499, 0, x_469); -lean_ctor_set(x_499, 1, x_470); -lean_ctor_set(x_499, 2, x_471); -lean_ctor_set(x_499, 3, x_472); -lean_ctor_set(x_499, 4, x_473); -lean_ctor_set(x_499, 5, x_474); -lean_ctor_set(x_499, 6, x_475); -lean_ctor_set(x_499, 7, x_476); -lean_ctor_set(x_499, 8, x_477); -lean_ctor_set(x_499, 9, x_486); -lean_ctor_set(x_499, 10, x_488); -lean_ctor_set(x_499, 11, x_498); -lean_ctor_set(x_499, 12, x_493); -lean_ctor_set(x_499, 13, x_494); -lean_ctor_set(x_499, 14, x_495); -lean_ctor_set_uint8(x_499, sizeof(void*)*15, x_478); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 1, x_479); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 2, x_480); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 3, x_481); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 4, x_482); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 5, x_483); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 6, x_484); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 7, x_485); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 8, x_487); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 9, x_489); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 10, x_490); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 11, x_491); -lean_ctor_set_uint8(x_499, sizeof(void*)*15 + 12, x_492); -if (lean_is_scalar(x_468)) { - x_500 = lean_alloc_ctor(0, 2, 0); -} else { - x_500 = x_468; -} -lean_ctor_set(x_500, 0, x_497); -lean_ctor_set(x_500, 1, x_467); -if (lean_is_scalar(x_463)) { - x_501 = lean_alloc_ctor(0, 2, 0); -} else { - x_501 = x_463; -} -lean_ctor_set(x_501, 0, x_500); -lean_ctor_set(x_501, 1, x_499); -x_502 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_502, 0, x_501); -if (lean_is_scalar(x_465)) { - x_503 = lean_alloc_ctor(0, 2, 0); -} else { - x_503 = x_465; -} -lean_ctor_set(x_503, 0, x_502); -lean_ctor_set(x_503, 1, x_464); -return x_503; -} -} -} -} -else -{ -lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; -x_504 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__6; -x_505 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; -x_506 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_504, x_505, x_2, x_3, x_4); -x_507 = lean_ctor_get(x_506, 0); +x_499 = lean_ctor_get(x_492, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_492, 1); +lean_inc_ref(x_500); +x_501 = lean_ctor_get(x_492, 2); +lean_inc_ref(x_501); +x_502 = lean_ctor_get(x_492, 3); +lean_inc(x_502); +x_503 = lean_ctor_get(x_492, 4); +lean_inc(x_503); +x_504 = lean_ctor_get(x_492, 5); +lean_inc(x_504); +x_505 = lean_ctor_get(x_492, 6); +lean_inc(x_505); +x_506 = lean_ctor_get(x_492, 7); +lean_inc_ref(x_506); +x_507 = lean_ctor_get(x_492, 8); lean_inc(x_507); -if (lean_obj_tag(x_507) == 0) -{ -uint8_t x_508; -x_508 = !lean_is_exclusive(x_506); -if (x_508 == 0) -{ -lean_object* x_509; uint8_t x_510; -x_509 = lean_ctor_get(x_506, 0); -lean_dec(x_509); -x_510 = !lean_is_exclusive(x_507); -if (x_510 == 0) -{ -return x_506; -} -else -{ -lean_object* x_511; lean_object* x_512; -x_511 = lean_ctor_get(x_507, 0); -lean_inc(x_511); -lean_dec(x_507); -x_512 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_512, 0, x_511); -lean_ctor_set(x_506, 0, x_512); -return x_506; -} -} -else -{ -lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -x_513 = lean_ctor_get(x_506, 1); -lean_inc(x_513); -lean_dec(x_506); -x_514 = lean_ctor_get(x_507, 0); -lean_inc(x_514); -if (lean_is_exclusive(x_507)) { - lean_ctor_release(x_507, 0); - x_515 = x_507; +x_508 = lean_ctor_get_uint8(x_492, sizeof(void*)*17); +x_509 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 1); +x_510 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 2); +x_511 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 3); +x_512 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 4); +x_513 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 5); +x_514 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 6); +x_515 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 7); +x_516 = lean_ctor_get(x_492, 9); +lean_inc(x_516); +x_517 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 8); +x_518 = lean_ctor_get(x_492, 10); +lean_inc(x_518); +x_519 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 9); +x_520 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 10); +x_521 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 11); +x_522 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 12); +x_523 = lean_ctor_get(x_492, 12); +lean_inc(x_523); +x_524 = lean_ctor_get_uint8(x_492, sizeof(void*)*17 + 13); +x_525 = lean_ctor_get(x_492, 13); +lean_inc(x_525); +x_526 = lean_ctor_get(x_492, 14); +lean_inc(x_526); +x_527 = lean_ctor_get(x_492, 15); +lean_inc(x_527); +x_528 = lean_ctor_get(x_492, 16); +lean_inc(x_528); +if (lean_is_exclusive(x_492)) { + lean_ctor_release(x_492, 0); + lean_ctor_release(x_492, 1); + lean_ctor_release(x_492, 2); + lean_ctor_release(x_492, 3); + lean_ctor_release(x_492, 4); + lean_ctor_release(x_492, 5); + lean_ctor_release(x_492, 6); + lean_ctor_release(x_492, 7); + lean_ctor_release(x_492, 8); + lean_ctor_release(x_492, 9); + lean_ctor_release(x_492, 10); + lean_ctor_release(x_492, 11); + lean_ctor_release(x_492, 12); + lean_ctor_release(x_492, 13); + lean_ctor_release(x_492, 14); + lean_ctor_release(x_492, 15); + lean_ctor_release(x_492, 16); + x_529 = x_492; } else { - lean_dec_ref(x_507); - x_515 = lean_box(0); + lean_dec_ref(x_492); + x_529 = lean_box(0); } -if (lean_is_scalar(x_515)) { - x_516 = lean_alloc_ctor(0, 1, 0); +x_530 = lean_box(0); +x_531 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_531, 0, x_496); +if (lean_is_scalar(x_529)) { + x_532 = lean_alloc_ctor(0, 17, 14); } else { - x_516 = x_515; + x_532 = x_529; +} +lean_ctor_set(x_532, 0, x_499); +lean_ctor_set(x_532, 1, x_500); +lean_ctor_set(x_532, 2, x_501); +lean_ctor_set(x_532, 3, x_502); +lean_ctor_set(x_532, 4, x_503); +lean_ctor_set(x_532, 5, x_504); +lean_ctor_set(x_532, 6, x_505); +lean_ctor_set(x_532, 7, x_506); +lean_ctor_set(x_532, 8, x_507); +lean_ctor_set(x_532, 9, x_516); +lean_ctor_set(x_532, 10, x_518); +lean_ctor_set(x_532, 11, x_531); +lean_ctor_set(x_532, 12, x_523); +lean_ctor_set(x_532, 13, x_525); +lean_ctor_set(x_532, 14, x_526); +lean_ctor_set(x_532, 15, x_527); +lean_ctor_set(x_532, 16, x_528); +lean_ctor_set_uint8(x_532, sizeof(void*)*17, x_508); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 1, x_509); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 2, x_510); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 3, x_511); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 4, x_512); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 5, x_513); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 6, x_514); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 7, x_515); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 8, x_517); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 9, x_519); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 10, x_520); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 11, x_521); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 12, x_522); +lean_ctor_set_uint8(x_532, sizeof(void*)*17 + 13, x_524); +if (lean_is_scalar(x_498)) { + x_533 = lean_alloc_ctor(0, 2, 0); +} else { + x_533 = x_498; +} +lean_ctor_set(x_533, 0, x_530); +lean_ctor_set(x_533, 1, x_497); +if (lean_is_scalar(x_493)) { + x_534 = lean_alloc_ctor(0, 2, 0); +} else { + x_534 = x_493; +} +lean_ctor_set(x_534, 0, x_533); +lean_ctor_set(x_534, 1, x_532); +x_535 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_535, 0, x_534); +if (lean_is_scalar(x_495)) { + x_536 = lean_alloc_ctor(0, 2, 0); +} else { + x_536 = x_495; +} +lean_ctor_set(x_536, 0, x_535); +lean_ctor_set(x_536, 1, x_494); +return x_536; +} } -lean_ctor_set(x_516, 0, x_514); -x_517 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_517, 0, x_516); -lean_ctor_set(x_517, 1, x_513); -return x_517; } } else { -uint8_t x_518; -x_518 = !lean_is_exclusive(x_507); -if (x_518 == 0) +lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; +x_537 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__6; +x_538 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; +x_539 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_537, x_538, x_2, x_3, x_4); +x_540 = lean_ctor_get(x_539, 0); +lean_inc(x_540); +if (lean_obj_tag(x_540) == 0) { -lean_object* x_519; uint8_t x_520; -x_519 = lean_ctor_get(x_507, 0); -x_520 = !lean_is_exclusive(x_519); -if (x_520 == 0) +uint8_t x_541; +x_541 = !lean_is_exclusive(x_539); +if (x_541 == 0) { -uint8_t x_521; -x_521 = !lean_is_exclusive(x_506); -if (x_521 == 0) +lean_object* x_542; uint8_t x_543; +x_542 = lean_ctor_get(x_539, 0); +lean_dec(x_542); +x_543 = !lean_is_exclusive(x_540); +if (x_543 == 0) { -lean_object* x_522; lean_object* x_523; lean_object* x_524; uint8_t x_525; -x_522 = lean_ctor_get(x_519, 0); -x_523 = lean_ctor_get(x_519, 1); -x_524 = lean_ctor_get(x_506, 0); -lean_dec(x_524); -x_525 = !lean_is_exclusive(x_522); -if (x_525 == 0) -{ -uint8_t x_526; -x_526 = !lean_is_exclusive(x_523); -if (x_526 == 0) -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; -x_527 = lean_ctor_get(x_522, 0); -x_528 = lean_ctor_get(x_523, 2); -lean_dec(x_528); -x_529 = lean_box(0); -lean_ctor_set(x_523, 2, x_527); -lean_ctor_set(x_522, 0, x_529); -return x_506; +return x_539; } else { -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; uint8_t x_539; uint8_t x_540; uint8_t x_541; uint8_t x_542; uint8_t x_543; uint8_t x_544; uint8_t x_545; uint8_t x_546; lean_object* x_547; uint8_t x_548; lean_object* x_549; uint8_t x_550; uint8_t x_551; uint8_t x_552; lean_object* x_553; uint8_t x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_530 = lean_ctor_get(x_522, 0); -x_531 = lean_ctor_get(x_523, 0); -x_532 = lean_ctor_get(x_523, 1); -x_533 = lean_ctor_get(x_523, 3); -x_534 = lean_ctor_get(x_523, 4); -x_535 = lean_ctor_get(x_523, 5); -x_536 = lean_ctor_get(x_523, 6); -x_537 = lean_ctor_get(x_523, 7); -x_538 = lean_ctor_get(x_523, 8); -x_539 = lean_ctor_get_uint8(x_523, sizeof(void*)*15); -x_540 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 1); -x_541 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 2); -x_542 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 3); -x_543 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 4); -x_544 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 5); -x_545 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 6); -x_546 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 7); -x_547 = lean_ctor_get(x_523, 9); -x_548 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 8); -x_549 = lean_ctor_get(x_523, 10); -x_550 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 9); -x_551 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 10); -x_552 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 11); -x_553 = lean_ctor_get(x_523, 11); -x_554 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 12); -x_555 = lean_ctor_get(x_523, 12); -x_556 = lean_ctor_get(x_523, 13); -x_557 = lean_ctor_get(x_523, 14); -lean_inc(x_557); -lean_inc(x_556); -lean_inc(x_555); -lean_inc(x_553); -lean_inc(x_549); +lean_object* x_544; lean_object* x_545; +x_544 = lean_ctor_get(x_540, 0); +lean_inc(x_544); +lean_dec(x_540); +x_545 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_545, 0, x_544); +lean_ctor_set(x_539, 0, x_545); +return x_539; +} +} +else +{ +lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; +x_546 = lean_ctor_get(x_539, 1); +lean_inc(x_546); +lean_dec(x_539); +x_547 = lean_ctor_get(x_540, 0); lean_inc(x_547); -lean_inc(x_538); -lean_inc(x_537); -lean_inc(x_536); -lean_inc(x_535); -lean_inc(x_534); -lean_inc(x_533); -lean_inc(x_532); -lean_inc(x_531); -lean_dec(x_523); -x_558 = lean_box(0); -x_559 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_559, 0, x_531); -lean_ctor_set(x_559, 1, x_532); -lean_ctor_set(x_559, 2, x_530); -lean_ctor_set(x_559, 3, x_533); -lean_ctor_set(x_559, 4, x_534); -lean_ctor_set(x_559, 5, x_535); -lean_ctor_set(x_559, 6, x_536); -lean_ctor_set(x_559, 7, x_537); -lean_ctor_set(x_559, 8, x_538); -lean_ctor_set(x_559, 9, x_547); -lean_ctor_set(x_559, 10, x_549); -lean_ctor_set(x_559, 11, x_553); -lean_ctor_set(x_559, 12, x_555); -lean_ctor_set(x_559, 13, x_556); -lean_ctor_set(x_559, 14, x_557); -lean_ctor_set_uint8(x_559, sizeof(void*)*15, x_539); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 1, x_540); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 2, x_541); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 3, x_542); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 4, x_543); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 5, x_544); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 6, x_545); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 7, x_546); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 8, x_548); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 9, x_550); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 10, x_551); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 11, x_552); -lean_ctor_set_uint8(x_559, sizeof(void*)*15 + 12, x_554); -lean_ctor_set(x_522, 0, x_558); -lean_ctor_set(x_519, 1, x_559); -return x_506; +if (lean_is_exclusive(x_540)) { + lean_ctor_release(x_540, 0); + x_548 = x_540; +} else { + lean_dec_ref(x_540); + x_548 = lean_box(0); +} +if (lean_is_scalar(x_548)) { + x_549 = lean_alloc_ctor(0, 1, 0); +} else { + x_549 = x_548; +} +lean_ctor_set(x_549, 0, x_547); +x_550 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_550, 0, x_549); +lean_ctor_set(x_550, 1, x_546); +return x_550; } } else { -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; uint8_t x_570; uint8_t x_571; uint8_t x_572; uint8_t x_573; uint8_t x_574; uint8_t x_575; uint8_t x_576; uint8_t x_577; lean_object* x_578; uint8_t x_579; lean_object* x_580; uint8_t x_581; uint8_t x_582; uint8_t x_583; lean_object* x_584; uint8_t x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; -x_560 = lean_ctor_get(x_522, 0); -x_561 = lean_ctor_get(x_522, 1); -lean_inc(x_561); -lean_inc(x_560); -lean_dec(x_522); -x_562 = lean_ctor_get(x_523, 0); -lean_inc(x_562); -x_563 = lean_ctor_get(x_523, 1); -lean_inc_ref(x_563); -x_564 = lean_ctor_get(x_523, 3); -lean_inc(x_564); -x_565 = lean_ctor_get(x_523, 4); -lean_inc(x_565); -x_566 = lean_ctor_get(x_523, 5); -lean_inc(x_566); -x_567 = lean_ctor_get(x_523, 6); -lean_inc(x_567); -x_568 = lean_ctor_get(x_523, 7); -lean_inc_ref(x_568); -x_569 = lean_ctor_get(x_523, 8); -lean_inc(x_569); -x_570 = lean_ctor_get_uint8(x_523, sizeof(void*)*15); -x_571 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 1); -x_572 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 2); -x_573 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 3); -x_574 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 4); -x_575 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 5); -x_576 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 6); -x_577 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 7); -x_578 = lean_ctor_get(x_523, 9); -lean_inc(x_578); -x_579 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 8); -x_580 = lean_ctor_get(x_523, 10); -lean_inc(x_580); -x_581 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 9); -x_582 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 10); -x_583 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 11); -x_584 = lean_ctor_get(x_523, 11); -lean_inc(x_584); -x_585 = lean_ctor_get_uint8(x_523, sizeof(void*)*15 + 12); -x_586 = lean_ctor_get(x_523, 12); -lean_inc(x_586); -x_587 = lean_ctor_get(x_523, 13); -lean_inc(x_587); -x_588 = lean_ctor_get(x_523, 14); +uint8_t x_551; +x_551 = !lean_is_exclusive(x_540); +if (x_551 == 0) +{ +lean_object* x_552; uint8_t x_553; +x_552 = lean_ctor_get(x_540, 0); +x_553 = !lean_is_exclusive(x_552); +if (x_553 == 0) +{ +uint8_t x_554; +x_554 = !lean_is_exclusive(x_539); +if (x_554 == 0) +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; uint8_t x_558; +x_555 = lean_ctor_get(x_552, 0); +x_556 = lean_ctor_get(x_552, 1); +x_557 = lean_ctor_get(x_539, 0); +lean_dec(x_557); +x_558 = !lean_is_exclusive(x_555); +if (x_558 == 0) +{ +uint8_t x_559; +x_559 = !lean_is_exclusive(x_556); +if (x_559 == 0) +{ +lean_object* x_560; lean_object* x_561; lean_object* x_562; +x_560 = lean_ctor_get(x_555, 0); +x_561 = lean_ctor_get(x_556, 2); +lean_dec(x_561); +x_562 = lean_box(0); +lean_ctor_set(x_556, 2, x_560); +lean_ctor_set(x_555, 0, x_562); +return x_539; +} +else +{ +lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; uint8_t x_572; uint8_t x_573; uint8_t x_574; uint8_t x_575; uint8_t x_576; uint8_t x_577; uint8_t x_578; uint8_t x_579; lean_object* x_580; uint8_t x_581; lean_object* x_582; uint8_t x_583; uint8_t x_584; uint8_t x_585; lean_object* x_586; uint8_t x_587; lean_object* x_588; uint8_t x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +x_563 = lean_ctor_get(x_555, 0); +x_564 = lean_ctor_get(x_556, 0); +x_565 = lean_ctor_get(x_556, 1); +x_566 = lean_ctor_get(x_556, 3); +x_567 = lean_ctor_get(x_556, 4); +x_568 = lean_ctor_get(x_556, 5); +x_569 = lean_ctor_get(x_556, 6); +x_570 = lean_ctor_get(x_556, 7); +x_571 = lean_ctor_get(x_556, 8); +x_572 = lean_ctor_get_uint8(x_556, sizeof(void*)*17); +x_573 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 1); +x_574 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 2); +x_575 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 3); +x_576 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 4); +x_577 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 5); +x_578 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 6); +x_579 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 7); +x_580 = lean_ctor_get(x_556, 9); +x_581 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 8); +x_582 = lean_ctor_get(x_556, 10); +x_583 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 9); +x_584 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 10); +x_585 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 11); +x_586 = lean_ctor_get(x_556, 11); +x_587 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 12); +x_588 = lean_ctor_get(x_556, 12); +x_589 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 13); +x_590 = lean_ctor_get(x_556, 13); +x_591 = lean_ctor_get(x_556, 14); +x_592 = lean_ctor_get(x_556, 15); +x_593 = lean_ctor_get(x_556, 16); +lean_inc(x_593); +lean_inc(x_592); +lean_inc(x_591); +lean_inc(x_590); lean_inc(x_588); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - lean_ctor_release(x_523, 2); - lean_ctor_release(x_523, 3); - lean_ctor_release(x_523, 4); - lean_ctor_release(x_523, 5); - lean_ctor_release(x_523, 6); - lean_ctor_release(x_523, 7); - lean_ctor_release(x_523, 8); - lean_ctor_release(x_523, 9); - lean_ctor_release(x_523, 10); - lean_ctor_release(x_523, 11); - lean_ctor_release(x_523, 12); - lean_ctor_release(x_523, 13); - lean_ctor_release(x_523, 14); - x_589 = x_523; -} else { - lean_dec_ref(x_523); - x_589 = lean_box(0); -} -x_590 = lean_box(0); -if (lean_is_scalar(x_589)) { - x_591 = lean_alloc_ctor(0, 15, 13); -} else { - x_591 = x_589; -} -lean_ctor_set(x_591, 0, x_562); -lean_ctor_set(x_591, 1, x_563); -lean_ctor_set(x_591, 2, x_560); -lean_ctor_set(x_591, 3, x_564); -lean_ctor_set(x_591, 4, x_565); -lean_ctor_set(x_591, 5, x_566); -lean_ctor_set(x_591, 6, x_567); -lean_ctor_set(x_591, 7, x_568); -lean_ctor_set(x_591, 8, x_569); -lean_ctor_set(x_591, 9, x_578); -lean_ctor_set(x_591, 10, x_580); -lean_ctor_set(x_591, 11, x_584); -lean_ctor_set(x_591, 12, x_586); -lean_ctor_set(x_591, 13, x_587); -lean_ctor_set(x_591, 14, x_588); -lean_ctor_set_uint8(x_591, sizeof(void*)*15, x_570); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 1, x_571); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 2, x_572); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 3, x_573); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 4, x_574); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 5, x_575); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 6, x_576); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 7, x_577); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 8, x_579); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 9, x_581); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 10, x_582); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 11, x_583); -lean_ctor_set_uint8(x_591, sizeof(void*)*15 + 12, x_585); -x_592 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_592, 0, x_590); -lean_ctor_set(x_592, 1, x_561); -lean_ctor_set(x_519, 1, x_591); -lean_ctor_set(x_519, 0, x_592); -return x_506; +lean_inc(x_586); +lean_inc(x_582); +lean_inc(x_580); +lean_inc(x_571); +lean_inc(x_570); +lean_inc(x_569); +lean_inc(x_568); +lean_inc(x_567); +lean_inc(x_566); +lean_inc(x_565); +lean_inc(x_564); +lean_dec(x_556); +x_594 = lean_box(0); +x_595 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_595, 0, x_564); +lean_ctor_set(x_595, 1, x_565); +lean_ctor_set(x_595, 2, x_563); +lean_ctor_set(x_595, 3, x_566); +lean_ctor_set(x_595, 4, x_567); +lean_ctor_set(x_595, 5, x_568); +lean_ctor_set(x_595, 6, x_569); +lean_ctor_set(x_595, 7, x_570); +lean_ctor_set(x_595, 8, x_571); +lean_ctor_set(x_595, 9, x_580); +lean_ctor_set(x_595, 10, x_582); +lean_ctor_set(x_595, 11, x_586); +lean_ctor_set(x_595, 12, x_588); +lean_ctor_set(x_595, 13, x_590); +lean_ctor_set(x_595, 14, x_591); +lean_ctor_set(x_595, 15, x_592); +lean_ctor_set(x_595, 16, x_593); +lean_ctor_set_uint8(x_595, sizeof(void*)*17, x_572); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 1, x_573); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 2, x_574); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 3, x_575); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 4, x_576); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 5, x_577); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 6, x_578); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 7, x_579); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 8, x_581); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 9, x_583); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 10, x_584); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 11, x_585); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 12, x_587); +lean_ctor_set_uint8(x_595, sizeof(void*)*17 + 13, x_589); +lean_ctor_set(x_555, 0, x_594); +lean_ctor_set(x_552, 1, x_595); +return x_539; } } else { -lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; uint8_t x_607; uint8_t x_608; uint8_t x_609; uint8_t x_610; uint8_t x_611; uint8_t x_612; uint8_t x_613; uint8_t x_614; lean_object* x_615; uint8_t x_616; lean_object* x_617; uint8_t x_618; uint8_t x_619; uint8_t x_620; lean_object* x_621; uint8_t x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; -x_593 = lean_ctor_get(x_519, 0); -x_594 = lean_ctor_get(x_519, 1); -x_595 = lean_ctor_get(x_506, 1); -lean_inc(x_595); -lean_dec(x_506); -x_596 = lean_ctor_get(x_593, 0); -lean_inc(x_596); -x_597 = lean_ctor_get(x_593, 1); +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; uint8_t x_606; uint8_t x_607; uint8_t x_608; uint8_t x_609; uint8_t x_610; uint8_t x_611; uint8_t x_612; uint8_t x_613; lean_object* x_614; uint8_t x_615; lean_object* x_616; uint8_t x_617; uint8_t x_618; uint8_t x_619; lean_object* x_620; uint8_t x_621; lean_object* x_622; uint8_t x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; +x_596 = lean_ctor_get(x_555, 0); +x_597 = lean_ctor_get(x_555, 1); lean_inc(x_597); -if (lean_is_exclusive(x_593)) { - lean_ctor_release(x_593, 0); - lean_ctor_release(x_593, 1); - x_598 = x_593; -} else { - lean_dec_ref(x_593); - x_598 = lean_box(0); -} -x_599 = lean_ctor_get(x_594, 0); -lean_inc(x_599); -x_600 = lean_ctor_get(x_594, 1); -lean_inc_ref(x_600); -x_601 = lean_ctor_get(x_594, 3); +lean_inc(x_596); +lean_dec(x_555); +x_598 = lean_ctor_get(x_556, 0); +lean_inc(x_598); +x_599 = lean_ctor_get(x_556, 1); +lean_inc_ref(x_599); +x_600 = lean_ctor_get(x_556, 3); +lean_inc(x_600); +x_601 = lean_ctor_get(x_556, 4); lean_inc(x_601); -x_602 = lean_ctor_get(x_594, 4); +x_602 = lean_ctor_get(x_556, 5); lean_inc(x_602); -x_603 = lean_ctor_get(x_594, 5); +x_603 = lean_ctor_get(x_556, 6); lean_inc(x_603); -x_604 = lean_ctor_get(x_594, 6); -lean_inc(x_604); -x_605 = lean_ctor_get(x_594, 7); -lean_inc_ref(x_605); -x_606 = lean_ctor_get(x_594, 8); -lean_inc(x_606); -x_607 = lean_ctor_get_uint8(x_594, sizeof(void*)*15); -x_608 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 1); -x_609 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 2); -x_610 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 3); -x_611 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 4); -x_612 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 5); -x_613 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 6); -x_614 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 7); -x_615 = lean_ctor_get(x_594, 9); -lean_inc(x_615); -x_616 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 8); -x_617 = lean_ctor_get(x_594, 10); -lean_inc(x_617); -x_618 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 9); -x_619 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 10); -x_620 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 11); -x_621 = lean_ctor_get(x_594, 11); -lean_inc(x_621); -x_622 = lean_ctor_get_uint8(x_594, sizeof(void*)*15 + 12); -x_623 = lean_ctor_get(x_594, 12); -lean_inc(x_623); -x_624 = lean_ctor_get(x_594, 13); +x_604 = lean_ctor_get(x_556, 7); +lean_inc_ref(x_604); +x_605 = lean_ctor_get(x_556, 8); +lean_inc(x_605); +x_606 = lean_ctor_get_uint8(x_556, sizeof(void*)*17); +x_607 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 1); +x_608 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 2); +x_609 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 3); +x_610 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 4); +x_611 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 5); +x_612 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 6); +x_613 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 7); +x_614 = lean_ctor_get(x_556, 9); +lean_inc(x_614); +x_615 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 8); +x_616 = lean_ctor_get(x_556, 10); +lean_inc(x_616); +x_617 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 9); +x_618 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 10); +x_619 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 11); +x_620 = lean_ctor_get(x_556, 11); +lean_inc(x_620); +x_621 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 12); +x_622 = lean_ctor_get(x_556, 12); +lean_inc(x_622); +x_623 = lean_ctor_get_uint8(x_556, sizeof(void*)*17 + 13); +x_624 = lean_ctor_get(x_556, 13); lean_inc(x_624); -x_625 = lean_ctor_get(x_594, 14); +x_625 = lean_ctor_get(x_556, 14); lean_inc(x_625); -if (lean_is_exclusive(x_594)) { - lean_ctor_release(x_594, 0); - lean_ctor_release(x_594, 1); - lean_ctor_release(x_594, 2); - lean_ctor_release(x_594, 3); - lean_ctor_release(x_594, 4); - lean_ctor_release(x_594, 5); - lean_ctor_release(x_594, 6); - lean_ctor_release(x_594, 7); - lean_ctor_release(x_594, 8); - lean_ctor_release(x_594, 9); - lean_ctor_release(x_594, 10); - lean_ctor_release(x_594, 11); - lean_ctor_release(x_594, 12); - lean_ctor_release(x_594, 13); - lean_ctor_release(x_594, 14); - x_626 = x_594; +x_626 = lean_ctor_get(x_556, 15); +lean_inc(x_626); +x_627 = lean_ctor_get(x_556, 16); +lean_inc(x_627); +if (lean_is_exclusive(x_556)) { + lean_ctor_release(x_556, 0); + lean_ctor_release(x_556, 1); + lean_ctor_release(x_556, 2); + lean_ctor_release(x_556, 3); + lean_ctor_release(x_556, 4); + lean_ctor_release(x_556, 5); + lean_ctor_release(x_556, 6); + lean_ctor_release(x_556, 7); + lean_ctor_release(x_556, 8); + lean_ctor_release(x_556, 9); + lean_ctor_release(x_556, 10); + lean_ctor_release(x_556, 11); + lean_ctor_release(x_556, 12); + lean_ctor_release(x_556, 13); + lean_ctor_release(x_556, 14); + lean_ctor_release(x_556, 15); + lean_ctor_release(x_556, 16); + x_628 = x_556; } else { - lean_dec_ref(x_594); - x_626 = lean_box(0); + lean_dec_ref(x_556); + x_628 = lean_box(0); } -x_627 = lean_box(0); -if (lean_is_scalar(x_626)) { - x_628 = lean_alloc_ctor(0, 15, 13); +x_629 = lean_box(0); +if (lean_is_scalar(x_628)) { + x_630 = lean_alloc_ctor(0, 17, 14); } else { - x_628 = x_626; + x_630 = x_628; } -lean_ctor_set(x_628, 0, x_599); -lean_ctor_set(x_628, 1, x_600); -lean_ctor_set(x_628, 2, x_596); -lean_ctor_set(x_628, 3, x_601); -lean_ctor_set(x_628, 4, x_602); -lean_ctor_set(x_628, 5, x_603); -lean_ctor_set(x_628, 6, x_604); -lean_ctor_set(x_628, 7, x_605); -lean_ctor_set(x_628, 8, x_606); -lean_ctor_set(x_628, 9, x_615); -lean_ctor_set(x_628, 10, x_617); -lean_ctor_set(x_628, 11, x_621); -lean_ctor_set(x_628, 12, x_623); -lean_ctor_set(x_628, 13, x_624); -lean_ctor_set(x_628, 14, x_625); -lean_ctor_set_uint8(x_628, sizeof(void*)*15, x_607); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 1, x_608); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 2, x_609); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 3, x_610); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 4, x_611); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 5, x_612); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 6, x_613); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 7, x_614); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 8, x_616); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 9, x_618); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 10, x_619); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 11, x_620); -lean_ctor_set_uint8(x_628, sizeof(void*)*15 + 12, x_622); -if (lean_is_scalar(x_598)) { - x_629 = lean_alloc_ctor(0, 2, 0); -} else { - x_629 = x_598; -} -lean_ctor_set(x_629, 0, x_627); -lean_ctor_set(x_629, 1, x_597); -lean_ctor_set(x_519, 1, x_628); -lean_ctor_set(x_519, 0, x_629); -x_630 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_630, 0, x_507); -lean_ctor_set(x_630, 1, x_595); -return x_630; +lean_ctor_set(x_630, 0, x_598); +lean_ctor_set(x_630, 1, x_599); +lean_ctor_set(x_630, 2, x_596); +lean_ctor_set(x_630, 3, x_600); +lean_ctor_set(x_630, 4, x_601); +lean_ctor_set(x_630, 5, x_602); +lean_ctor_set(x_630, 6, x_603); +lean_ctor_set(x_630, 7, x_604); +lean_ctor_set(x_630, 8, x_605); +lean_ctor_set(x_630, 9, x_614); +lean_ctor_set(x_630, 10, x_616); +lean_ctor_set(x_630, 11, x_620); +lean_ctor_set(x_630, 12, x_622); +lean_ctor_set(x_630, 13, x_624); +lean_ctor_set(x_630, 14, x_625); +lean_ctor_set(x_630, 15, x_626); +lean_ctor_set(x_630, 16, x_627); +lean_ctor_set_uint8(x_630, sizeof(void*)*17, x_606); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 1, x_607); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 2, x_608); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 3, x_609); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 4, x_610); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 5, x_611); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 6, x_612); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 7, x_613); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 8, x_615); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 9, x_617); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 10, x_618); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 11, x_619); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 12, x_621); +lean_ctor_set_uint8(x_630, sizeof(void*)*17 + 13, x_623); +x_631 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_631, 0, x_629); +lean_ctor_set(x_631, 1, x_597); +lean_ctor_set(x_552, 1, x_630); +lean_ctor_set(x_552, 0, x_631); +return x_539; } } else { -lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; uint8_t x_646; uint8_t x_647; uint8_t x_648; uint8_t x_649; uint8_t x_650; uint8_t x_651; uint8_t x_652; uint8_t x_653; lean_object* x_654; uint8_t x_655; lean_object* x_656; uint8_t x_657; uint8_t x_658; uint8_t x_659; lean_object* x_660; uint8_t x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; -x_631 = lean_ctor_get(x_519, 0); -x_632 = lean_ctor_get(x_519, 1); -lean_inc(x_632); -lean_inc(x_631); -lean_dec(x_519); -x_633 = lean_ctor_get(x_506, 1); -lean_inc(x_633); -if (lean_is_exclusive(x_506)) { - lean_ctor_release(x_506, 0); - lean_ctor_release(x_506, 1); - x_634 = x_506; -} else { - lean_dec_ref(x_506); - x_634 = lean_box(0); -} -x_635 = lean_ctor_get(x_631, 0); +lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; uint8_t x_646; uint8_t x_647; uint8_t x_648; uint8_t x_649; uint8_t x_650; uint8_t x_651; uint8_t x_652; uint8_t x_653; lean_object* x_654; uint8_t x_655; lean_object* x_656; uint8_t x_657; uint8_t x_658; uint8_t x_659; lean_object* x_660; uint8_t x_661; lean_object* x_662; uint8_t x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; +x_632 = lean_ctor_get(x_552, 0); +x_633 = lean_ctor_get(x_552, 1); +x_634 = lean_ctor_get(x_539, 1); +lean_inc(x_634); +lean_dec(x_539); +x_635 = lean_ctor_get(x_632, 0); lean_inc(x_635); -x_636 = lean_ctor_get(x_631, 1); +x_636 = lean_ctor_get(x_632, 1); lean_inc(x_636); -if (lean_is_exclusive(x_631)) { - lean_ctor_release(x_631, 0); - lean_ctor_release(x_631, 1); - x_637 = x_631; -} else { - lean_dec_ref(x_631); - x_637 = lean_box(0); -} -x_638 = lean_ctor_get(x_632, 0); -lean_inc(x_638); -x_639 = lean_ctor_get(x_632, 1); -lean_inc_ref(x_639); -x_640 = lean_ctor_get(x_632, 3); -lean_inc(x_640); -x_641 = lean_ctor_get(x_632, 4); -lean_inc(x_641); -x_642 = lean_ctor_get(x_632, 5); -lean_inc(x_642); -x_643 = lean_ctor_get(x_632, 6); -lean_inc(x_643); -x_644 = lean_ctor_get(x_632, 7); -lean_inc_ref(x_644); -x_645 = lean_ctor_get(x_632, 8); -lean_inc(x_645); -x_646 = lean_ctor_get_uint8(x_632, sizeof(void*)*15); -x_647 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 1); -x_648 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 2); -x_649 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 3); -x_650 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 4); -x_651 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 5); -x_652 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 6); -x_653 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 7); -x_654 = lean_ctor_get(x_632, 9); -lean_inc(x_654); -x_655 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 8); -x_656 = lean_ctor_get(x_632, 10); -lean_inc(x_656); -x_657 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 9); -x_658 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 10); -x_659 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 11); -x_660 = lean_ctor_get(x_632, 11); -lean_inc(x_660); -x_661 = lean_ctor_get_uint8(x_632, sizeof(void*)*15 + 12); -x_662 = lean_ctor_get(x_632, 12); -lean_inc(x_662); -x_663 = lean_ctor_get(x_632, 13); -lean_inc(x_663); -x_664 = lean_ctor_get(x_632, 14); -lean_inc(x_664); if (lean_is_exclusive(x_632)) { lean_ctor_release(x_632, 0); lean_ctor_release(x_632, 1); - lean_ctor_release(x_632, 2); - lean_ctor_release(x_632, 3); - lean_ctor_release(x_632, 4); - lean_ctor_release(x_632, 5); - lean_ctor_release(x_632, 6); - lean_ctor_release(x_632, 7); - lean_ctor_release(x_632, 8); - lean_ctor_release(x_632, 9); - lean_ctor_release(x_632, 10); - lean_ctor_release(x_632, 11); - lean_ctor_release(x_632, 12); - lean_ctor_release(x_632, 13); - lean_ctor_release(x_632, 14); - x_665 = x_632; + x_637 = x_632; } else { lean_dec_ref(x_632); - x_665 = lean_box(0); + x_637 = lean_box(0); } -x_666 = lean_box(0); -if (lean_is_scalar(x_665)) { - x_667 = lean_alloc_ctor(0, 15, 13); +x_638 = lean_ctor_get(x_633, 0); +lean_inc(x_638); +x_639 = lean_ctor_get(x_633, 1); +lean_inc_ref(x_639); +x_640 = lean_ctor_get(x_633, 3); +lean_inc(x_640); +x_641 = lean_ctor_get(x_633, 4); +lean_inc(x_641); +x_642 = lean_ctor_get(x_633, 5); +lean_inc(x_642); +x_643 = lean_ctor_get(x_633, 6); +lean_inc(x_643); +x_644 = lean_ctor_get(x_633, 7); +lean_inc_ref(x_644); +x_645 = lean_ctor_get(x_633, 8); +lean_inc(x_645); +x_646 = lean_ctor_get_uint8(x_633, sizeof(void*)*17); +x_647 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 1); +x_648 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 2); +x_649 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 3); +x_650 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 4); +x_651 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 5); +x_652 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 6); +x_653 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 7); +x_654 = lean_ctor_get(x_633, 9); +lean_inc(x_654); +x_655 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 8); +x_656 = lean_ctor_get(x_633, 10); +lean_inc(x_656); +x_657 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 9); +x_658 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 10); +x_659 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 11); +x_660 = lean_ctor_get(x_633, 11); +lean_inc(x_660); +x_661 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 12); +x_662 = lean_ctor_get(x_633, 12); +lean_inc(x_662); +x_663 = lean_ctor_get_uint8(x_633, sizeof(void*)*17 + 13); +x_664 = lean_ctor_get(x_633, 13); +lean_inc(x_664); +x_665 = lean_ctor_get(x_633, 14); +lean_inc(x_665); +x_666 = lean_ctor_get(x_633, 15); +lean_inc(x_666); +x_667 = lean_ctor_get(x_633, 16); +lean_inc(x_667); +if (lean_is_exclusive(x_633)) { + lean_ctor_release(x_633, 0); + lean_ctor_release(x_633, 1); + lean_ctor_release(x_633, 2); + lean_ctor_release(x_633, 3); + lean_ctor_release(x_633, 4); + lean_ctor_release(x_633, 5); + lean_ctor_release(x_633, 6); + lean_ctor_release(x_633, 7); + lean_ctor_release(x_633, 8); + lean_ctor_release(x_633, 9); + lean_ctor_release(x_633, 10); + lean_ctor_release(x_633, 11); + lean_ctor_release(x_633, 12); + lean_ctor_release(x_633, 13); + lean_ctor_release(x_633, 14); + lean_ctor_release(x_633, 15); + lean_ctor_release(x_633, 16); + x_668 = x_633; } else { - x_667 = x_665; + lean_dec_ref(x_633); + x_668 = lean_box(0); } -lean_ctor_set(x_667, 0, x_638); -lean_ctor_set(x_667, 1, x_639); -lean_ctor_set(x_667, 2, x_635); -lean_ctor_set(x_667, 3, x_640); -lean_ctor_set(x_667, 4, x_641); -lean_ctor_set(x_667, 5, x_642); -lean_ctor_set(x_667, 6, x_643); -lean_ctor_set(x_667, 7, x_644); -lean_ctor_set(x_667, 8, x_645); -lean_ctor_set(x_667, 9, x_654); -lean_ctor_set(x_667, 10, x_656); -lean_ctor_set(x_667, 11, x_660); -lean_ctor_set(x_667, 12, x_662); -lean_ctor_set(x_667, 13, x_663); -lean_ctor_set(x_667, 14, x_664); -lean_ctor_set_uint8(x_667, sizeof(void*)*15, x_646); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 1, x_647); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 2, x_648); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 3, x_649); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 4, x_650); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 5, x_651); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 6, x_652); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 7, x_653); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 8, x_655); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 9, x_657); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 10, x_658); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 11, x_659); -lean_ctor_set_uint8(x_667, sizeof(void*)*15 + 12, x_661); +x_669 = lean_box(0); +if (lean_is_scalar(x_668)) { + x_670 = lean_alloc_ctor(0, 17, 14); +} else { + x_670 = x_668; +} +lean_ctor_set(x_670, 0, x_638); +lean_ctor_set(x_670, 1, x_639); +lean_ctor_set(x_670, 2, x_635); +lean_ctor_set(x_670, 3, x_640); +lean_ctor_set(x_670, 4, x_641); +lean_ctor_set(x_670, 5, x_642); +lean_ctor_set(x_670, 6, x_643); +lean_ctor_set(x_670, 7, x_644); +lean_ctor_set(x_670, 8, x_645); +lean_ctor_set(x_670, 9, x_654); +lean_ctor_set(x_670, 10, x_656); +lean_ctor_set(x_670, 11, x_660); +lean_ctor_set(x_670, 12, x_662); +lean_ctor_set(x_670, 13, x_664); +lean_ctor_set(x_670, 14, x_665); +lean_ctor_set(x_670, 15, x_666); +lean_ctor_set(x_670, 16, x_667); +lean_ctor_set_uint8(x_670, sizeof(void*)*17, x_646); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 1, x_647); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 2, x_648); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 3, x_649); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 4, x_650); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 5, x_651); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 6, x_652); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 7, x_653); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 8, x_655); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 9, x_657); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 10, x_658); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 11, x_659); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 12, x_661); +lean_ctor_set_uint8(x_670, sizeof(void*)*17 + 13, x_663); if (lean_is_scalar(x_637)) { - x_668 = lean_alloc_ctor(0, 2, 0); + x_671 = lean_alloc_ctor(0, 2, 0); } else { - x_668 = x_637; + x_671 = x_637; } -lean_ctor_set(x_668, 0, x_666); -lean_ctor_set(x_668, 1, x_636); -x_669 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_669, 0, x_668); -lean_ctor_set(x_669, 1, x_667); -lean_ctor_set(x_507, 0, x_669); -if (lean_is_scalar(x_634)) { - x_670 = lean_alloc_ctor(0, 2, 0); -} else { - x_670 = x_634; -} -lean_ctor_set(x_670, 0, x_507); -lean_ctor_set(x_670, 1, x_633); -return x_670; +lean_ctor_set(x_671, 0, x_669); +lean_ctor_set(x_671, 1, x_636); +lean_ctor_set(x_552, 1, x_670); +lean_ctor_set(x_552, 0, x_671); +x_672 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_672, 0, x_540); +lean_ctor_set(x_672, 1, x_634); +return x_672; } } else { -lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; uint8_t x_688; uint8_t x_689; uint8_t x_690; uint8_t x_691; uint8_t x_692; uint8_t x_693; uint8_t x_694; uint8_t x_695; lean_object* x_696; uint8_t x_697; lean_object* x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; lean_object* x_702; uint8_t x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; -x_671 = lean_ctor_get(x_507, 0); -lean_inc(x_671); -lean_dec(x_507); -x_672 = lean_ctor_get(x_671, 0); -lean_inc(x_672); -x_673 = lean_ctor_get(x_671, 1); +lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; uint8_t x_688; uint8_t x_689; uint8_t x_690; uint8_t x_691; uint8_t x_692; uint8_t x_693; uint8_t x_694; uint8_t x_695; lean_object* x_696; uint8_t x_697; lean_object* x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; lean_object* x_702; uint8_t x_703; lean_object* x_704; uint8_t x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; +x_673 = lean_ctor_get(x_552, 0); +x_674 = lean_ctor_get(x_552, 1); +lean_inc(x_674); lean_inc(x_673); -if (lean_is_exclusive(x_671)) { - lean_ctor_release(x_671, 0); - lean_ctor_release(x_671, 1); - x_674 = x_671; -} else { - lean_dec_ref(x_671); - x_674 = lean_box(0); -} -x_675 = lean_ctor_get(x_506, 1); +lean_dec(x_552); +x_675 = lean_ctor_get(x_539, 1); lean_inc(x_675); -if (lean_is_exclusive(x_506)) { - lean_ctor_release(x_506, 0); - lean_ctor_release(x_506, 1); - x_676 = x_506; +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_676 = x_539; } else { - lean_dec_ref(x_506); + lean_dec_ref(x_539); x_676 = lean_box(0); } -x_677 = lean_ctor_get(x_672, 0); +x_677 = lean_ctor_get(x_673, 0); lean_inc(x_677); -x_678 = lean_ctor_get(x_672, 1); +x_678 = lean_ctor_get(x_673, 1); lean_inc(x_678); -if (lean_is_exclusive(x_672)) { - lean_ctor_release(x_672, 0); - lean_ctor_release(x_672, 1); - x_679 = x_672; -} else { - lean_dec_ref(x_672); - x_679 = lean_box(0); -} -x_680 = lean_ctor_get(x_673, 0); -lean_inc(x_680); -x_681 = lean_ctor_get(x_673, 1); -lean_inc_ref(x_681); -x_682 = lean_ctor_get(x_673, 3); -lean_inc(x_682); -x_683 = lean_ctor_get(x_673, 4); -lean_inc(x_683); -x_684 = lean_ctor_get(x_673, 5); -lean_inc(x_684); -x_685 = lean_ctor_get(x_673, 6); -lean_inc(x_685); -x_686 = lean_ctor_get(x_673, 7); -lean_inc_ref(x_686); -x_687 = lean_ctor_get(x_673, 8); -lean_inc(x_687); -x_688 = lean_ctor_get_uint8(x_673, sizeof(void*)*15); -x_689 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 1); -x_690 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 2); -x_691 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 3); -x_692 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 4); -x_693 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 5); -x_694 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 6); -x_695 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 7); -x_696 = lean_ctor_get(x_673, 9); -lean_inc(x_696); -x_697 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 8); -x_698 = lean_ctor_get(x_673, 10); -lean_inc(x_698); -x_699 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 9); -x_700 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 10); -x_701 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 11); -x_702 = lean_ctor_get(x_673, 11); -lean_inc(x_702); -x_703 = lean_ctor_get_uint8(x_673, sizeof(void*)*15 + 12); -x_704 = lean_ctor_get(x_673, 12); -lean_inc(x_704); -x_705 = lean_ctor_get(x_673, 13); -lean_inc(x_705); -x_706 = lean_ctor_get(x_673, 14); -lean_inc(x_706); if (lean_is_exclusive(x_673)) { lean_ctor_release(x_673, 0); lean_ctor_release(x_673, 1); - lean_ctor_release(x_673, 2); - lean_ctor_release(x_673, 3); - lean_ctor_release(x_673, 4); - lean_ctor_release(x_673, 5); - lean_ctor_release(x_673, 6); - lean_ctor_release(x_673, 7); - lean_ctor_release(x_673, 8); - lean_ctor_release(x_673, 9); - lean_ctor_release(x_673, 10); - lean_ctor_release(x_673, 11); - lean_ctor_release(x_673, 12); - lean_ctor_release(x_673, 13); - lean_ctor_release(x_673, 14); - x_707 = x_673; + x_679 = x_673; } else { lean_dec_ref(x_673); - x_707 = lean_box(0); + x_679 = lean_box(0); } -x_708 = lean_box(0); -if (lean_is_scalar(x_707)) { - x_709 = lean_alloc_ctor(0, 15, 13); +x_680 = lean_ctor_get(x_674, 0); +lean_inc(x_680); +x_681 = lean_ctor_get(x_674, 1); +lean_inc_ref(x_681); +x_682 = lean_ctor_get(x_674, 3); +lean_inc(x_682); +x_683 = lean_ctor_get(x_674, 4); +lean_inc(x_683); +x_684 = lean_ctor_get(x_674, 5); +lean_inc(x_684); +x_685 = lean_ctor_get(x_674, 6); +lean_inc(x_685); +x_686 = lean_ctor_get(x_674, 7); +lean_inc_ref(x_686); +x_687 = lean_ctor_get(x_674, 8); +lean_inc(x_687); +x_688 = lean_ctor_get_uint8(x_674, sizeof(void*)*17); +x_689 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 1); +x_690 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 2); +x_691 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 3); +x_692 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 4); +x_693 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 5); +x_694 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 6); +x_695 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 7); +x_696 = lean_ctor_get(x_674, 9); +lean_inc(x_696); +x_697 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 8); +x_698 = lean_ctor_get(x_674, 10); +lean_inc(x_698); +x_699 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 9); +x_700 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 10); +x_701 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 11); +x_702 = lean_ctor_get(x_674, 11); +lean_inc(x_702); +x_703 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 12); +x_704 = lean_ctor_get(x_674, 12); +lean_inc(x_704); +x_705 = lean_ctor_get_uint8(x_674, sizeof(void*)*17 + 13); +x_706 = lean_ctor_get(x_674, 13); +lean_inc(x_706); +x_707 = lean_ctor_get(x_674, 14); +lean_inc(x_707); +x_708 = lean_ctor_get(x_674, 15); +lean_inc(x_708); +x_709 = lean_ctor_get(x_674, 16); +lean_inc(x_709); +if (lean_is_exclusive(x_674)) { + lean_ctor_release(x_674, 0); + lean_ctor_release(x_674, 1); + lean_ctor_release(x_674, 2); + lean_ctor_release(x_674, 3); + lean_ctor_release(x_674, 4); + lean_ctor_release(x_674, 5); + lean_ctor_release(x_674, 6); + lean_ctor_release(x_674, 7); + lean_ctor_release(x_674, 8); + lean_ctor_release(x_674, 9); + lean_ctor_release(x_674, 10); + lean_ctor_release(x_674, 11); + lean_ctor_release(x_674, 12); + lean_ctor_release(x_674, 13); + lean_ctor_release(x_674, 14); + lean_ctor_release(x_674, 15); + lean_ctor_release(x_674, 16); + x_710 = x_674; } else { - x_709 = x_707; + lean_dec_ref(x_674); + x_710 = lean_box(0); } -lean_ctor_set(x_709, 0, x_680); -lean_ctor_set(x_709, 1, x_681); -lean_ctor_set(x_709, 2, x_677); -lean_ctor_set(x_709, 3, x_682); -lean_ctor_set(x_709, 4, x_683); -lean_ctor_set(x_709, 5, x_684); -lean_ctor_set(x_709, 6, x_685); -lean_ctor_set(x_709, 7, x_686); -lean_ctor_set(x_709, 8, x_687); -lean_ctor_set(x_709, 9, x_696); -lean_ctor_set(x_709, 10, x_698); -lean_ctor_set(x_709, 11, x_702); -lean_ctor_set(x_709, 12, x_704); -lean_ctor_set(x_709, 13, x_705); -lean_ctor_set(x_709, 14, x_706); -lean_ctor_set_uint8(x_709, sizeof(void*)*15, x_688); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 1, x_689); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 2, x_690); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 3, x_691); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 4, x_692); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 5, x_693); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 6, x_694); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 7, x_695); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 8, x_697); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 9, x_699); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 10, x_700); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 11, x_701); -lean_ctor_set_uint8(x_709, sizeof(void*)*15 + 12, x_703); +x_711 = lean_box(0); +if (lean_is_scalar(x_710)) { + x_712 = lean_alloc_ctor(0, 17, 14); +} else { + x_712 = x_710; +} +lean_ctor_set(x_712, 0, x_680); +lean_ctor_set(x_712, 1, x_681); +lean_ctor_set(x_712, 2, x_677); +lean_ctor_set(x_712, 3, x_682); +lean_ctor_set(x_712, 4, x_683); +lean_ctor_set(x_712, 5, x_684); +lean_ctor_set(x_712, 6, x_685); +lean_ctor_set(x_712, 7, x_686); +lean_ctor_set(x_712, 8, x_687); +lean_ctor_set(x_712, 9, x_696); +lean_ctor_set(x_712, 10, x_698); +lean_ctor_set(x_712, 11, x_702); +lean_ctor_set(x_712, 12, x_704); +lean_ctor_set(x_712, 13, x_706); +lean_ctor_set(x_712, 14, x_707); +lean_ctor_set(x_712, 15, x_708); +lean_ctor_set(x_712, 16, x_709); +lean_ctor_set_uint8(x_712, sizeof(void*)*17, x_688); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 1, x_689); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 2, x_690); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 3, x_691); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 4, x_692); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 5, x_693); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 6, x_694); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 7, x_695); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 8, x_697); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 9, x_699); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 10, x_700); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 11, x_701); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 12, x_703); +lean_ctor_set_uint8(x_712, sizeof(void*)*17 + 13, x_705); if (lean_is_scalar(x_679)) { - x_710 = lean_alloc_ctor(0, 2, 0); -} else { - x_710 = x_679; -} -lean_ctor_set(x_710, 0, x_708); -lean_ctor_set(x_710, 1, x_678); -if (lean_is_scalar(x_674)) { - x_711 = lean_alloc_ctor(0, 2, 0); -} else { - x_711 = x_674; -} -lean_ctor_set(x_711, 0, x_710); -lean_ctor_set(x_711, 1, x_709); -x_712 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_712, 0, x_711); -if (lean_is_scalar(x_676)) { x_713 = lean_alloc_ctor(0, 2, 0); } else { - x_713 = x_676; -} -lean_ctor_set(x_713, 0, x_712); -lean_ctor_set(x_713, 1, x_675); -return x_713; + x_713 = x_679; } +lean_ctor_set(x_713, 0, x_711); +lean_ctor_set(x_713, 1, x_678); +x_714 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_712); +lean_ctor_set(x_540, 0, x_714); +if (lean_is_scalar(x_676)) { + x_715 = lean_alloc_ctor(0, 2, 0); +} else { + x_715 = x_676; } +lean_ctor_set(x_715, 0, x_540); +lean_ctor_set(x_715, 1, x_675); +return x_715; } } else { -lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; -x_714 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7; -x_715 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; -x_716 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_714, x_715, x_2, x_3, x_4); +lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; uint8_t x_733; uint8_t x_734; uint8_t x_735; uint8_t x_736; uint8_t x_737; uint8_t x_738; uint8_t x_739; uint8_t x_740; lean_object* x_741; uint8_t x_742; lean_object* x_743; uint8_t x_744; uint8_t x_745; uint8_t x_746; lean_object* x_747; uint8_t x_748; lean_object* x_749; uint8_t x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; +x_716 = lean_ctor_get(x_540, 0); +lean_inc(x_716); +lean_dec(x_540); x_717 = lean_ctor_get(x_716, 0); lean_inc(x_717); -if (lean_obj_tag(x_717) == 0) -{ -uint8_t x_718; -x_718 = !lean_is_exclusive(x_716); -if (x_718 == 0) -{ -lean_object* x_719; uint8_t x_720; -x_719 = lean_ctor_get(x_716, 0); -lean_dec(x_719); -x_720 = !lean_is_exclusive(x_717); -if (x_720 == 0) -{ -return x_716; +x_718 = lean_ctor_get(x_716, 1); +lean_inc(x_718); +if (lean_is_exclusive(x_716)) { + lean_ctor_release(x_716, 0); + lean_ctor_release(x_716, 1); + x_719 = x_716; +} else { + lean_dec_ref(x_716); + x_719 = lean_box(0); } -else -{ -lean_object* x_721; lean_object* x_722; -x_721 = lean_ctor_get(x_717, 0); -lean_inc(x_721); -lean_dec(x_717); -x_722 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_722, 0, x_721); -lean_ctor_set(x_716, 0, x_722); -return x_716; +x_720 = lean_ctor_get(x_539, 1); +lean_inc(x_720); +if (lean_is_exclusive(x_539)) { + lean_ctor_release(x_539, 0); + lean_ctor_release(x_539, 1); + x_721 = x_539; +} else { + lean_dec_ref(x_539); + x_721 = lean_box(0); } -} -else -{ -lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; -x_723 = lean_ctor_get(x_716, 1); +x_722 = lean_ctor_get(x_717, 0); +lean_inc(x_722); +x_723 = lean_ctor_get(x_717, 1); lean_inc(x_723); -lean_dec(x_716); -x_724 = lean_ctor_get(x_717, 0); -lean_inc(x_724); if (lean_is_exclusive(x_717)) { lean_ctor_release(x_717, 0); - x_725 = x_717; + lean_ctor_release(x_717, 1); + x_724 = x_717; } else { lean_dec_ref(x_717); - x_725 = lean_box(0); + x_724 = lean_box(0); } -if (lean_is_scalar(x_725)) { - x_726 = lean_alloc_ctor(0, 1, 0); -} else { - x_726 = x_725; -} -lean_ctor_set(x_726, 0, x_724); -x_727 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_727, 0, x_726); -lean_ctor_set(x_727, 1, x_723); -return x_727; -} -} -else -{ -uint8_t x_728; -x_728 = !lean_is_exclusive(x_717); -if (x_728 == 0) -{ -lean_object* x_729; uint8_t x_730; -x_729 = lean_ctor_get(x_717, 0); -x_730 = !lean_is_exclusive(x_729); -if (x_730 == 0) -{ -uint8_t x_731; -x_731 = !lean_is_exclusive(x_716); -if (x_731 == 0) -{ -lean_object* x_732; lean_object* x_733; lean_object* x_734; uint8_t x_735; -x_732 = lean_ctor_get(x_729, 0); -x_733 = lean_ctor_get(x_729, 1); -x_734 = lean_ctor_get(x_716, 0); -lean_dec(x_734); -x_735 = !lean_is_exclusive(x_732); -if (x_735 == 0) -{ -uint8_t x_736; -x_736 = !lean_is_exclusive(x_733); -if (x_736 == 0) -{ -lean_object* x_737; lean_object* x_738; lean_object* x_739; -x_737 = lean_ctor_get(x_732, 0); -x_738 = lean_ctor_get(x_733, 1); -lean_dec(x_738); -x_739 = lean_box(0); -lean_ctor_set(x_733, 1, x_737); -lean_ctor_set(x_732, 0, x_739); -return x_716; -} -else -{ -lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; uint8_t x_749; uint8_t x_750; uint8_t x_751; uint8_t x_752; uint8_t x_753; uint8_t x_754; uint8_t x_755; uint8_t x_756; lean_object* x_757; uint8_t x_758; lean_object* x_759; uint8_t x_760; uint8_t x_761; uint8_t x_762; lean_object* x_763; uint8_t x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; -x_740 = lean_ctor_get(x_732, 0); -x_741 = lean_ctor_get(x_733, 0); -x_742 = lean_ctor_get(x_733, 2); -x_743 = lean_ctor_get(x_733, 3); -x_744 = lean_ctor_get(x_733, 4); -x_745 = lean_ctor_get(x_733, 5); -x_746 = lean_ctor_get(x_733, 6); -x_747 = lean_ctor_get(x_733, 7); -x_748 = lean_ctor_get(x_733, 8); -x_749 = lean_ctor_get_uint8(x_733, sizeof(void*)*15); -x_750 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 1); -x_751 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 2); -x_752 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 3); -x_753 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 4); -x_754 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 5); -x_755 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 6); -x_756 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 7); -x_757 = lean_ctor_get(x_733, 9); -x_758 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 8); -x_759 = lean_ctor_get(x_733, 10); -x_760 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 9); -x_761 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 10); -x_762 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 11); -x_763 = lean_ctor_get(x_733, 11); -x_764 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 12); -x_765 = lean_ctor_get(x_733, 12); -x_766 = lean_ctor_get(x_733, 13); -x_767 = lean_ctor_get(x_733, 14); -lean_inc(x_767); -lean_inc(x_766); -lean_inc(x_765); -lean_inc(x_763); -lean_inc(x_759); -lean_inc(x_757); -lean_inc(x_748); -lean_inc(x_747); -lean_inc(x_746); -lean_inc(x_745); -lean_inc(x_744); -lean_inc(x_743); -lean_inc(x_742); +x_725 = lean_ctor_get(x_718, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_718, 1); +lean_inc_ref(x_726); +x_727 = lean_ctor_get(x_718, 3); +lean_inc(x_727); +x_728 = lean_ctor_get(x_718, 4); +lean_inc(x_728); +x_729 = lean_ctor_get(x_718, 5); +lean_inc(x_729); +x_730 = lean_ctor_get(x_718, 6); +lean_inc(x_730); +x_731 = lean_ctor_get(x_718, 7); +lean_inc_ref(x_731); +x_732 = lean_ctor_get(x_718, 8); +lean_inc(x_732); +x_733 = lean_ctor_get_uint8(x_718, sizeof(void*)*17); +x_734 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 1); +x_735 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 2); +x_736 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 3); +x_737 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 4); +x_738 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 5); +x_739 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 6); +x_740 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 7); +x_741 = lean_ctor_get(x_718, 9); lean_inc(x_741); -lean_dec(x_733); -x_768 = lean_box(0); -x_769 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_769, 0, x_741); -lean_ctor_set(x_769, 1, x_740); -lean_ctor_set(x_769, 2, x_742); -lean_ctor_set(x_769, 3, x_743); -lean_ctor_set(x_769, 4, x_744); -lean_ctor_set(x_769, 5, x_745); -lean_ctor_set(x_769, 6, x_746); -lean_ctor_set(x_769, 7, x_747); -lean_ctor_set(x_769, 8, x_748); -lean_ctor_set(x_769, 9, x_757); -lean_ctor_set(x_769, 10, x_759); -lean_ctor_set(x_769, 11, x_763); -lean_ctor_set(x_769, 12, x_765); -lean_ctor_set(x_769, 13, x_766); -lean_ctor_set(x_769, 14, x_767); -lean_ctor_set_uint8(x_769, sizeof(void*)*15, x_749); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 1, x_750); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 2, x_751); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 3, x_752); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 4, x_753); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 5, x_754); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 6, x_755); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 7, x_756); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 8, x_758); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 9, x_760); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 10, x_761); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 11, x_762); -lean_ctor_set_uint8(x_769, sizeof(void*)*15 + 12, x_764); -lean_ctor_set(x_732, 0, x_768); -lean_ctor_set(x_729, 1, x_769); -return x_716; +x_742 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 8); +x_743 = lean_ctor_get(x_718, 10); +lean_inc(x_743); +x_744 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 9); +x_745 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 10); +x_746 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 11); +x_747 = lean_ctor_get(x_718, 11); +lean_inc(x_747); +x_748 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 12); +x_749 = lean_ctor_get(x_718, 12); +lean_inc(x_749); +x_750 = lean_ctor_get_uint8(x_718, sizeof(void*)*17 + 13); +x_751 = lean_ctor_get(x_718, 13); +lean_inc(x_751); +x_752 = lean_ctor_get(x_718, 14); +lean_inc(x_752); +x_753 = lean_ctor_get(x_718, 15); +lean_inc(x_753); +x_754 = lean_ctor_get(x_718, 16); +lean_inc(x_754); +if (lean_is_exclusive(x_718)) { + lean_ctor_release(x_718, 0); + lean_ctor_release(x_718, 1); + lean_ctor_release(x_718, 2); + lean_ctor_release(x_718, 3); + lean_ctor_release(x_718, 4); + lean_ctor_release(x_718, 5); + lean_ctor_release(x_718, 6); + lean_ctor_release(x_718, 7); + lean_ctor_release(x_718, 8); + lean_ctor_release(x_718, 9); + lean_ctor_release(x_718, 10); + lean_ctor_release(x_718, 11); + lean_ctor_release(x_718, 12); + lean_ctor_release(x_718, 13); + lean_ctor_release(x_718, 14); + lean_ctor_release(x_718, 15); + lean_ctor_release(x_718, 16); + x_755 = x_718; +} else { + lean_dec_ref(x_718); + x_755 = lean_box(0); +} +x_756 = lean_box(0); +if (lean_is_scalar(x_755)) { + x_757 = lean_alloc_ctor(0, 17, 14); +} else { + x_757 = x_755; +} +lean_ctor_set(x_757, 0, x_725); +lean_ctor_set(x_757, 1, x_726); +lean_ctor_set(x_757, 2, x_722); +lean_ctor_set(x_757, 3, x_727); +lean_ctor_set(x_757, 4, x_728); +lean_ctor_set(x_757, 5, x_729); +lean_ctor_set(x_757, 6, x_730); +lean_ctor_set(x_757, 7, x_731); +lean_ctor_set(x_757, 8, x_732); +lean_ctor_set(x_757, 9, x_741); +lean_ctor_set(x_757, 10, x_743); +lean_ctor_set(x_757, 11, x_747); +lean_ctor_set(x_757, 12, x_749); +lean_ctor_set(x_757, 13, x_751); +lean_ctor_set(x_757, 14, x_752); +lean_ctor_set(x_757, 15, x_753); +lean_ctor_set(x_757, 16, x_754); +lean_ctor_set_uint8(x_757, sizeof(void*)*17, x_733); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 1, x_734); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 2, x_735); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 3, x_736); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 4, x_737); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 5, x_738); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 6, x_739); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 7, x_740); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 8, x_742); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 9, x_744); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 10, x_745); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 11, x_746); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 12, x_748); +lean_ctor_set_uint8(x_757, sizeof(void*)*17 + 13, x_750); +if (lean_is_scalar(x_724)) { + x_758 = lean_alloc_ctor(0, 2, 0); +} else { + x_758 = x_724; +} +lean_ctor_set(x_758, 0, x_756); +lean_ctor_set(x_758, 1, x_723); +if (lean_is_scalar(x_719)) { + x_759 = lean_alloc_ctor(0, 2, 0); +} else { + x_759 = x_719; +} +lean_ctor_set(x_759, 0, x_758); +lean_ctor_set(x_759, 1, x_757); +x_760 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_760, 0, x_759); +if (lean_is_scalar(x_721)) { + x_761 = lean_alloc_ctor(0, 2, 0); +} else { + x_761 = x_721; +} +lean_ctor_set(x_761, 0, x_760); +lean_ctor_set(x_761, 1, x_720); +return x_761; +} +} } } else { -lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; uint8_t x_780; uint8_t x_781; uint8_t x_782; uint8_t x_783; uint8_t x_784; uint8_t x_785; uint8_t x_786; uint8_t x_787; lean_object* x_788; uint8_t x_789; lean_object* x_790; uint8_t x_791; uint8_t x_792; uint8_t x_793; lean_object* x_794; uint8_t x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; -x_770 = lean_ctor_get(x_732, 0); -x_771 = lean_ctor_get(x_732, 1); +lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; +x_762 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7; +x_763 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; +x_764 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_762, x_763, x_2, x_3, x_4); +x_765 = lean_ctor_get(x_764, 0); +lean_inc(x_765); +if (lean_obj_tag(x_765) == 0) +{ +uint8_t x_766; +x_766 = !lean_is_exclusive(x_764); +if (x_766 == 0) +{ +lean_object* x_767; uint8_t x_768; +x_767 = lean_ctor_get(x_764, 0); +lean_dec(x_767); +x_768 = !lean_is_exclusive(x_765); +if (x_768 == 0) +{ +return x_764; +} +else +{ +lean_object* x_769; lean_object* x_770; +x_769 = lean_ctor_get(x_765, 0); +lean_inc(x_769); +lean_dec(x_765); +x_770 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_770, 0, x_769); +lean_ctor_set(x_764, 0, x_770); +return x_764; +} +} +else +{ +lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; +x_771 = lean_ctor_get(x_764, 1); lean_inc(x_771); -lean_inc(x_770); -lean_dec(x_732); -x_772 = lean_ctor_get(x_733, 0); +lean_dec(x_764); +x_772 = lean_ctor_get(x_765, 0); lean_inc(x_772); -x_773 = lean_ctor_get(x_733, 2); -lean_inc_ref(x_773); -x_774 = lean_ctor_get(x_733, 3); -lean_inc(x_774); -x_775 = lean_ctor_get(x_733, 4); -lean_inc(x_775); -x_776 = lean_ctor_get(x_733, 5); -lean_inc(x_776); -x_777 = lean_ctor_get(x_733, 6); -lean_inc(x_777); -x_778 = lean_ctor_get(x_733, 7); -lean_inc_ref(x_778); -x_779 = lean_ctor_get(x_733, 8); -lean_inc(x_779); -x_780 = lean_ctor_get_uint8(x_733, sizeof(void*)*15); -x_781 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 1); -x_782 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 2); -x_783 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 3); -x_784 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 4); -x_785 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 5); -x_786 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 6); -x_787 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 7); -x_788 = lean_ctor_get(x_733, 9); -lean_inc(x_788); -x_789 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 8); -x_790 = lean_ctor_get(x_733, 10); -lean_inc(x_790); -x_791 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 9); -x_792 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 10); -x_793 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 11); -x_794 = lean_ctor_get(x_733, 11); -lean_inc(x_794); -x_795 = lean_ctor_get_uint8(x_733, sizeof(void*)*15 + 12); -x_796 = lean_ctor_get(x_733, 12); -lean_inc(x_796); -x_797 = lean_ctor_get(x_733, 13); -lean_inc(x_797); -x_798 = lean_ctor_get(x_733, 14); -lean_inc(x_798); -if (lean_is_exclusive(x_733)) { - lean_ctor_release(x_733, 0); - lean_ctor_release(x_733, 1); - lean_ctor_release(x_733, 2); - lean_ctor_release(x_733, 3); - lean_ctor_release(x_733, 4); - lean_ctor_release(x_733, 5); - lean_ctor_release(x_733, 6); - lean_ctor_release(x_733, 7); - lean_ctor_release(x_733, 8); - lean_ctor_release(x_733, 9); - lean_ctor_release(x_733, 10); - lean_ctor_release(x_733, 11); - lean_ctor_release(x_733, 12); - lean_ctor_release(x_733, 13); - lean_ctor_release(x_733, 14); - x_799 = x_733; +if (lean_is_exclusive(x_765)) { + lean_ctor_release(x_765, 0); + x_773 = x_765; } else { - lean_dec_ref(x_733); - x_799 = lean_box(0); + lean_dec_ref(x_765); + x_773 = lean_box(0); } -x_800 = lean_box(0); -if (lean_is_scalar(x_799)) { - x_801 = lean_alloc_ctor(0, 15, 13); +if (lean_is_scalar(x_773)) { + x_774 = lean_alloc_ctor(0, 1, 0); } else { - x_801 = x_799; + x_774 = x_773; } -lean_ctor_set(x_801, 0, x_772); -lean_ctor_set(x_801, 1, x_770); -lean_ctor_set(x_801, 2, x_773); -lean_ctor_set(x_801, 3, x_774); -lean_ctor_set(x_801, 4, x_775); -lean_ctor_set(x_801, 5, x_776); -lean_ctor_set(x_801, 6, x_777); -lean_ctor_set(x_801, 7, x_778); -lean_ctor_set(x_801, 8, x_779); -lean_ctor_set(x_801, 9, x_788); -lean_ctor_set(x_801, 10, x_790); -lean_ctor_set(x_801, 11, x_794); -lean_ctor_set(x_801, 12, x_796); -lean_ctor_set(x_801, 13, x_797); -lean_ctor_set(x_801, 14, x_798); -lean_ctor_set_uint8(x_801, sizeof(void*)*15, x_780); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 1, x_781); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 2, x_782); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 3, x_783); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 4, x_784); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 5, x_785); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 6, x_786); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 7, x_787); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 8, x_789); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 9, x_791); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 10, x_792); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 11, x_793); -lean_ctor_set_uint8(x_801, sizeof(void*)*15 + 12, x_795); -x_802 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_802, 0, x_800); -lean_ctor_set(x_802, 1, x_771); -lean_ctor_set(x_729, 1, x_801); -lean_ctor_set(x_729, 0, x_802); -return x_716; +lean_ctor_set(x_774, 0, x_772); +x_775 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_775, 0, x_774); +lean_ctor_set(x_775, 1, x_771); +return x_775; } } else { -lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; uint8_t x_818; uint8_t x_819; uint8_t x_820; uint8_t x_821; uint8_t x_822; uint8_t x_823; uint8_t x_824; lean_object* x_825; uint8_t x_826; lean_object* x_827; uint8_t x_828; uint8_t x_829; uint8_t x_830; lean_object* x_831; uint8_t x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; -x_803 = lean_ctor_get(x_729, 0); -x_804 = lean_ctor_get(x_729, 1); -x_805 = lean_ctor_get(x_716, 1); -lean_inc(x_805); -lean_dec(x_716); -x_806 = lean_ctor_get(x_803, 0); -lean_inc(x_806); -x_807 = lean_ctor_get(x_803, 1); -lean_inc(x_807); -if (lean_is_exclusive(x_803)) { - lean_ctor_release(x_803, 0); - lean_ctor_release(x_803, 1); - x_808 = x_803; -} else { - lean_dec_ref(x_803); - x_808 = lean_box(0); +uint8_t x_776; +x_776 = !lean_is_exclusive(x_765); +if (x_776 == 0) +{ +lean_object* x_777; uint8_t x_778; +x_777 = lean_ctor_get(x_765, 0); +x_778 = !lean_is_exclusive(x_777); +if (x_778 == 0) +{ +uint8_t x_779; +x_779 = !lean_is_exclusive(x_764); +if (x_779 == 0) +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; uint8_t x_783; +x_780 = lean_ctor_get(x_777, 0); +x_781 = lean_ctor_get(x_777, 1); +x_782 = lean_ctor_get(x_764, 0); +lean_dec(x_782); +x_783 = !lean_is_exclusive(x_780); +if (x_783 == 0) +{ +uint8_t x_784; +x_784 = !lean_is_exclusive(x_781); +if (x_784 == 0) +{ +lean_object* x_785; lean_object* x_786; lean_object* x_787; +x_785 = lean_ctor_get(x_780, 0); +x_786 = lean_ctor_get(x_781, 1); +lean_dec(x_786); +x_787 = lean_box(0); +lean_ctor_set(x_781, 1, x_785); +lean_ctor_set(x_780, 0, x_787); +return x_764; } -x_809 = lean_ctor_get(x_804, 0); -lean_inc(x_809); -x_810 = lean_ctor_get(x_804, 2); -lean_inc_ref(x_810); -x_811 = lean_ctor_get(x_804, 3); -lean_inc(x_811); -x_812 = lean_ctor_get(x_804, 4); -lean_inc(x_812); -x_813 = lean_ctor_get(x_804, 5); -lean_inc(x_813); -x_814 = lean_ctor_get(x_804, 6); -lean_inc(x_814); -x_815 = lean_ctor_get(x_804, 7); -lean_inc_ref(x_815); -x_816 = lean_ctor_get(x_804, 8); +else +{ +lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; uint8_t x_797; uint8_t x_798; uint8_t x_799; uint8_t x_800; uint8_t x_801; uint8_t x_802; uint8_t x_803; uint8_t x_804; lean_object* x_805; uint8_t x_806; lean_object* x_807; uint8_t x_808; uint8_t x_809; uint8_t x_810; lean_object* x_811; uint8_t x_812; lean_object* x_813; uint8_t x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +x_788 = lean_ctor_get(x_780, 0); +x_789 = lean_ctor_get(x_781, 0); +x_790 = lean_ctor_get(x_781, 2); +x_791 = lean_ctor_get(x_781, 3); +x_792 = lean_ctor_get(x_781, 4); +x_793 = lean_ctor_get(x_781, 5); +x_794 = lean_ctor_get(x_781, 6); +x_795 = lean_ctor_get(x_781, 7); +x_796 = lean_ctor_get(x_781, 8); +x_797 = lean_ctor_get_uint8(x_781, sizeof(void*)*17); +x_798 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 1); +x_799 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 2); +x_800 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 3); +x_801 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 4); +x_802 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 5); +x_803 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 6); +x_804 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 7); +x_805 = lean_ctor_get(x_781, 9); +x_806 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 8); +x_807 = lean_ctor_get(x_781, 10); +x_808 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 9); +x_809 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 10); +x_810 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 11); +x_811 = lean_ctor_get(x_781, 11); +x_812 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 12); +x_813 = lean_ctor_get(x_781, 12); +x_814 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 13); +x_815 = lean_ctor_get(x_781, 13); +x_816 = lean_ctor_get(x_781, 14); +x_817 = lean_ctor_get(x_781, 15); +x_818 = lean_ctor_get(x_781, 16); +lean_inc(x_818); +lean_inc(x_817); lean_inc(x_816); -x_817 = lean_ctor_get_uint8(x_804, sizeof(void*)*15); -x_818 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 1); -x_819 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 2); -x_820 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 3); -x_821 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 4); -x_822 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 5); -x_823 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 6); -x_824 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 7); -x_825 = lean_ctor_get(x_804, 9); +lean_inc(x_815); +lean_inc(x_813); +lean_inc(x_811); +lean_inc(x_807); +lean_inc(x_805); +lean_inc(x_796); +lean_inc(x_795); +lean_inc(x_794); +lean_inc(x_793); +lean_inc(x_792); +lean_inc(x_791); +lean_inc(x_790); +lean_inc(x_789); +lean_dec(x_781); +x_819 = lean_box(0); +x_820 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_820, 0, x_789); +lean_ctor_set(x_820, 1, x_788); +lean_ctor_set(x_820, 2, x_790); +lean_ctor_set(x_820, 3, x_791); +lean_ctor_set(x_820, 4, x_792); +lean_ctor_set(x_820, 5, x_793); +lean_ctor_set(x_820, 6, x_794); +lean_ctor_set(x_820, 7, x_795); +lean_ctor_set(x_820, 8, x_796); +lean_ctor_set(x_820, 9, x_805); +lean_ctor_set(x_820, 10, x_807); +lean_ctor_set(x_820, 11, x_811); +lean_ctor_set(x_820, 12, x_813); +lean_ctor_set(x_820, 13, x_815); +lean_ctor_set(x_820, 14, x_816); +lean_ctor_set(x_820, 15, x_817); +lean_ctor_set(x_820, 16, x_818); +lean_ctor_set_uint8(x_820, sizeof(void*)*17, x_797); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 1, x_798); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 2, x_799); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 3, x_800); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 4, x_801); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 5, x_802); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 6, x_803); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 7, x_804); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 8, x_806); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 9, x_808); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 10, x_809); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 11, x_810); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 12, x_812); +lean_ctor_set_uint8(x_820, sizeof(void*)*17 + 13, x_814); +lean_ctor_set(x_780, 0, x_819); +lean_ctor_set(x_777, 1, x_820); +return x_764; +} +} +else +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; uint8_t x_831; uint8_t x_832; uint8_t x_833; uint8_t x_834; uint8_t x_835; uint8_t x_836; uint8_t x_837; uint8_t x_838; lean_object* x_839; uint8_t x_840; lean_object* x_841; uint8_t x_842; uint8_t x_843; uint8_t x_844; lean_object* x_845; uint8_t x_846; lean_object* x_847; uint8_t x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; +x_821 = lean_ctor_get(x_780, 0); +x_822 = lean_ctor_get(x_780, 1); +lean_inc(x_822); +lean_inc(x_821); +lean_dec(x_780); +x_823 = lean_ctor_get(x_781, 0); +lean_inc(x_823); +x_824 = lean_ctor_get(x_781, 2); +lean_inc_ref(x_824); +x_825 = lean_ctor_get(x_781, 3); lean_inc(x_825); -x_826 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 8); -x_827 = lean_ctor_get(x_804, 10); +x_826 = lean_ctor_get(x_781, 4); +lean_inc(x_826); +x_827 = lean_ctor_get(x_781, 5); lean_inc(x_827); -x_828 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 9); -x_829 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 10); -x_830 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 11); -x_831 = lean_ctor_get(x_804, 11); -lean_inc(x_831); -x_832 = lean_ctor_get_uint8(x_804, sizeof(void*)*15 + 12); -x_833 = lean_ctor_get(x_804, 12); -lean_inc(x_833); -x_834 = lean_ctor_get(x_804, 13); -lean_inc(x_834); -x_835 = lean_ctor_get(x_804, 14); -lean_inc(x_835); -if (lean_is_exclusive(x_804)) { - lean_ctor_release(x_804, 0); - lean_ctor_release(x_804, 1); - lean_ctor_release(x_804, 2); - lean_ctor_release(x_804, 3); - lean_ctor_release(x_804, 4); - lean_ctor_release(x_804, 5); - lean_ctor_release(x_804, 6); - lean_ctor_release(x_804, 7); - lean_ctor_release(x_804, 8); - lean_ctor_release(x_804, 9); - lean_ctor_release(x_804, 10); - lean_ctor_release(x_804, 11); - lean_ctor_release(x_804, 12); - lean_ctor_release(x_804, 13); - lean_ctor_release(x_804, 14); - x_836 = x_804; -} else { - lean_dec_ref(x_804); - x_836 = lean_box(0); -} -x_837 = lean_box(0); -if (lean_is_scalar(x_836)) { - x_838 = lean_alloc_ctor(0, 15, 13); -} else { - x_838 = x_836; -} -lean_ctor_set(x_838, 0, x_809); -lean_ctor_set(x_838, 1, x_806); -lean_ctor_set(x_838, 2, x_810); -lean_ctor_set(x_838, 3, x_811); -lean_ctor_set(x_838, 4, x_812); -lean_ctor_set(x_838, 5, x_813); -lean_ctor_set(x_838, 6, x_814); -lean_ctor_set(x_838, 7, x_815); -lean_ctor_set(x_838, 8, x_816); -lean_ctor_set(x_838, 9, x_825); -lean_ctor_set(x_838, 10, x_827); -lean_ctor_set(x_838, 11, x_831); -lean_ctor_set(x_838, 12, x_833); -lean_ctor_set(x_838, 13, x_834); -lean_ctor_set(x_838, 14, x_835); -lean_ctor_set_uint8(x_838, sizeof(void*)*15, x_817); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 1, x_818); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 2, x_819); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 3, x_820); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 4, x_821); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 5, x_822); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 6, x_823); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 7, x_824); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 8, x_826); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 9, x_828); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 10, x_829); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 11, x_830); -lean_ctor_set_uint8(x_838, sizeof(void*)*15 + 12, x_832); -if (lean_is_scalar(x_808)) { - x_839 = lean_alloc_ctor(0, 2, 0); -} else { - x_839 = x_808; -} -lean_ctor_set(x_839, 0, x_837); -lean_ctor_set(x_839, 1, x_807); -lean_ctor_set(x_729, 1, x_838); -lean_ctor_set(x_729, 0, x_839); -x_840 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_840, 0, x_717); -lean_ctor_set(x_840, 1, x_805); -return x_840; -} -} -else -{ -lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; uint8_t x_856; uint8_t x_857; uint8_t x_858; uint8_t x_859; uint8_t x_860; uint8_t x_861; uint8_t x_862; uint8_t x_863; lean_object* x_864; uint8_t x_865; lean_object* x_866; uint8_t x_867; uint8_t x_868; uint8_t x_869; lean_object* x_870; uint8_t x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; -x_841 = lean_ctor_get(x_729, 0); -x_842 = lean_ctor_get(x_729, 1); -lean_inc(x_842); +x_828 = lean_ctor_get(x_781, 6); +lean_inc(x_828); +x_829 = lean_ctor_get(x_781, 7); +lean_inc_ref(x_829); +x_830 = lean_ctor_get(x_781, 8); +lean_inc(x_830); +x_831 = lean_ctor_get_uint8(x_781, sizeof(void*)*17); +x_832 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 1); +x_833 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 2); +x_834 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 3); +x_835 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 4); +x_836 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 5); +x_837 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 6); +x_838 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 7); +x_839 = lean_ctor_get(x_781, 9); +lean_inc(x_839); +x_840 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 8); +x_841 = lean_ctor_get(x_781, 10); lean_inc(x_841); -lean_dec(x_729); -x_843 = lean_ctor_get(x_716, 1); -lean_inc(x_843); -if (lean_is_exclusive(x_716)) { - lean_ctor_release(x_716, 0); - lean_ctor_release(x_716, 1); - x_844 = x_716; -} else { - lean_dec_ref(x_716); - x_844 = lean_box(0); -} -x_845 = lean_ctor_get(x_841, 0); +x_842 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 9); +x_843 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 10); +x_844 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 11); +x_845 = lean_ctor_get(x_781, 11); lean_inc(x_845); -x_846 = lean_ctor_get(x_841, 1); -lean_inc(x_846); -if (lean_is_exclusive(x_841)) { - lean_ctor_release(x_841, 0); - lean_ctor_release(x_841, 1); - x_847 = x_841; -} else { - lean_dec_ref(x_841); - x_847 = lean_box(0); -} -x_848 = lean_ctor_get(x_842, 0); -lean_inc(x_848); -x_849 = lean_ctor_get(x_842, 2); -lean_inc_ref(x_849); -x_850 = lean_ctor_get(x_842, 3); +x_846 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 12); +x_847 = lean_ctor_get(x_781, 12); +lean_inc(x_847); +x_848 = lean_ctor_get_uint8(x_781, sizeof(void*)*17 + 13); +x_849 = lean_ctor_get(x_781, 13); +lean_inc(x_849); +x_850 = lean_ctor_get(x_781, 14); lean_inc(x_850); -x_851 = lean_ctor_get(x_842, 4); +x_851 = lean_ctor_get(x_781, 15); lean_inc(x_851); -x_852 = lean_ctor_get(x_842, 5); +x_852 = lean_ctor_get(x_781, 16); lean_inc(x_852); -x_853 = lean_ctor_get(x_842, 6); -lean_inc(x_853); -x_854 = lean_ctor_get(x_842, 7); -lean_inc_ref(x_854); -x_855 = lean_ctor_get(x_842, 8); -lean_inc(x_855); -x_856 = lean_ctor_get_uint8(x_842, sizeof(void*)*15); -x_857 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 1); -x_858 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 2); -x_859 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 3); -x_860 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 4); -x_861 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 5); -x_862 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 6); -x_863 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 7); -x_864 = lean_ctor_get(x_842, 9); -lean_inc(x_864); -x_865 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 8); -x_866 = lean_ctor_get(x_842, 10); +if (lean_is_exclusive(x_781)) { + lean_ctor_release(x_781, 0); + lean_ctor_release(x_781, 1); + lean_ctor_release(x_781, 2); + lean_ctor_release(x_781, 3); + lean_ctor_release(x_781, 4); + lean_ctor_release(x_781, 5); + lean_ctor_release(x_781, 6); + lean_ctor_release(x_781, 7); + lean_ctor_release(x_781, 8); + lean_ctor_release(x_781, 9); + lean_ctor_release(x_781, 10); + lean_ctor_release(x_781, 11); + lean_ctor_release(x_781, 12); + lean_ctor_release(x_781, 13); + lean_ctor_release(x_781, 14); + lean_ctor_release(x_781, 15); + lean_ctor_release(x_781, 16); + x_853 = x_781; +} else { + lean_dec_ref(x_781); + x_853 = lean_box(0); +} +x_854 = lean_box(0); +if (lean_is_scalar(x_853)) { + x_855 = lean_alloc_ctor(0, 17, 14); +} else { + x_855 = x_853; +} +lean_ctor_set(x_855, 0, x_823); +lean_ctor_set(x_855, 1, x_821); +lean_ctor_set(x_855, 2, x_824); +lean_ctor_set(x_855, 3, x_825); +lean_ctor_set(x_855, 4, x_826); +lean_ctor_set(x_855, 5, x_827); +lean_ctor_set(x_855, 6, x_828); +lean_ctor_set(x_855, 7, x_829); +lean_ctor_set(x_855, 8, x_830); +lean_ctor_set(x_855, 9, x_839); +lean_ctor_set(x_855, 10, x_841); +lean_ctor_set(x_855, 11, x_845); +lean_ctor_set(x_855, 12, x_847); +lean_ctor_set(x_855, 13, x_849); +lean_ctor_set(x_855, 14, x_850); +lean_ctor_set(x_855, 15, x_851); +lean_ctor_set(x_855, 16, x_852); +lean_ctor_set_uint8(x_855, sizeof(void*)*17, x_831); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 1, x_832); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 2, x_833); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 3, x_834); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 4, x_835); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 5, x_836); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 6, x_837); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 7, x_838); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 8, x_840); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 9, x_842); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 10, x_843); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 11, x_844); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 12, x_846); +lean_ctor_set_uint8(x_855, sizeof(void*)*17 + 13, x_848); +x_856 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_856, 0, x_854); +lean_ctor_set(x_856, 1, x_822); +lean_ctor_set(x_777, 1, x_855); +lean_ctor_set(x_777, 0, x_856); +return x_764; +} +} +else +{ +lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; uint8_t x_871; uint8_t x_872; uint8_t x_873; uint8_t x_874; uint8_t x_875; uint8_t x_876; uint8_t x_877; uint8_t x_878; lean_object* x_879; uint8_t x_880; lean_object* x_881; uint8_t x_882; uint8_t x_883; uint8_t x_884; lean_object* x_885; uint8_t x_886; lean_object* x_887; uint8_t x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +x_857 = lean_ctor_get(x_777, 0); +x_858 = lean_ctor_get(x_777, 1); +x_859 = lean_ctor_get(x_764, 1); +lean_inc(x_859); +lean_dec(x_764); +x_860 = lean_ctor_get(x_857, 0); +lean_inc(x_860); +x_861 = lean_ctor_get(x_857, 1); +lean_inc(x_861); +if (lean_is_exclusive(x_857)) { + lean_ctor_release(x_857, 0); + lean_ctor_release(x_857, 1); + x_862 = x_857; +} else { + lean_dec_ref(x_857); + x_862 = lean_box(0); +} +x_863 = lean_ctor_get(x_858, 0); +lean_inc(x_863); +x_864 = lean_ctor_get(x_858, 2); +lean_inc_ref(x_864); +x_865 = lean_ctor_get(x_858, 3); +lean_inc(x_865); +x_866 = lean_ctor_get(x_858, 4); lean_inc(x_866); -x_867 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 9); -x_868 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 10); -x_869 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 11); -x_870 = lean_ctor_get(x_842, 11); +x_867 = lean_ctor_get(x_858, 5); +lean_inc(x_867); +x_868 = lean_ctor_get(x_858, 6); +lean_inc(x_868); +x_869 = lean_ctor_get(x_858, 7); +lean_inc_ref(x_869); +x_870 = lean_ctor_get(x_858, 8); lean_inc(x_870); -x_871 = lean_ctor_get_uint8(x_842, sizeof(void*)*15 + 12); -x_872 = lean_ctor_get(x_842, 12); -lean_inc(x_872); -x_873 = lean_ctor_get(x_842, 13); -lean_inc(x_873); -x_874 = lean_ctor_get(x_842, 14); -lean_inc(x_874); -if (lean_is_exclusive(x_842)) { - lean_ctor_release(x_842, 0); - lean_ctor_release(x_842, 1); - lean_ctor_release(x_842, 2); - lean_ctor_release(x_842, 3); - lean_ctor_release(x_842, 4); - lean_ctor_release(x_842, 5); - lean_ctor_release(x_842, 6); - lean_ctor_release(x_842, 7); - lean_ctor_release(x_842, 8); - lean_ctor_release(x_842, 9); - lean_ctor_release(x_842, 10); - lean_ctor_release(x_842, 11); - lean_ctor_release(x_842, 12); - lean_ctor_release(x_842, 13); - lean_ctor_release(x_842, 14); - x_875 = x_842; -} else { - lean_dec_ref(x_842); - x_875 = lean_box(0); -} -x_876 = lean_box(0); -if (lean_is_scalar(x_875)) { - x_877 = lean_alloc_ctor(0, 15, 13); -} else { - x_877 = x_875; -} -lean_ctor_set(x_877, 0, x_848); -lean_ctor_set(x_877, 1, x_845); -lean_ctor_set(x_877, 2, x_849); -lean_ctor_set(x_877, 3, x_850); -lean_ctor_set(x_877, 4, x_851); -lean_ctor_set(x_877, 5, x_852); -lean_ctor_set(x_877, 6, x_853); -lean_ctor_set(x_877, 7, x_854); -lean_ctor_set(x_877, 8, x_855); -lean_ctor_set(x_877, 9, x_864); -lean_ctor_set(x_877, 10, x_866); -lean_ctor_set(x_877, 11, x_870); -lean_ctor_set(x_877, 12, x_872); -lean_ctor_set(x_877, 13, x_873); -lean_ctor_set(x_877, 14, x_874); -lean_ctor_set_uint8(x_877, sizeof(void*)*15, x_856); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 1, x_857); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 2, x_858); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 3, x_859); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 4, x_860); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 5, x_861); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 6, x_862); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 7, x_863); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 8, x_865); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 9, x_867); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 10, x_868); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 11, x_869); -lean_ctor_set_uint8(x_877, sizeof(void*)*15 + 12, x_871); -if (lean_is_scalar(x_847)) { - x_878 = lean_alloc_ctor(0, 2, 0); -} else { - x_878 = x_847; -} -lean_ctor_set(x_878, 0, x_876); -lean_ctor_set(x_878, 1, x_846); -x_879 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_879, 0, x_878); -lean_ctor_set(x_879, 1, x_877); -lean_ctor_set(x_717, 0, x_879); -if (lean_is_scalar(x_844)) { - x_880 = lean_alloc_ctor(0, 2, 0); -} else { - x_880 = x_844; -} -lean_ctor_set(x_880, 0, x_717); -lean_ctor_set(x_880, 1, x_843); -return x_880; -} -} -else -{ -lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; uint8_t x_898; uint8_t x_899; uint8_t x_900; uint8_t x_901; uint8_t x_902; uint8_t x_903; uint8_t x_904; uint8_t x_905; lean_object* x_906; uint8_t x_907; lean_object* x_908; uint8_t x_909; uint8_t x_910; uint8_t x_911; lean_object* x_912; uint8_t x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; -x_881 = lean_ctor_get(x_717, 0); +x_871 = lean_ctor_get_uint8(x_858, sizeof(void*)*17); +x_872 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 1); +x_873 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 2); +x_874 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 3); +x_875 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 4); +x_876 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 5); +x_877 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 6); +x_878 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 7); +x_879 = lean_ctor_get(x_858, 9); +lean_inc(x_879); +x_880 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 8); +x_881 = lean_ctor_get(x_858, 10); lean_inc(x_881); -lean_dec(x_717); -x_882 = lean_ctor_get(x_881, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_881, 1); -lean_inc(x_883); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - x_884 = x_881; -} else { - lean_dec_ref(x_881); - x_884 = lean_box(0); -} -x_885 = lean_ctor_get(x_716, 1); +x_882 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 9); +x_883 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 10); +x_884 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 11); +x_885 = lean_ctor_get(x_858, 11); lean_inc(x_885); -if (lean_is_exclusive(x_716)) { - lean_ctor_release(x_716, 0); - lean_ctor_release(x_716, 1); - x_886 = x_716; -} else { - lean_dec_ref(x_716); - x_886 = lean_box(0); -} -x_887 = lean_ctor_get(x_882, 0); +x_886 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 12); +x_887 = lean_ctor_get(x_858, 12); lean_inc(x_887); -x_888 = lean_ctor_get(x_882, 1); -lean_inc(x_888); -if (lean_is_exclusive(x_882)) { - lean_ctor_release(x_882, 0); - lean_ctor_release(x_882, 1); - x_889 = x_882; -} else { - lean_dec_ref(x_882); - x_889 = lean_box(0); -} -x_890 = lean_ctor_get(x_883, 0); +x_888 = lean_ctor_get_uint8(x_858, sizeof(void*)*17 + 13); +x_889 = lean_ctor_get(x_858, 13); +lean_inc(x_889); +x_890 = lean_ctor_get(x_858, 14); lean_inc(x_890); -x_891 = lean_ctor_get(x_883, 2); -lean_inc_ref(x_891); -x_892 = lean_ctor_get(x_883, 3); +x_891 = lean_ctor_get(x_858, 15); +lean_inc(x_891); +x_892 = lean_ctor_get(x_858, 16); lean_inc(x_892); -x_893 = lean_ctor_get(x_883, 4); -lean_inc(x_893); -x_894 = lean_ctor_get(x_883, 5); -lean_inc(x_894); -x_895 = lean_ctor_get(x_883, 6); -lean_inc(x_895); -x_896 = lean_ctor_get(x_883, 7); -lean_inc_ref(x_896); -x_897 = lean_ctor_get(x_883, 8); -lean_inc(x_897); -x_898 = lean_ctor_get_uint8(x_883, sizeof(void*)*15); -x_899 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 1); -x_900 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 2); -x_901 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 3); -x_902 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 4); -x_903 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 5); -x_904 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 6); -x_905 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 7); -x_906 = lean_ctor_get(x_883, 9); -lean_inc(x_906); -x_907 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 8); -x_908 = lean_ctor_get(x_883, 10); +if (lean_is_exclusive(x_858)) { + lean_ctor_release(x_858, 0); + lean_ctor_release(x_858, 1); + lean_ctor_release(x_858, 2); + lean_ctor_release(x_858, 3); + lean_ctor_release(x_858, 4); + lean_ctor_release(x_858, 5); + lean_ctor_release(x_858, 6); + lean_ctor_release(x_858, 7); + lean_ctor_release(x_858, 8); + lean_ctor_release(x_858, 9); + lean_ctor_release(x_858, 10); + lean_ctor_release(x_858, 11); + lean_ctor_release(x_858, 12); + lean_ctor_release(x_858, 13); + lean_ctor_release(x_858, 14); + lean_ctor_release(x_858, 15); + lean_ctor_release(x_858, 16); + x_893 = x_858; +} else { + lean_dec_ref(x_858); + x_893 = lean_box(0); +} +x_894 = lean_box(0); +if (lean_is_scalar(x_893)) { + x_895 = lean_alloc_ctor(0, 17, 14); +} else { + x_895 = x_893; +} +lean_ctor_set(x_895, 0, x_863); +lean_ctor_set(x_895, 1, x_860); +lean_ctor_set(x_895, 2, x_864); +lean_ctor_set(x_895, 3, x_865); +lean_ctor_set(x_895, 4, x_866); +lean_ctor_set(x_895, 5, x_867); +lean_ctor_set(x_895, 6, x_868); +lean_ctor_set(x_895, 7, x_869); +lean_ctor_set(x_895, 8, x_870); +lean_ctor_set(x_895, 9, x_879); +lean_ctor_set(x_895, 10, x_881); +lean_ctor_set(x_895, 11, x_885); +lean_ctor_set(x_895, 12, x_887); +lean_ctor_set(x_895, 13, x_889); +lean_ctor_set(x_895, 14, x_890); +lean_ctor_set(x_895, 15, x_891); +lean_ctor_set(x_895, 16, x_892); +lean_ctor_set_uint8(x_895, sizeof(void*)*17, x_871); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 1, x_872); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 2, x_873); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 3, x_874); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 4, x_875); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 5, x_876); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 6, x_877); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 7, x_878); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 8, x_880); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 9, x_882); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 10, x_883); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 11, x_884); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 12, x_886); +lean_ctor_set_uint8(x_895, sizeof(void*)*17 + 13, x_888); +if (lean_is_scalar(x_862)) { + x_896 = lean_alloc_ctor(0, 2, 0); +} else { + x_896 = x_862; +} +lean_ctor_set(x_896, 0, x_894); +lean_ctor_set(x_896, 1, x_861); +lean_ctor_set(x_777, 1, x_895); +lean_ctor_set(x_777, 0, x_896); +x_897 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_897, 0, x_765); +lean_ctor_set(x_897, 1, x_859); +return x_897; +} +} +else +{ +lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; uint8_t x_913; uint8_t x_914; uint8_t x_915; uint8_t x_916; uint8_t x_917; uint8_t x_918; uint8_t x_919; uint8_t x_920; lean_object* x_921; uint8_t x_922; lean_object* x_923; uint8_t x_924; uint8_t x_925; uint8_t x_926; lean_object* x_927; uint8_t x_928; lean_object* x_929; uint8_t x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; +x_898 = lean_ctor_get(x_777, 0); +x_899 = lean_ctor_get(x_777, 1); +lean_inc(x_899); +lean_inc(x_898); +lean_dec(x_777); +x_900 = lean_ctor_get(x_764, 1); +lean_inc(x_900); +if (lean_is_exclusive(x_764)) { + lean_ctor_release(x_764, 0); + lean_ctor_release(x_764, 1); + x_901 = x_764; +} else { + lean_dec_ref(x_764); + x_901 = lean_box(0); +} +x_902 = lean_ctor_get(x_898, 0); +lean_inc(x_902); +x_903 = lean_ctor_get(x_898, 1); +lean_inc(x_903); +if (lean_is_exclusive(x_898)) { + lean_ctor_release(x_898, 0); + lean_ctor_release(x_898, 1); + x_904 = x_898; +} else { + lean_dec_ref(x_898); + x_904 = lean_box(0); +} +x_905 = lean_ctor_get(x_899, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_899, 2); +lean_inc_ref(x_906); +x_907 = lean_ctor_get(x_899, 3); +lean_inc(x_907); +x_908 = lean_ctor_get(x_899, 4); lean_inc(x_908); -x_909 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 9); -x_910 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 10); -x_911 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 11); -x_912 = lean_ctor_get(x_883, 11); +x_909 = lean_ctor_get(x_899, 5); +lean_inc(x_909); +x_910 = lean_ctor_get(x_899, 6); +lean_inc(x_910); +x_911 = lean_ctor_get(x_899, 7); +lean_inc_ref(x_911); +x_912 = lean_ctor_get(x_899, 8); lean_inc(x_912); -x_913 = lean_ctor_get_uint8(x_883, sizeof(void*)*15 + 12); -x_914 = lean_ctor_get(x_883, 12); -lean_inc(x_914); -x_915 = lean_ctor_get(x_883, 13); -lean_inc(x_915); -x_916 = lean_ctor_get(x_883, 14); -lean_inc(x_916); -if (lean_is_exclusive(x_883)) { - lean_ctor_release(x_883, 0); - lean_ctor_release(x_883, 1); - lean_ctor_release(x_883, 2); - lean_ctor_release(x_883, 3); - lean_ctor_release(x_883, 4); - lean_ctor_release(x_883, 5); - lean_ctor_release(x_883, 6); - lean_ctor_release(x_883, 7); - lean_ctor_release(x_883, 8); - lean_ctor_release(x_883, 9); - lean_ctor_release(x_883, 10); - lean_ctor_release(x_883, 11); - lean_ctor_release(x_883, 12); - lean_ctor_release(x_883, 13); - lean_ctor_release(x_883, 14); - x_917 = x_883; -} else { - lean_dec_ref(x_883); - x_917 = lean_box(0); -} -x_918 = lean_box(0); -if (lean_is_scalar(x_917)) { - x_919 = lean_alloc_ctor(0, 15, 13); -} else { - x_919 = x_917; -} -lean_ctor_set(x_919, 0, x_890); -lean_ctor_set(x_919, 1, x_887); -lean_ctor_set(x_919, 2, x_891); -lean_ctor_set(x_919, 3, x_892); -lean_ctor_set(x_919, 4, x_893); -lean_ctor_set(x_919, 5, x_894); -lean_ctor_set(x_919, 6, x_895); -lean_ctor_set(x_919, 7, x_896); -lean_ctor_set(x_919, 8, x_897); -lean_ctor_set(x_919, 9, x_906); -lean_ctor_set(x_919, 10, x_908); -lean_ctor_set(x_919, 11, x_912); -lean_ctor_set(x_919, 12, x_914); -lean_ctor_set(x_919, 13, x_915); -lean_ctor_set(x_919, 14, x_916); -lean_ctor_set_uint8(x_919, sizeof(void*)*15, x_898); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 1, x_899); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 2, x_900); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 3, x_901); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 4, x_902); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 5, x_903); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 6, x_904); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 7, x_905); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 8, x_907); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 9, x_909); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 10, x_910); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 11, x_911); -lean_ctor_set_uint8(x_919, sizeof(void*)*15 + 12, x_913); -if (lean_is_scalar(x_889)) { - x_920 = lean_alloc_ctor(0, 2, 0); -} else { - x_920 = x_889; -} -lean_ctor_set(x_920, 0, x_918); -lean_ctor_set(x_920, 1, x_888); -if (lean_is_scalar(x_884)) { - x_921 = lean_alloc_ctor(0, 2, 0); -} else { - x_921 = x_884; -} -lean_ctor_set(x_921, 0, x_920); -lean_ctor_set(x_921, 1, x_919); -x_922 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_922, 0, x_921); -if (lean_is_scalar(x_886)) { - x_923 = lean_alloc_ctor(0, 2, 0); -} else { - x_923 = x_886; -} -lean_ctor_set(x_923, 0, x_922); -lean_ctor_set(x_923, 1, x_885); -return x_923; -} -} -} -} -else -{ -uint8_t x_924; -x_924 = !lean_is_exclusive(x_3); -if (x_924 == 0) -{ -lean_object* x_925; uint8_t x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; -x_925 = lean_box(0); -x_926 = 2; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 1, x_926); -x_927 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_927, 0, x_925); -lean_ctor_set(x_927, 1, x_2); -x_928 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_928, 0, x_927); -lean_ctor_set(x_928, 1, x_3); -x_929 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_929, 0, x_928); -x_930 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_930, 0, x_929); -lean_ctor_set(x_930, 1, x_4); -return x_930; -} -else -{ -lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; uint8_t x_940; uint8_t x_941; uint8_t x_942; uint8_t x_943; uint8_t x_944; uint8_t x_945; uint8_t x_946; lean_object* x_947; uint8_t x_948; lean_object* x_949; uint8_t x_950; uint8_t x_951; uint8_t x_952; lean_object* x_953; uint8_t x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; uint8_t x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; -x_931 = lean_ctor_get(x_3, 0); -x_932 = lean_ctor_get(x_3, 1); -x_933 = lean_ctor_get(x_3, 2); -x_934 = lean_ctor_get(x_3, 3); -x_935 = lean_ctor_get(x_3, 4); -x_936 = lean_ctor_get(x_3, 5); -x_937 = lean_ctor_get(x_3, 6); -x_938 = lean_ctor_get(x_3, 7); -x_939 = lean_ctor_get(x_3, 8); -x_940 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_941 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_942 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_943 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_944 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_945 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_946 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_947 = lean_ctor_get(x_3, 9); -x_948 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_949 = lean_ctor_get(x_3, 10); -x_950 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_951 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_952 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_953 = lean_ctor_get(x_3, 11); -x_954 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_955 = lean_ctor_get(x_3, 12); -x_956 = lean_ctor_get(x_3, 13); -x_957 = lean_ctor_get(x_3, 14); -lean_inc(x_957); -lean_inc(x_956); -lean_inc(x_955); -lean_inc(x_953); -lean_inc(x_949); -lean_inc(x_947); -lean_inc(x_939); -lean_inc(x_938); -lean_inc(x_937); -lean_inc(x_936); -lean_inc(x_935); -lean_inc(x_934); -lean_inc(x_933); -lean_inc(x_932); +x_913 = lean_ctor_get_uint8(x_899, sizeof(void*)*17); +x_914 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 1); +x_915 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 2); +x_916 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 3); +x_917 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 4); +x_918 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 5); +x_919 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 6); +x_920 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 7); +x_921 = lean_ctor_get(x_899, 9); +lean_inc(x_921); +x_922 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 8); +x_923 = lean_ctor_get(x_899, 10); +lean_inc(x_923); +x_924 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 9); +x_925 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 10); +x_926 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 11); +x_927 = lean_ctor_get(x_899, 11); +lean_inc(x_927); +x_928 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 12); +x_929 = lean_ctor_get(x_899, 12); +lean_inc(x_929); +x_930 = lean_ctor_get_uint8(x_899, sizeof(void*)*17 + 13); +x_931 = lean_ctor_get(x_899, 13); lean_inc(x_931); -lean_dec(x_3); -x_958 = lean_box(0); -x_959 = 2; -x_960 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_960, 0, x_931); -lean_ctor_set(x_960, 1, x_932); -lean_ctor_set(x_960, 2, x_933); -lean_ctor_set(x_960, 3, x_934); -lean_ctor_set(x_960, 4, x_935); -lean_ctor_set(x_960, 5, x_936); -lean_ctor_set(x_960, 6, x_937); -lean_ctor_set(x_960, 7, x_938); -lean_ctor_set(x_960, 8, x_939); -lean_ctor_set(x_960, 9, x_947); -lean_ctor_set(x_960, 10, x_949); -lean_ctor_set(x_960, 11, x_953); -lean_ctor_set(x_960, 12, x_955); -lean_ctor_set(x_960, 13, x_956); -lean_ctor_set(x_960, 14, x_957); -lean_ctor_set_uint8(x_960, sizeof(void*)*15, x_940); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 1, x_959); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 2, x_941); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 3, x_942); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 4, x_943); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 5, x_944); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 6, x_945); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 7, x_946); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 8, x_948); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 9, x_950); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 10, x_951); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 11, x_952); -lean_ctor_set_uint8(x_960, sizeof(void*)*15 + 12, x_954); -x_961 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_961, 0, x_958); -lean_ctor_set(x_961, 1, x_2); -x_962 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_962, 0, x_961); -lean_ctor_set(x_962, 1, x_960); -x_963 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_963, 0, x_962); -x_964 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_964, 0, x_963); -lean_ctor_set(x_964, 1, x_4); -return x_964; +x_932 = lean_ctor_get(x_899, 14); +lean_inc(x_932); +x_933 = lean_ctor_get(x_899, 15); +lean_inc(x_933); +x_934 = lean_ctor_get(x_899, 16); +lean_inc(x_934); +if (lean_is_exclusive(x_899)) { + lean_ctor_release(x_899, 0); + lean_ctor_release(x_899, 1); + lean_ctor_release(x_899, 2); + lean_ctor_release(x_899, 3); + lean_ctor_release(x_899, 4); + lean_ctor_release(x_899, 5); + lean_ctor_release(x_899, 6); + lean_ctor_release(x_899, 7); + lean_ctor_release(x_899, 8); + lean_ctor_release(x_899, 9); + lean_ctor_release(x_899, 10); + lean_ctor_release(x_899, 11); + lean_ctor_release(x_899, 12); + lean_ctor_release(x_899, 13); + lean_ctor_release(x_899, 14); + lean_ctor_release(x_899, 15); + lean_ctor_release(x_899, 16); + x_935 = x_899; +} else { + lean_dec_ref(x_899); + x_935 = lean_box(0); +} +x_936 = lean_box(0); +if (lean_is_scalar(x_935)) { + x_937 = lean_alloc_ctor(0, 17, 14); +} else { + x_937 = x_935; +} +lean_ctor_set(x_937, 0, x_905); +lean_ctor_set(x_937, 1, x_902); +lean_ctor_set(x_937, 2, x_906); +lean_ctor_set(x_937, 3, x_907); +lean_ctor_set(x_937, 4, x_908); +lean_ctor_set(x_937, 5, x_909); +lean_ctor_set(x_937, 6, x_910); +lean_ctor_set(x_937, 7, x_911); +lean_ctor_set(x_937, 8, x_912); +lean_ctor_set(x_937, 9, x_921); +lean_ctor_set(x_937, 10, x_923); +lean_ctor_set(x_937, 11, x_927); +lean_ctor_set(x_937, 12, x_929); +lean_ctor_set(x_937, 13, x_931); +lean_ctor_set(x_937, 14, x_932); +lean_ctor_set(x_937, 15, x_933); +lean_ctor_set(x_937, 16, x_934); +lean_ctor_set_uint8(x_937, sizeof(void*)*17, x_913); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 1, x_914); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 2, x_915); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 3, x_916); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 4, x_917); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 5, x_918); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 6, x_919); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 7, x_920); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 8, x_922); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 9, x_924); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 10, x_925); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 11, x_926); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 12, x_928); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 13, x_930); +if (lean_is_scalar(x_904)) { + x_938 = lean_alloc_ctor(0, 2, 0); +} else { + x_938 = x_904; +} +lean_ctor_set(x_938, 0, x_936); +lean_ctor_set(x_938, 1, x_903); +x_939 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_939, 0, x_938); +lean_ctor_set(x_939, 1, x_937); +lean_ctor_set(x_765, 0, x_939); +if (lean_is_scalar(x_901)) { + x_940 = lean_alloc_ctor(0, 2, 0); +} else { + x_940 = x_901; +} +lean_ctor_set(x_940, 0, x_765); +lean_ctor_set(x_940, 1, x_900); +return x_940; +} +} +else +{ +lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; uint8_t x_958; uint8_t x_959; uint8_t x_960; uint8_t x_961; uint8_t x_962; uint8_t x_963; uint8_t x_964; uint8_t x_965; lean_object* x_966; uint8_t x_967; lean_object* x_968; uint8_t x_969; uint8_t x_970; uint8_t x_971; lean_object* x_972; uint8_t x_973; lean_object* x_974; uint8_t x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; +x_941 = lean_ctor_get(x_765, 0); +lean_inc(x_941); +lean_dec(x_765); +x_942 = lean_ctor_get(x_941, 0); +lean_inc(x_942); +x_943 = lean_ctor_get(x_941, 1); +lean_inc(x_943); +if (lean_is_exclusive(x_941)) { + lean_ctor_release(x_941, 0); + lean_ctor_release(x_941, 1); + x_944 = x_941; +} else { + lean_dec_ref(x_941); + x_944 = lean_box(0); +} +x_945 = lean_ctor_get(x_764, 1); +lean_inc(x_945); +if (lean_is_exclusive(x_764)) { + lean_ctor_release(x_764, 0); + lean_ctor_release(x_764, 1); + x_946 = x_764; +} else { + lean_dec_ref(x_764); + x_946 = lean_box(0); +} +x_947 = lean_ctor_get(x_942, 0); +lean_inc(x_947); +x_948 = lean_ctor_get(x_942, 1); +lean_inc(x_948); +if (lean_is_exclusive(x_942)) { + lean_ctor_release(x_942, 0); + lean_ctor_release(x_942, 1); + x_949 = x_942; +} else { + lean_dec_ref(x_942); + x_949 = lean_box(0); +} +x_950 = lean_ctor_get(x_943, 0); +lean_inc(x_950); +x_951 = lean_ctor_get(x_943, 2); +lean_inc_ref(x_951); +x_952 = lean_ctor_get(x_943, 3); +lean_inc(x_952); +x_953 = lean_ctor_get(x_943, 4); +lean_inc(x_953); +x_954 = lean_ctor_get(x_943, 5); +lean_inc(x_954); +x_955 = lean_ctor_get(x_943, 6); +lean_inc(x_955); +x_956 = lean_ctor_get(x_943, 7); +lean_inc_ref(x_956); +x_957 = lean_ctor_get(x_943, 8); +lean_inc(x_957); +x_958 = lean_ctor_get_uint8(x_943, sizeof(void*)*17); +x_959 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 1); +x_960 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 2); +x_961 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 3); +x_962 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 4); +x_963 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 5); +x_964 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 6); +x_965 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 7); +x_966 = lean_ctor_get(x_943, 9); +lean_inc(x_966); +x_967 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 8); +x_968 = lean_ctor_get(x_943, 10); +lean_inc(x_968); +x_969 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 9); +x_970 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 10); +x_971 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 11); +x_972 = lean_ctor_get(x_943, 11); +lean_inc(x_972); +x_973 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 12); +x_974 = lean_ctor_get(x_943, 12); +lean_inc(x_974); +x_975 = lean_ctor_get_uint8(x_943, sizeof(void*)*17 + 13); +x_976 = lean_ctor_get(x_943, 13); +lean_inc(x_976); +x_977 = lean_ctor_get(x_943, 14); +lean_inc(x_977); +x_978 = lean_ctor_get(x_943, 15); +lean_inc(x_978); +x_979 = lean_ctor_get(x_943, 16); +lean_inc(x_979); +if (lean_is_exclusive(x_943)) { + lean_ctor_release(x_943, 0); + lean_ctor_release(x_943, 1); + lean_ctor_release(x_943, 2); + lean_ctor_release(x_943, 3); + lean_ctor_release(x_943, 4); + lean_ctor_release(x_943, 5); + lean_ctor_release(x_943, 6); + lean_ctor_release(x_943, 7); + lean_ctor_release(x_943, 8); + lean_ctor_release(x_943, 9); + lean_ctor_release(x_943, 10); + lean_ctor_release(x_943, 11); + lean_ctor_release(x_943, 12); + lean_ctor_release(x_943, 13); + lean_ctor_release(x_943, 14); + lean_ctor_release(x_943, 15); + lean_ctor_release(x_943, 16); + x_980 = x_943; +} else { + lean_dec_ref(x_943); + x_980 = lean_box(0); +} +x_981 = lean_box(0); +if (lean_is_scalar(x_980)) { + x_982 = lean_alloc_ctor(0, 17, 14); +} else { + x_982 = x_980; +} +lean_ctor_set(x_982, 0, x_950); +lean_ctor_set(x_982, 1, x_947); +lean_ctor_set(x_982, 2, x_951); +lean_ctor_set(x_982, 3, x_952); +lean_ctor_set(x_982, 4, x_953); +lean_ctor_set(x_982, 5, x_954); +lean_ctor_set(x_982, 6, x_955); +lean_ctor_set(x_982, 7, x_956); +lean_ctor_set(x_982, 8, x_957); +lean_ctor_set(x_982, 9, x_966); +lean_ctor_set(x_982, 10, x_968); +lean_ctor_set(x_982, 11, x_972); +lean_ctor_set(x_982, 12, x_974); +lean_ctor_set(x_982, 13, x_976); +lean_ctor_set(x_982, 14, x_977); +lean_ctor_set(x_982, 15, x_978); +lean_ctor_set(x_982, 16, x_979); +lean_ctor_set_uint8(x_982, sizeof(void*)*17, x_958); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 1, x_959); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 2, x_960); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 3, x_961); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 4, x_962); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 5, x_963); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 6, x_964); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 7, x_965); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 8, x_967); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 9, x_969); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 10, x_970); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 11, x_971); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 12, x_973); +lean_ctor_set_uint8(x_982, sizeof(void*)*17 + 13, x_975); +if (lean_is_scalar(x_949)) { + x_983 = lean_alloc_ctor(0, 2, 0); +} else { + x_983 = x_949; +} +lean_ctor_set(x_983, 0, x_981); +lean_ctor_set(x_983, 1, x_948); +if (lean_is_scalar(x_944)) { + x_984 = lean_alloc_ctor(0, 2, 0); +} else { + x_984 = x_944; +} +lean_ctor_set(x_984, 0, x_983); +lean_ctor_set(x_984, 1, x_982); +x_985 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_985, 0, x_984); +if (lean_is_scalar(x_946)) { + x_986 = lean_alloc_ctor(0, 2, 0); +} else { + x_986 = x_946; +} +lean_ctor_set(x_986, 0, x_985); +lean_ctor_set(x_986, 1, x_945); +return x_986; +} } } } else { -uint8_t x_965; -x_965 = !lean_is_exclusive(x_3); -if (x_965 == 0) +uint8_t x_987; +x_987 = !lean_is_exclusive(x_3); +if (x_987 == 0) { -lean_object* x_966; uint8_t x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; -x_966 = lean_box(0); -x_967 = 0; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 1, x_967); -x_968 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_968, 0, x_966); -lean_ctor_set(x_968, 1, x_2); -x_969 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_969, 0, x_968); -lean_ctor_set(x_969, 1, x_3); -x_970 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_970, 0, x_969); -x_971 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_971, 0, x_970); -lean_ctor_set(x_971, 1, x_4); -return x_971; +lean_object* x_988; uint8_t x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; +x_988 = lean_box(0); +x_989 = 2; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 1, x_989); +x_990 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_990, 0, x_988); +lean_ctor_set(x_990, 1, x_2); +x_991 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_991, 0, x_990); +lean_ctor_set(x_991, 1, x_3); +x_992 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_992, 0, x_991); +x_993 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_993, 0, x_992); +lean_ctor_set(x_993, 1, x_4); +return x_993; } else { -lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; uint8_t x_981; uint8_t x_982; uint8_t x_983; uint8_t x_984; uint8_t x_985; uint8_t x_986; uint8_t x_987; lean_object* x_988; uint8_t x_989; lean_object* x_990; uint8_t x_991; uint8_t x_992; uint8_t x_993; lean_object* x_994; uint8_t x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; uint8_t x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; -x_972 = lean_ctor_get(x_3, 0); -x_973 = lean_ctor_get(x_3, 1); -x_974 = lean_ctor_get(x_3, 2); -x_975 = lean_ctor_get(x_3, 3); -x_976 = lean_ctor_get(x_3, 4); -x_977 = lean_ctor_get(x_3, 5); -x_978 = lean_ctor_get(x_3, 6); -x_979 = lean_ctor_get(x_3, 7); -x_980 = lean_ctor_get(x_3, 8); -x_981 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_982 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_983 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_984 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_985 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_986 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_987 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_988 = lean_ctor_get(x_3, 9); -x_989 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_990 = lean_ctor_get(x_3, 10); -x_991 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_992 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_993 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_994 = lean_ctor_get(x_3, 11); -x_995 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_996 = lean_ctor_get(x_3, 12); -x_997 = lean_ctor_get(x_3, 13); -x_998 = lean_ctor_get(x_3, 14); +lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; uint8_t x_1003; uint8_t x_1004; uint8_t x_1005; uint8_t x_1006; uint8_t x_1007; uint8_t x_1008; uint8_t x_1009; lean_object* x_1010; uint8_t x_1011; lean_object* x_1012; uint8_t x_1013; uint8_t x_1014; uint8_t x_1015; lean_object* x_1016; uint8_t x_1017; lean_object* x_1018; uint8_t x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; uint8_t x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; +x_994 = lean_ctor_get(x_3, 0); +x_995 = lean_ctor_get(x_3, 1); +x_996 = lean_ctor_get(x_3, 2); +x_997 = lean_ctor_get(x_3, 3); +x_998 = lean_ctor_get(x_3, 4); +x_999 = lean_ctor_get(x_3, 5); +x_1000 = lean_ctor_get(x_3, 6); +x_1001 = lean_ctor_get(x_3, 7); +x_1002 = lean_ctor_get(x_3, 8); +x_1003 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_1004 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_1005 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_1006 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_1007 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_1008 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_1009 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_1010 = lean_ctor_get(x_3, 9); +x_1011 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_1012 = lean_ctor_get(x_3, 10); +x_1013 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_1014 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_1015 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_1016 = lean_ctor_get(x_3, 11); +x_1017 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_1018 = lean_ctor_get(x_3, 12); +x_1019 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_1020 = lean_ctor_get(x_3, 13); +x_1021 = lean_ctor_get(x_3, 14); +x_1022 = lean_ctor_get(x_3, 15); +x_1023 = lean_ctor_get(x_3, 16); +lean_inc(x_1023); +lean_inc(x_1022); +lean_inc(x_1021); +lean_inc(x_1020); +lean_inc(x_1018); +lean_inc(x_1016); +lean_inc(x_1012); +lean_inc(x_1010); +lean_inc(x_1002); +lean_inc(x_1001); +lean_inc(x_1000); +lean_inc(x_999); lean_inc(x_998); lean_inc(x_997); lean_inc(x_996); +lean_inc(x_995); lean_inc(x_994); -lean_inc(x_990); -lean_inc(x_988); -lean_inc(x_980); -lean_inc(x_979); -lean_inc(x_978); -lean_inc(x_977); -lean_inc(x_976); -lean_inc(x_975); -lean_inc(x_974); -lean_inc(x_973); -lean_inc(x_972); lean_dec(x_3); -x_999 = lean_box(0); -x_1000 = 0; -x_1001 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_1001, 0, x_972); -lean_ctor_set(x_1001, 1, x_973); -lean_ctor_set(x_1001, 2, x_974); -lean_ctor_set(x_1001, 3, x_975); -lean_ctor_set(x_1001, 4, x_976); -lean_ctor_set(x_1001, 5, x_977); -lean_ctor_set(x_1001, 6, x_978); -lean_ctor_set(x_1001, 7, x_979); -lean_ctor_set(x_1001, 8, x_980); -lean_ctor_set(x_1001, 9, x_988); -lean_ctor_set(x_1001, 10, x_990); -lean_ctor_set(x_1001, 11, x_994); -lean_ctor_set(x_1001, 12, x_996); -lean_ctor_set(x_1001, 13, x_997); -lean_ctor_set(x_1001, 14, x_998); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15, x_981); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 1, x_1000); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 2, x_982); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 3, x_983); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 4, x_984); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 5, x_985); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 6, x_986); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 7, x_987); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 8, x_989); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 9, x_991); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 10, x_992); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 11, x_993); -lean_ctor_set_uint8(x_1001, sizeof(void*)*15 + 12, x_995); -x_1002 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1002, 0, x_999); -lean_ctor_set(x_1002, 1, x_2); -x_1003 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1003, 0, x_1002); -lean_ctor_set(x_1003, 1, x_1001); -x_1004 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1004, 0, x_1003); -x_1005 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1005, 0, x_1004); -lean_ctor_set(x_1005, 1, x_4); -return x_1005; +x_1024 = lean_box(0); +x_1025 = 2; +x_1026 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1026, 0, x_994); +lean_ctor_set(x_1026, 1, x_995); +lean_ctor_set(x_1026, 2, x_996); +lean_ctor_set(x_1026, 3, x_997); +lean_ctor_set(x_1026, 4, x_998); +lean_ctor_set(x_1026, 5, x_999); +lean_ctor_set(x_1026, 6, x_1000); +lean_ctor_set(x_1026, 7, x_1001); +lean_ctor_set(x_1026, 8, x_1002); +lean_ctor_set(x_1026, 9, x_1010); +lean_ctor_set(x_1026, 10, x_1012); +lean_ctor_set(x_1026, 11, x_1016); +lean_ctor_set(x_1026, 12, x_1018); +lean_ctor_set(x_1026, 13, x_1020); +lean_ctor_set(x_1026, 14, x_1021); +lean_ctor_set(x_1026, 15, x_1022); +lean_ctor_set(x_1026, 16, x_1023); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17, x_1003); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 1, x_1025); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 2, x_1004); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 3, x_1005); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 4, x_1006); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 5, x_1007); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 6, x_1008); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 7, x_1009); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 8, x_1011); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 9, x_1013); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 10, x_1014); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 11, x_1015); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 12, x_1017); +lean_ctor_set_uint8(x_1026, sizeof(void*)*17 + 13, x_1019); +x_1027 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1027, 0, x_1024); +lean_ctor_set(x_1027, 1, x_2); +x_1028 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1028, 0, x_1027); +lean_ctor_set(x_1028, 1, x_1026); +x_1029 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1029, 0, x_1028); +x_1030 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1030, 0, x_1029); +lean_ctor_set(x_1030, 1, x_4); +return x_1030; +} +} +} +else +{ +uint8_t x_1031; +x_1031 = !lean_is_exclusive(x_3); +if (x_1031 == 0) +{ +lean_object* x_1032; uint8_t x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; +x_1032 = lean_box(0); +x_1033 = 0; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 1, x_1033); +x_1034 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1034, 0, x_1032); +lean_ctor_set(x_1034, 1, x_2); +x_1035 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1035, 0, x_1034); +lean_ctor_set(x_1035, 1, x_3); +x_1036 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1036, 0, x_1035); +x_1037 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1037, 0, x_1036); +lean_ctor_set(x_1037, 1, x_4); +return x_1037; +} +else +{ +lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; uint8_t x_1047; uint8_t x_1048; uint8_t x_1049; uint8_t x_1050; uint8_t x_1051; uint8_t x_1052; uint8_t x_1053; lean_object* x_1054; uint8_t x_1055; lean_object* x_1056; uint8_t x_1057; uint8_t x_1058; uint8_t x_1059; lean_object* x_1060; uint8_t x_1061; lean_object* x_1062; uint8_t x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; uint8_t x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; +x_1038 = lean_ctor_get(x_3, 0); +x_1039 = lean_ctor_get(x_3, 1); +x_1040 = lean_ctor_get(x_3, 2); +x_1041 = lean_ctor_get(x_3, 3); +x_1042 = lean_ctor_get(x_3, 4); +x_1043 = lean_ctor_get(x_3, 5); +x_1044 = lean_ctor_get(x_3, 6); +x_1045 = lean_ctor_get(x_3, 7); +x_1046 = lean_ctor_get(x_3, 8); +x_1047 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_1048 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_1049 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_1050 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_1051 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_1052 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_1053 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_1054 = lean_ctor_get(x_3, 9); +x_1055 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_1056 = lean_ctor_get(x_3, 10); +x_1057 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_1058 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_1059 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_1060 = lean_ctor_get(x_3, 11); +x_1061 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_1062 = lean_ctor_get(x_3, 12); +x_1063 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_1064 = lean_ctor_get(x_3, 13); +x_1065 = lean_ctor_get(x_3, 14); +x_1066 = lean_ctor_get(x_3, 15); +x_1067 = lean_ctor_get(x_3, 16); +lean_inc(x_1067); +lean_inc(x_1066); +lean_inc(x_1065); +lean_inc(x_1064); +lean_inc(x_1062); +lean_inc(x_1060); +lean_inc(x_1056); +lean_inc(x_1054); +lean_inc(x_1046); +lean_inc(x_1045); +lean_inc(x_1044); +lean_inc(x_1043); +lean_inc(x_1042); +lean_inc(x_1041); +lean_inc(x_1040); +lean_inc(x_1039); +lean_inc(x_1038); +lean_dec(x_3); +x_1068 = lean_box(0); +x_1069 = 0; +x_1070 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1070, 0, x_1038); +lean_ctor_set(x_1070, 1, x_1039); +lean_ctor_set(x_1070, 2, x_1040); +lean_ctor_set(x_1070, 3, x_1041); +lean_ctor_set(x_1070, 4, x_1042); +lean_ctor_set(x_1070, 5, x_1043); +lean_ctor_set(x_1070, 6, x_1044); +lean_ctor_set(x_1070, 7, x_1045); +lean_ctor_set(x_1070, 8, x_1046); +lean_ctor_set(x_1070, 9, x_1054); +lean_ctor_set(x_1070, 10, x_1056); +lean_ctor_set(x_1070, 11, x_1060); +lean_ctor_set(x_1070, 12, x_1062); +lean_ctor_set(x_1070, 13, x_1064); +lean_ctor_set(x_1070, 14, x_1065); +lean_ctor_set(x_1070, 15, x_1066); +lean_ctor_set(x_1070, 16, x_1067); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17, x_1047); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 1, x_1069); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 2, x_1048); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 3, x_1049); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 4, x_1050); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 5, x_1051); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 6, x_1052); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 7, x_1053); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 8, x_1055); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 9, x_1057); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 10, x_1058); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 11, x_1059); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 12, x_1061); +lean_ctor_set_uint8(x_1070, sizeof(void*)*17 + 13, x_1063); +x_1071 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1071, 0, x_1068); +lean_ctor_set(x_1071, 1, x_2); +x_1072 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1072, 0, x_1071); +lean_ctor_set(x_1072, 1, x_1070); +x_1073 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1073, 0, x_1072); +x_1074 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1074, 0, x_1073); +lean_ctor_set(x_1074, 1, x_4); +return x_1074; } } } @@ -6780,6 +7054,431 @@ x_6 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption(x_5, x_2, x_3, x_4); return x_6; } } +LEAN_EXPORT uint8_t l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar(uint32_t x_1) { +_start: +{ +uint8_t x_2; uint8_t x_12; uint8_t x_18; uint32_t x_24; uint8_t x_25; +x_24 = 65; +x_25 = lean_uint32_dec_le(x_24, x_1); +if (x_25 == 0) +{ +x_18 = x_25; +goto block_23; +} +else +{ +uint32_t x_26; uint8_t x_27; +x_26 = 90; +x_27 = lean_uint32_dec_le(x_1, x_26); +x_18 = x_27; +goto block_23; +} +block_11: +{ +if (x_2 == 0) +{ +uint32_t x_3; uint8_t x_4; +x_3 = 45; +x_4 = lean_uint32_dec_eq(x_1, x_3); +if (x_4 == 0) +{ +uint32_t x_5; uint8_t x_6; +x_5 = 95; +x_6 = lean_uint32_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +uint32_t x_7; uint8_t x_8; +x_7 = 46; +x_8 = lean_uint32_dec_eq(x_1, x_7); +if (x_8 == 0) +{ +uint32_t x_9; uint8_t x_10; +x_9 = 47; +x_10 = lean_uint32_dec_eq(x_1, x_9); +return x_10; +} +else +{ +return x_8; +} +} +else +{ +return x_6; +} +} +else +{ +return x_4; +} +} +else +{ +return x_2; +} +} +block_17: +{ +if (x_12 == 0) +{ +uint32_t x_13; uint8_t x_14; +x_13 = 48; +x_14 = lean_uint32_dec_le(x_13, x_1); +if (x_14 == 0) +{ +x_2 = x_14; +goto block_11; +} +else +{ +uint32_t x_15; uint8_t x_16; +x_15 = 57; +x_16 = lean_uint32_dec_le(x_1, x_15); +x_2 = x_16; +goto block_11; +} +} +else +{ +return x_12; +} +} +block_23: +{ +if (x_18 == 0) +{ +uint32_t x_19; uint8_t x_20; +x_19 = 97; +x_20 = lean_uint32_dec_le(x_19, x_1); +if (x_20 == 0) +{ +x_12 = x_20; +goto block_17; +} +else +{ +uint32_t x_21; uint8_t x_22; +x_21 = 122; +x_22 = lean_uint32_dec_le(x_1, x_21); +x_12 = x_22; +goto block_17; +} +} +else +{ +return x_18; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar___boxed(lean_object* x_1) { +_start: +{ +uint32_t x_2; uint8_t x_3; lean_object* x_4; +x_2 = lean_unbox_uint32(x_1); +lean_dec(x_1); +x_3 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar(x_2); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT uint8_t l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = lean_nat_dec_lt(x_3, x_2); +if (x_4 == 0) +{ +lean_dec(x_3); +return x_4; +} +else +{ +uint32_t x_5; uint8_t x_6; +x_5 = lean_string_utf8_get(x_1, x_3); +x_6 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f_isValidRepoChar(x_5); +if (x_6 == 0) +{ +lean_dec(x_3); +return x_4; +} +else +{ +lean_object* x_7; +x_7 = lean_string_utf8_next(x_1, x_3); +lean_dec(x_3); +x_3 = x_7; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_string_utf8_at_end(x_1, x_3); +if (x_5 == 0) +{ +uint32_t x_6; uint32_t x_7; uint8_t x_8; +x_6 = lean_string_utf8_get(x_1, x_3); +x_7 = 47; +x_8 = lean_uint32_dec_eq(x_6, x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_string_utf8_next(x_1, x_3); +lean_dec(x_3); +x_3 = x_9; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_string_utf8_next(x_1, x_3); +x_12 = lean_string_utf8_extract(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_4); +lean_inc(x_11); +x_2 = x_11; +x_3 = x_11; +x_4 = x_13; +goto _start; +} +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_string_utf8_extract(x_1, x_2, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_4); +x_17 = l_List_reverse___redArg(x_16); +return x_17; +} +} +} +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = lean_box(0); +x_4 = l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1(x_1, x_2, x_2, x_3); +return x_4; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid repository name; must contain exactly one '/'", 53, 53); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid repository name; owner must be at most 100 characters long", 66, 66); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid repository name; owner must be at most 390 characters long", 66, 66); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid characters in repository name", 37, 37); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(lean_object* x_1) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +x_4 = lean_string_utf8_byte_size(x_1); +x_5 = lean_unsigned_to_nat(0u); +x_6 = l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0(x_1, x_4, x_5); +lean_dec(x_4); +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1(x_1); +if (lean_obj_tag(x_7) == 0) +{ +goto block_3; +} +else +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 0) +{ +lean_dec_ref(x_7); +goto block_3; +} +else +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 1); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec_ref(x_7); +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec_ref(x_8); +x_12 = lean_unsigned_to_nat(39u); +x_13 = lean_string_length(x_10); +lean_dec(x_10); +x_14 = lean_nat_dec_lt(x_12, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_unsigned_to_nat(100u); +x_16 = lean_string_length(x_11); +lean_dec(x_11); +x_17 = lean_nat_dec_lt(x_15, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_box(0); +return x_18; +} +else +{ +lean_object* x_19; +x_19 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3; +return x_19; +} +} +else +{ +lean_object* x_20; +lean_dec(x_11); +x_20 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5; +return x_20; +} +} +else +{ +lean_dec_ref(x_8); +lean_dec_ref(x_7); +goto block_3; +} +} +} +} +else +{ +lean_object* x_21; +x_21 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7; +return x_21; +} +block_3: +{ +lean_object* x_2; +x_2 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1; +return x_2; +} +} +} +LEAN_EXPORT lean_object* l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; +x_4 = l_String_anyAux___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__0(x_1, x_2, x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_5 = lean_box(x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_String_splitAux___at___String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1_spec__1(x_1, x_2, x_3, x_4); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_String_split___at_____private_Lake_CLI_Main_0__Lake_validateRepo_x3f_spec__1(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_1); +lean_dec_ref(x_1); +return x_2; +} +} static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__0() { _start: { @@ -6928,7 +7627,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--rev", 5, 5); +x_1 = lean_mk_string_unchecked("--platform", 10, 10); return x_1; } } @@ -6936,7 +7635,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--max-revs", 10, 10); +x_1 = lean_mk_string_unchecked("--toolchain", 11, 11); return x_1; } } @@ -6944,7 +7643,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--log-level", 11, 11); +x_1 = lean_mk_string_unchecked("--rev", 5, 5); return x_1; } } @@ -6952,7 +7651,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--fail-level", 12, 12); +x_1 = lean_mk_string_unchecked("--max-revs", 10, 10); return x_1; } } @@ -6960,7 +7659,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--ansi", 6, 6); +x_1 = lean_mk_string_unchecked("--log-level", 11, 11); return x_1; } } @@ -6968,7 +7667,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--no-ansi", 9, 9); +x_1 = lean_mk_string_unchecked("--fail-level", 12, 12); return x_1; } } @@ -6976,7 +7675,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--packages", 10, 10); +x_1 = lean_mk_string_unchecked("--ansi", 6, 6); return x_1; } } @@ -6984,7 +7683,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--dir", 5, 5); +x_1 = lean_mk_string_unchecked("--no-ansi", 9, 9); return x_1; } } @@ -6992,7 +7691,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--file", 6, 6); +x_1 = lean_mk_string_unchecked("--packages", 10, 10); return x_1; } } @@ -7000,7 +7699,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--help", 6, 6); +x_1 = lean_mk_string_unchecked("--dir", 5, 5); return x_1; } } @@ -7008,13 +7707,29 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("--", 2, 2); +x_1 = lean_mk_string_unchecked("--file", 6, 6); return x_1; } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("--help", 6, 6); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__30() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("--", 2, 2); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = lean_box(0); @@ -7024,7 +7739,7 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__30() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32() { _start: { lean_object* x_1; @@ -7032,7 +7747,7 @@ x_1 = lean_mk_string_unchecked("package overrides file", 22, 22); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33() { _start: { lean_object* x_1; @@ -7040,39 +7755,39 @@ x_1 = lean_mk_string_unchecked("log level", 9, 9); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; -x_2 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__21; -x_3 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; -x_2 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__20; -x_3 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; +x_2 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__23; +x_3 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; +x_2 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__22; +x_3 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_unchecked("number of revisions", 19, 19); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__37() { _start: { lean_object* x_1; @@ -7080,11 +7795,11 @@ x_1 = lean_mk_string_unchecked("argument to `--max-revs` should be a natural num return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35; +x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__37; x_2 = 3; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -7092,7 +7807,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__37() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39() { _start: { lean_object* x_1; @@ -7100,15 +7815,71 @@ x_1 = lean_mk_string_unchecked("Git revision", 12, 12); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("repository", 10, 10); +x_1 = lean_mk_string_unchecked("cache toolchain", 15, 15); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid toolchain version; toolchain is expected to be at most 256 characters long", 82, 82); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41; +x_2 = 3; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("cache platform", 14, 14); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid platform; platform is expected to be at most 100 characters long", 72, 72); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44; +x_2 = 3; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("GitHub repository", 17, 17); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47() { _start: { lean_object* x_1; @@ -7273,3017 +8044,3026 @@ x_61 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__28; x_62 = lean_string_dec_eq(x_1, x_61); if (x_62 == 0) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec_ref(x_3); -lean_dec(x_2); -x_63 = lean_alloc_ctor(6, 1, 0); -lean_ctor_set(x_63, 0, x_1); -x_64 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_64, 0, x_63); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_4); -return x_65; -} -else +lean_object* x_63; uint8_t x_64; +x_63 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_64 = lean_string_dec_eq(x_1, x_63); +if (x_64 == 0) { -uint8_t x_66; -lean_dec_ref(x_1); -x_66 = !lean_is_exclusive(x_3); +lean_object* x_65; uint8_t x_66; +x_65 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__30; +x_66 = lean_string_dec_eq(x_1, x_65); if (x_66 == 0) { -lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_67 = lean_ctor_get(x_3, 8); -lean_dec(x_67); -lean_ctor_set(x_3, 8, x_2); -x_68 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +lean_object* x_67; lean_object* x_68; lean_object* x_69; +lean_dec_ref(x_3); +lean_dec(x_2); +x_67 = lean_alloc_ctor(6, 1, 0); +lean_ctor_set(x_67, 0, x_1); +x_68 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_68, 0, x_67); x_69 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_3); -x_70 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_70, 0, x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_4); -return x_71; +lean_ctor_set(x_69, 1, x_4); +return x_69; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; uint8_t x_91; uint8_t x_92; uint8_t x_93; lean_object* x_94; uint8_t x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_72 = lean_ctor_get(x_3, 0); -x_73 = lean_ctor_get(x_3, 1); -x_74 = lean_ctor_get(x_3, 2); -x_75 = lean_ctor_get(x_3, 3); -x_76 = lean_ctor_get(x_3, 4); -x_77 = lean_ctor_get(x_3, 5); -x_78 = lean_ctor_get(x_3, 6); -x_79 = lean_ctor_get(x_3, 7); -x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_81 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_82 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_83 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_84 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_85 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_86 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_87 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_88 = lean_ctor_get(x_3, 9); -x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_90 = lean_ctor_get(x_3, 10); -x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_92 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_93 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_94 = lean_ctor_get(x_3, 11); -x_95 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_96 = lean_ctor_get(x_3, 12); -x_97 = lean_ctor_get(x_3, 13); -x_98 = lean_ctor_get(x_3, 14); +uint8_t x_70; +lean_dec_ref(x_1); +x_70 = !lean_is_exclusive(x_3); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_71 = lean_ctor_get(x_3, 8); +lean_dec(x_71); +lean_ctor_set(x_3, 8, x_2); +x_72 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_3); +x_74 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_74, 0, x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_4); +return x_75; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; uint8_t x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; uint8_t x_95; uint8_t x_96; uint8_t x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_76 = lean_ctor_get(x_3, 0); +x_77 = lean_ctor_get(x_3, 1); +x_78 = lean_ctor_get(x_3, 2); +x_79 = lean_ctor_get(x_3, 3); +x_80 = lean_ctor_get(x_3, 4); +x_81 = lean_ctor_get(x_3, 5); +x_82 = lean_ctor_get(x_3, 6); +x_83 = lean_ctor_get(x_3, 7); +x_84 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_85 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_86 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_87 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_88 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_89 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_92 = lean_ctor_get(x_3, 9); +x_93 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_94 = lean_ctor_get(x_3, 10); +x_95 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_96 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_97 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_98 = lean_ctor_get(x_3, 11); +x_99 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_100 = lean_ctor_get(x_3, 12); +x_101 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_102 = lean_ctor_get(x_3, 13); +x_103 = lean_ctor_get(x_3, 14); +x_104 = lean_ctor_get(x_3, 15); +x_105 = lean_ctor_get(x_3, 16); +lean_inc(x_105); +lean_inc(x_104); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_100); lean_inc(x_98); -lean_inc(x_97); -lean_inc(x_96); lean_inc(x_94); -lean_inc(x_90); -lean_inc(x_88); +lean_inc(x_92); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); lean_inc(x_79); lean_inc(x_78); lean_inc(x_77); lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); lean_dec(x_3); -x_99 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_99, 0, x_72); -lean_ctor_set(x_99, 1, x_73); -lean_ctor_set(x_99, 2, x_74); -lean_ctor_set(x_99, 3, x_75); -lean_ctor_set(x_99, 4, x_76); -lean_ctor_set(x_99, 5, x_77); -lean_ctor_set(x_99, 6, x_78); -lean_ctor_set(x_99, 7, x_79); -lean_ctor_set(x_99, 8, x_2); -lean_ctor_set(x_99, 9, x_88); -lean_ctor_set(x_99, 10, x_90); -lean_ctor_set(x_99, 11, x_94); -lean_ctor_set(x_99, 12, x_96); -lean_ctor_set(x_99, 13, x_97); -lean_ctor_set(x_99, 14, x_98); -lean_ctor_set_uint8(x_99, sizeof(void*)*15, x_80); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 1, x_81); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 2, x_82); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 3, x_83); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 4, x_84); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 5, x_85); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 6, x_86); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 7, x_87); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 8, x_89); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 9, x_91); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 10, x_92); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 11, x_93); -lean_ctor_set_uint8(x_99, sizeof(void*)*15 + 12, x_95); -x_100 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_99); -x_102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_102, 0, x_101); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_4); -return x_103; -} -} -} -else -{ -uint8_t x_104; -lean_dec_ref(x_1); -x_104 = !lean_is_exclusive(x_3); -if (x_104 == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_105 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15, x_60); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_2); -x_107 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_3); -x_108 = lean_alloc_ctor(1, 1, 0); +x_106 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_106, 0, x_76); +lean_ctor_set(x_106, 1, x_77); +lean_ctor_set(x_106, 2, x_78); +lean_ctor_set(x_106, 3, x_79); +lean_ctor_set(x_106, 4, x_80); +lean_ctor_set(x_106, 5, x_81); +lean_ctor_set(x_106, 6, x_82); +lean_ctor_set(x_106, 7, x_83); +lean_ctor_set(x_106, 8, x_2); +lean_ctor_set(x_106, 9, x_92); +lean_ctor_set(x_106, 10, x_94); +lean_ctor_set(x_106, 11, x_98); +lean_ctor_set(x_106, 12, x_100); +lean_ctor_set(x_106, 13, x_102); +lean_ctor_set(x_106, 14, x_103); +lean_ctor_set(x_106, 15, x_104); +lean_ctor_set(x_106, 16, x_105); +lean_ctor_set_uint8(x_106, sizeof(void*)*17, x_84); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 1, x_85); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 2, x_86); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 3, x_87); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 4, x_88); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 5, x_89); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 6, x_90); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 7, x_91); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 8, x_93); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 9, x_95); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 10, x_96); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 11, x_97); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 12, x_99); +lean_ctor_set_uint8(x_106, sizeof(void*)*17 + 13, x_101); +x_107 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; +x_108 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_108, 0, x_107); -x_109 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 1, x_106); +x_109 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_109, 0, x_108); -lean_ctor_set(x_109, 1, x_4); -return x_109; +x_110 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_4); +return x_110; +} +} } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; lean_object* x_126; uint8_t x_127; lean_object* x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_110 = lean_ctor_get(x_3, 0); -x_111 = lean_ctor_get(x_3, 1); -x_112 = lean_ctor_get(x_3, 2); -x_113 = lean_ctor_get(x_3, 3); -x_114 = lean_ctor_get(x_3, 4); -x_115 = lean_ctor_get(x_3, 5); -x_116 = lean_ctor_get(x_3, 6); -x_117 = lean_ctor_get(x_3, 7); -x_118 = lean_ctor_get(x_3, 8); -x_119 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_120 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_121 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_122 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_123 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_124 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_126 = lean_ctor_get(x_3, 9); -x_127 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_128 = lean_ctor_get(x_3, 10); -x_129 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_130 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_131 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_132 = lean_ctor_get(x_3, 11); -x_133 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_134 = lean_ctor_get(x_3, 12); -x_135 = lean_ctor_get(x_3, 13); -x_136 = lean_ctor_get(x_3, 14); -lean_inc(x_136); +uint8_t x_111; +lean_dec_ref(x_1); +x_111 = !lean_is_exclusive(x_3); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_112 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17, x_64); +x_113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_2); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_3); +x_115 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_115, 0, x_114); +x_116 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_116, 0, x_115); +lean_ctor_set(x_116, 1, x_4); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; lean_object* x_139; uint8_t x_140; lean_object* x_141; uint8_t x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_117 = lean_ctor_get(x_3, 0); +x_118 = lean_ctor_get(x_3, 1); +x_119 = lean_ctor_get(x_3, 2); +x_120 = lean_ctor_get(x_3, 3); +x_121 = lean_ctor_get(x_3, 4); +x_122 = lean_ctor_get(x_3, 5); +x_123 = lean_ctor_get(x_3, 6); +x_124 = lean_ctor_get(x_3, 7); +x_125 = lean_ctor_get(x_3, 8); +x_126 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_127 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_128 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_129 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_130 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_131 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_132 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_133 = lean_ctor_get(x_3, 9); +x_134 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_135 = lean_ctor_get(x_3, 10); +x_136 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_137 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_138 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_139 = lean_ctor_get(x_3, 11); +x_140 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_141 = lean_ctor_get(x_3, 12); +x_142 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_143 = lean_ctor_get(x_3, 13); +x_144 = lean_ctor_get(x_3, 14); +x_145 = lean_ctor_get(x_3, 15); +x_146 = lean_ctor_get(x_3, 16); +lean_inc(x_146); +lean_inc(x_145); +lean_inc(x_144); +lean_inc(x_143); +lean_inc(x_141); +lean_inc(x_139); lean_inc(x_135); -lean_inc(x_134); -lean_inc(x_132); -lean_inc(x_128); -lean_inc(x_126); +lean_inc(x_133); +lean_inc(x_125); +lean_inc(x_124); +lean_inc(x_123); +lean_inc(x_122); +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); lean_inc(x_118); lean_inc(x_117); -lean_inc(x_116); -lean_inc(x_115); -lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); -lean_inc(x_111); -lean_inc(x_110); lean_dec(x_3); -x_137 = lean_box(0); -x_138 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_138, 0, x_110); -lean_ctor_set(x_138, 1, x_111); -lean_ctor_set(x_138, 2, x_112); -lean_ctor_set(x_138, 3, x_113); -lean_ctor_set(x_138, 4, x_114); -lean_ctor_set(x_138, 5, x_115); -lean_ctor_set(x_138, 6, x_116); -lean_ctor_set(x_138, 7, x_117); -lean_ctor_set(x_138, 8, x_118); -lean_ctor_set(x_138, 9, x_126); -lean_ctor_set(x_138, 10, x_128); -lean_ctor_set(x_138, 11, x_132); -lean_ctor_set(x_138, 12, x_134); -lean_ctor_set(x_138, 13, x_135); -lean_ctor_set(x_138, 14, x_136); -lean_ctor_set_uint8(x_138, sizeof(void*)*15, x_60); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 1, x_119); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 2, x_120); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 3, x_121); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 4, x_122); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 5, x_123); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 6, x_124); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 7, x_125); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 8, x_127); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 9, x_129); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 10, x_130); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 11, x_131); -lean_ctor_set_uint8(x_138, sizeof(void*)*15 + 12, x_133); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_2); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_138); -x_141 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_141, 0, x_140); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_4); -return x_142; -} -} -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec_ref(x_1); -x_143 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; -x_144 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_57, x_143, x_2, x_3, x_4); -x_145 = lean_ctor_get(x_144, 0); -lean_inc(x_145); -if (lean_obj_tag(x_145) == 0) -{ -uint8_t x_146; -x_146 = !lean_is_exclusive(x_144); -if (x_146 == 0) -{ -lean_object* x_147; uint8_t x_148; -x_147 = lean_ctor_get(x_144, 0); -lean_dec(x_147); -x_148 = !lean_is_exclusive(x_145); -if (x_148 == 0) -{ -return x_144; -} -else -{ -lean_object* x_149; lean_object* x_150; -x_149 = lean_ctor_get(x_145, 0); -lean_inc(x_149); -lean_dec(x_145); -x_150 = lean_alloc_ctor(0, 1, 0); +x_147 = lean_box(0); +x_148 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_148, 0, x_117); +lean_ctor_set(x_148, 1, x_118); +lean_ctor_set(x_148, 2, x_119); +lean_ctor_set(x_148, 3, x_120); +lean_ctor_set(x_148, 4, x_121); +lean_ctor_set(x_148, 5, x_122); +lean_ctor_set(x_148, 6, x_123); +lean_ctor_set(x_148, 7, x_124); +lean_ctor_set(x_148, 8, x_125); +lean_ctor_set(x_148, 9, x_133); +lean_ctor_set(x_148, 10, x_135); +lean_ctor_set(x_148, 11, x_139); +lean_ctor_set(x_148, 12, x_141); +lean_ctor_set(x_148, 13, x_143); +lean_ctor_set(x_148, 14, x_144); +lean_ctor_set(x_148, 15, x_145); +lean_ctor_set(x_148, 16, x_146); +lean_ctor_set_uint8(x_148, sizeof(void*)*17, x_64); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 1, x_126); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 2, x_127); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 3, x_128); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 4, x_129); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 5, x_130); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 6, x_131); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 7, x_132); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 8, x_134); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 9, x_136); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 10, x_137); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 11, x_138); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 12, x_140); +lean_ctor_set_uint8(x_148, sizeof(void*)*17 + 13, x_142); +x_149 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_149, 0, x_147); +lean_ctor_set(x_149, 1, x_2); +x_150 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_144, 0, x_150); -return x_144; +lean_ctor_set(x_150, 1, x_148); +x_151 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_151, 0, x_150); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_4); +return x_152; +} } } else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_151 = lean_ctor_get(x_144, 1); -lean_inc(x_151); -lean_dec(x_144); -x_152 = lean_ctor_get(x_145, 0); -lean_inc(x_152); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - x_153 = x_145; -} else { - lean_dec_ref(x_145); - x_153 = lean_box(0); -} -if (lean_is_scalar(x_153)) { - x_154 = lean_alloc_ctor(0, 1, 0); -} else { - x_154 = x_153; -} -lean_ctor_set(x_154, 0, x_152); -x_155 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_151); -return x_155; -} -} -else +lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec_ref(x_1); +x_153 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; +x_154 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_61, x_153, x_2, x_3, x_4); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +if (lean_obj_tag(x_155) == 0) { uint8_t x_156; -x_156 = !lean_is_exclusive(x_145); +x_156 = !lean_is_exclusive(x_154); if (x_156 == 0) { lean_object* x_157; uint8_t x_158; -x_157 = lean_ctor_get(x_145, 0); -x_158 = !lean_is_exclusive(x_157); +x_157 = lean_ctor_get(x_154, 0); +lean_dec(x_157); +x_158 = !lean_is_exclusive(x_155); if (x_158 == 0) { -uint8_t x_159; -x_159 = !lean_is_exclusive(x_144); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; uint8_t x_163; -x_160 = lean_ctor_get(x_157, 0); -x_161 = lean_ctor_get(x_157, 1); -x_162 = lean_ctor_get(x_144, 0); -lean_dec(x_162); -x_163 = !lean_is_exclusive(x_160); -if (x_163 == 0) -{ -uint8_t x_164; -x_164 = !lean_is_exclusive(x_161); -if (x_164 == 0) -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_165 = lean_ctor_get(x_160, 0); -x_166 = lean_ctor_get(x_161, 2); -lean_dec(x_166); -x_167 = lean_box(0); -lean_ctor_set(x_161, 2, x_165); -lean_ctor_set(x_160, 0, x_167); -return x_144; +return x_154; } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; uint8_t x_178; uint8_t x_179; uint8_t x_180; uint8_t x_181; uint8_t x_182; uint8_t x_183; uint8_t x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; lean_object* x_191; uint8_t x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_168 = lean_ctor_get(x_160, 0); -x_169 = lean_ctor_get(x_161, 0); -x_170 = lean_ctor_get(x_161, 1); -x_171 = lean_ctor_get(x_161, 3); -x_172 = lean_ctor_get(x_161, 4); -x_173 = lean_ctor_get(x_161, 5); -x_174 = lean_ctor_get(x_161, 6); -x_175 = lean_ctor_get(x_161, 7); -x_176 = lean_ctor_get(x_161, 8); -x_177 = lean_ctor_get_uint8(x_161, sizeof(void*)*15); -x_178 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 1); -x_179 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 2); -x_180 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 3); -x_181 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 4); -x_182 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 5); -x_183 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 6); -x_184 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 7); -x_185 = lean_ctor_get(x_161, 9); -x_186 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 8); -x_187 = lean_ctor_get(x_161, 10); -x_188 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 9); -x_189 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 10); -x_190 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 11); -x_191 = lean_ctor_get(x_161, 11); -x_192 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 12); -x_193 = lean_ctor_get(x_161, 12); -x_194 = lean_ctor_get(x_161, 13); -x_195 = lean_ctor_get(x_161, 14); -lean_inc(x_195); -lean_inc(x_194); -lean_inc(x_193); -lean_inc(x_191); -lean_inc(x_187); -lean_inc(x_185); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_inc(x_173); -lean_inc(x_172); -lean_inc(x_171); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_161); -x_196 = lean_box(0); -x_197 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_197, 0, x_169); -lean_ctor_set(x_197, 1, x_170); -lean_ctor_set(x_197, 2, x_168); -lean_ctor_set(x_197, 3, x_171); -lean_ctor_set(x_197, 4, x_172); -lean_ctor_set(x_197, 5, x_173); -lean_ctor_set(x_197, 6, x_174); -lean_ctor_set(x_197, 7, x_175); -lean_ctor_set(x_197, 8, x_176); -lean_ctor_set(x_197, 9, x_185); -lean_ctor_set(x_197, 10, x_187); -lean_ctor_set(x_197, 11, x_191); -lean_ctor_set(x_197, 12, x_193); -lean_ctor_set(x_197, 13, x_194); -lean_ctor_set(x_197, 14, x_195); -lean_ctor_set_uint8(x_197, sizeof(void*)*15, x_177); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 1, x_178); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 2, x_179); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 3, x_180); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 4, x_181); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 5, x_182); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 6, x_183); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 7, x_184); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 8, x_186); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 9, x_188); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 10, x_189); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 11, x_190); -lean_ctor_set_uint8(x_197, sizeof(void*)*15 + 12, x_192); -lean_ctor_set(x_160, 0, x_196); -lean_ctor_set(x_157, 1, x_197); -return x_144; +lean_object* x_159; lean_object* x_160; +x_159 = lean_ctor_get(x_155, 0); +lean_inc(x_159); +lean_dec(x_155); +x_160 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_154, 0, x_160); +return x_154; } } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; uint8_t x_217; lean_object* x_218; uint8_t x_219; uint8_t x_220; uint8_t x_221; lean_object* x_222; uint8_t x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_198 = lean_ctor_get(x_160, 0); -x_199 = lean_ctor_get(x_160, 1); -lean_inc(x_199); -lean_inc(x_198); -lean_dec(x_160); -x_200 = lean_ctor_get(x_161, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_161, 1); -lean_inc_ref(x_201); -x_202 = lean_ctor_get(x_161, 3); -lean_inc(x_202); -x_203 = lean_ctor_get(x_161, 4); -lean_inc(x_203); -x_204 = lean_ctor_get(x_161, 5); -lean_inc(x_204); -x_205 = lean_ctor_get(x_161, 6); -lean_inc(x_205); -x_206 = lean_ctor_get(x_161, 7); -lean_inc_ref(x_206); -x_207 = lean_ctor_get(x_161, 8); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_161 = lean_ctor_get(x_154, 1); +lean_inc(x_161); +lean_dec(x_154); +x_162 = lean_ctor_get(x_155, 0); +lean_inc(x_162); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + x_163 = x_155; +} else { + lean_dec_ref(x_155); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(0, 1, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_162); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_161); +return x_165; +} +} +else +{ +uint8_t x_166; +x_166 = !lean_is_exclusive(x_155); +if (x_166 == 0) +{ +lean_object* x_167; uint8_t x_168; +x_167 = lean_ctor_get(x_155, 0); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) +{ +uint8_t x_169; +x_169 = !lean_is_exclusive(x_154); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_170 = lean_ctor_get(x_167, 0); +x_171 = lean_ctor_get(x_167, 1); +x_172 = lean_ctor_get(x_154, 0); +lean_dec(x_172); +x_173 = !lean_is_exclusive(x_170); +if (x_173 == 0) +{ +uint8_t x_174; +x_174 = !lean_is_exclusive(x_171); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_175 = lean_ctor_get(x_170, 0); +x_176 = lean_ctor_get(x_171, 2); +lean_dec(x_176); +x_177 = lean_box(0); +lean_ctor_set(x_171, 2, x_175); +lean_ctor_set(x_170, 0, x_177); +return x_154; +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; uint8_t x_188; uint8_t x_189; uint8_t x_190; uint8_t x_191; uint8_t x_192; uint8_t x_193; uint8_t x_194; lean_object* x_195; uint8_t x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; uint8_t x_200; lean_object* x_201; uint8_t x_202; lean_object* x_203; uint8_t x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_178 = lean_ctor_get(x_170, 0); +x_179 = lean_ctor_get(x_171, 0); +x_180 = lean_ctor_get(x_171, 1); +x_181 = lean_ctor_get(x_171, 3); +x_182 = lean_ctor_get(x_171, 4); +x_183 = lean_ctor_get(x_171, 5); +x_184 = lean_ctor_get(x_171, 6); +x_185 = lean_ctor_get(x_171, 7); +x_186 = lean_ctor_get(x_171, 8); +x_187 = lean_ctor_get_uint8(x_171, sizeof(void*)*17); +x_188 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 1); +x_189 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 2); +x_190 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 3); +x_191 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 4); +x_192 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 5); +x_193 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 6); +x_194 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 7); +x_195 = lean_ctor_get(x_171, 9); +x_196 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 8); +x_197 = lean_ctor_get(x_171, 10); +x_198 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 9); +x_199 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 10); +x_200 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 11); +x_201 = lean_ctor_get(x_171, 11); +x_202 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 12); +x_203 = lean_ctor_get(x_171, 12); +x_204 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 13); +x_205 = lean_ctor_get(x_171, 13); +x_206 = lean_ctor_get(x_171, 14); +x_207 = lean_ctor_get(x_171, 15); +x_208 = lean_ctor_get(x_171, 16); +lean_inc(x_208); lean_inc(x_207); -x_208 = lean_ctor_get_uint8(x_161, sizeof(void*)*15); -x_209 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 1); -x_210 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 2); -x_211 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 3); -x_212 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 4); -x_213 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 5); -x_214 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 6); -x_215 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 7); -x_216 = lean_ctor_get(x_161, 9); +lean_inc(x_206); +lean_inc(x_205); +lean_inc(x_203); +lean_inc(x_201); +lean_inc(x_197); +lean_inc(x_195); +lean_inc(x_186); +lean_inc(x_185); +lean_inc(x_184); +lean_inc(x_183); +lean_inc(x_182); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_dec(x_171); +x_209 = lean_box(0); +x_210 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_210, 0, x_179); +lean_ctor_set(x_210, 1, x_180); +lean_ctor_set(x_210, 2, x_178); +lean_ctor_set(x_210, 3, x_181); +lean_ctor_set(x_210, 4, x_182); +lean_ctor_set(x_210, 5, x_183); +lean_ctor_set(x_210, 6, x_184); +lean_ctor_set(x_210, 7, x_185); +lean_ctor_set(x_210, 8, x_186); +lean_ctor_set(x_210, 9, x_195); +lean_ctor_set(x_210, 10, x_197); +lean_ctor_set(x_210, 11, x_201); +lean_ctor_set(x_210, 12, x_203); +lean_ctor_set(x_210, 13, x_205); +lean_ctor_set(x_210, 14, x_206); +lean_ctor_set(x_210, 15, x_207); +lean_ctor_set(x_210, 16, x_208); +lean_ctor_set_uint8(x_210, sizeof(void*)*17, x_187); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 1, x_188); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 2, x_189); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 3, x_190); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 4, x_191); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 5, x_192); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 6, x_193); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 7, x_194); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 8, x_196); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 9, x_198); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 10, x_199); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 11, x_200); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 12, x_202); +lean_ctor_set_uint8(x_210, sizeof(void*)*17 + 13, x_204); +lean_ctor_set(x_170, 0, x_209); +lean_ctor_set(x_167, 1, x_210); +return x_154; +} +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; uint8_t x_221; uint8_t x_222; uint8_t x_223; uint8_t x_224; uint8_t x_225; uint8_t x_226; uint8_t x_227; uint8_t x_228; lean_object* x_229; uint8_t x_230; lean_object* x_231; uint8_t x_232; uint8_t x_233; uint8_t x_234; lean_object* x_235; uint8_t x_236; lean_object* x_237; uint8_t x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_211 = lean_ctor_get(x_170, 0); +x_212 = lean_ctor_get(x_170, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_170); +x_213 = lean_ctor_get(x_171, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_171, 1); +lean_inc_ref(x_214); +x_215 = lean_ctor_get(x_171, 3); +lean_inc(x_215); +x_216 = lean_ctor_get(x_171, 4); lean_inc(x_216); -x_217 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 8); -x_218 = lean_ctor_get(x_161, 10); +x_217 = lean_ctor_get(x_171, 5); +lean_inc(x_217); +x_218 = lean_ctor_get(x_171, 6); lean_inc(x_218); -x_219 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 9); -x_220 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 10); -x_221 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 11); -x_222 = lean_ctor_get(x_161, 11); -lean_inc(x_222); -x_223 = lean_ctor_get_uint8(x_161, sizeof(void*)*15 + 12); -x_224 = lean_ctor_get(x_161, 12); -lean_inc(x_224); -x_225 = lean_ctor_get(x_161, 13); -lean_inc(x_225); -x_226 = lean_ctor_get(x_161, 14); -lean_inc(x_226); -if (lean_is_exclusive(x_161)) { - lean_ctor_release(x_161, 0); - lean_ctor_release(x_161, 1); - lean_ctor_release(x_161, 2); - lean_ctor_release(x_161, 3); - lean_ctor_release(x_161, 4); - lean_ctor_release(x_161, 5); - lean_ctor_release(x_161, 6); - lean_ctor_release(x_161, 7); - lean_ctor_release(x_161, 8); - lean_ctor_release(x_161, 9); - lean_ctor_release(x_161, 10); - lean_ctor_release(x_161, 11); - lean_ctor_release(x_161, 12); - lean_ctor_release(x_161, 13); - lean_ctor_release(x_161, 14); - x_227 = x_161; -} else { - lean_dec_ref(x_161); - x_227 = lean_box(0); -} -x_228 = lean_box(0); -if (lean_is_scalar(x_227)) { - x_229 = lean_alloc_ctor(0, 15, 13); -} else { - x_229 = x_227; -} -lean_ctor_set(x_229, 0, x_200); -lean_ctor_set(x_229, 1, x_201); -lean_ctor_set(x_229, 2, x_198); -lean_ctor_set(x_229, 3, x_202); -lean_ctor_set(x_229, 4, x_203); -lean_ctor_set(x_229, 5, x_204); -lean_ctor_set(x_229, 6, x_205); -lean_ctor_set(x_229, 7, x_206); -lean_ctor_set(x_229, 8, x_207); -lean_ctor_set(x_229, 9, x_216); -lean_ctor_set(x_229, 10, x_218); -lean_ctor_set(x_229, 11, x_222); -lean_ctor_set(x_229, 12, x_224); -lean_ctor_set(x_229, 13, x_225); -lean_ctor_set(x_229, 14, x_226); -lean_ctor_set_uint8(x_229, sizeof(void*)*15, x_208); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 1, x_209); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 2, x_210); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 3, x_211); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 4, x_212); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 5, x_213); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 6, x_214); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 7, x_215); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 8, x_217); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 9, x_219); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 10, x_220); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 11, x_221); -lean_ctor_set_uint8(x_229, sizeof(void*)*15 + 12, x_223); -x_230 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_199); -lean_ctor_set(x_157, 1, x_229); -lean_ctor_set(x_157, 0, x_230); -return x_144; -} -} -else -{ -lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; uint8_t x_245; uint8_t x_246; uint8_t x_247; uint8_t x_248; uint8_t x_249; uint8_t x_250; uint8_t x_251; uint8_t x_252; lean_object* x_253; uint8_t x_254; lean_object* x_255; uint8_t x_256; uint8_t x_257; uint8_t x_258; lean_object* x_259; uint8_t x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_231 = lean_ctor_get(x_157, 0); -x_232 = lean_ctor_get(x_157, 1); -x_233 = lean_ctor_get(x_144, 1); -lean_inc(x_233); -lean_dec(x_144); -x_234 = lean_ctor_get(x_231, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_231, 1); +x_219 = lean_ctor_get(x_171, 7); +lean_inc_ref(x_219); +x_220 = lean_ctor_get(x_171, 8); +lean_inc(x_220); +x_221 = lean_ctor_get_uint8(x_171, sizeof(void*)*17); +x_222 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 1); +x_223 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 2); +x_224 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 3); +x_225 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 4); +x_226 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 5); +x_227 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 6); +x_228 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 7); +x_229 = lean_ctor_get(x_171, 9); +lean_inc(x_229); +x_230 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 8); +x_231 = lean_ctor_get(x_171, 10); +lean_inc(x_231); +x_232 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 9); +x_233 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 10); +x_234 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 11); +x_235 = lean_ctor_get(x_171, 11); lean_inc(x_235); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - x_236 = x_231; -} else { - lean_dec_ref(x_231); - x_236 = lean_box(0); -} -x_237 = lean_ctor_get(x_232, 0); +x_236 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 12); +x_237 = lean_ctor_get(x_171, 12); lean_inc(x_237); -x_238 = lean_ctor_get(x_232, 1); -lean_inc_ref(x_238); -x_239 = lean_ctor_get(x_232, 3); +x_238 = lean_ctor_get_uint8(x_171, sizeof(void*)*17 + 13); +x_239 = lean_ctor_get(x_171, 13); lean_inc(x_239); -x_240 = lean_ctor_get(x_232, 4); +x_240 = lean_ctor_get(x_171, 14); lean_inc(x_240); -x_241 = lean_ctor_get(x_232, 5); +x_241 = lean_ctor_get(x_171, 15); lean_inc(x_241); -x_242 = lean_ctor_get(x_232, 6); +x_242 = lean_ctor_get(x_171, 16); lean_inc(x_242); -x_243 = lean_ctor_get(x_232, 7); -lean_inc_ref(x_243); -x_244 = lean_ctor_get(x_232, 8); -lean_inc(x_244); -x_245 = lean_ctor_get_uint8(x_232, sizeof(void*)*15); -x_246 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 1); -x_247 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 2); -x_248 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 3); -x_249 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 4); -x_250 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 5); -x_251 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 6); -x_252 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 7); -x_253 = lean_ctor_get(x_232, 9); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + lean_ctor_release(x_171, 2); + lean_ctor_release(x_171, 3); + lean_ctor_release(x_171, 4); + lean_ctor_release(x_171, 5); + lean_ctor_release(x_171, 6); + lean_ctor_release(x_171, 7); + lean_ctor_release(x_171, 8); + lean_ctor_release(x_171, 9); + lean_ctor_release(x_171, 10); + lean_ctor_release(x_171, 11); + lean_ctor_release(x_171, 12); + lean_ctor_release(x_171, 13); + lean_ctor_release(x_171, 14); + lean_ctor_release(x_171, 15); + lean_ctor_release(x_171, 16); + x_243 = x_171; +} else { + lean_dec_ref(x_171); + x_243 = lean_box(0); +} +x_244 = lean_box(0); +if (lean_is_scalar(x_243)) { + x_245 = lean_alloc_ctor(0, 17, 14); +} else { + x_245 = x_243; +} +lean_ctor_set(x_245, 0, x_213); +lean_ctor_set(x_245, 1, x_214); +lean_ctor_set(x_245, 2, x_211); +lean_ctor_set(x_245, 3, x_215); +lean_ctor_set(x_245, 4, x_216); +lean_ctor_set(x_245, 5, x_217); +lean_ctor_set(x_245, 6, x_218); +lean_ctor_set(x_245, 7, x_219); +lean_ctor_set(x_245, 8, x_220); +lean_ctor_set(x_245, 9, x_229); +lean_ctor_set(x_245, 10, x_231); +lean_ctor_set(x_245, 11, x_235); +lean_ctor_set(x_245, 12, x_237); +lean_ctor_set(x_245, 13, x_239); +lean_ctor_set(x_245, 14, x_240); +lean_ctor_set(x_245, 15, x_241); +lean_ctor_set(x_245, 16, x_242); +lean_ctor_set_uint8(x_245, sizeof(void*)*17, x_221); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 1, x_222); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 2, x_223); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 3, x_224); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 4, x_225); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 5, x_226); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 6, x_227); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 7, x_228); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 8, x_230); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 9, x_232); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 10, x_233); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 11, x_234); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 12, x_236); +lean_ctor_set_uint8(x_245, sizeof(void*)*17 + 13, x_238); +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_212); +lean_ctor_set(x_167, 1, x_245); +lean_ctor_set(x_167, 0, x_246); +return x_154; +} +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; uint8_t x_262; uint8_t x_263; uint8_t x_264; uint8_t x_265; uint8_t x_266; uint8_t x_267; uint8_t x_268; lean_object* x_269; uint8_t x_270; lean_object* x_271; uint8_t x_272; uint8_t x_273; uint8_t x_274; lean_object* x_275; uint8_t x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; +x_247 = lean_ctor_get(x_167, 0); +x_248 = lean_ctor_get(x_167, 1); +x_249 = lean_ctor_get(x_154, 1); +lean_inc(x_249); +lean_dec(x_154); +x_250 = lean_ctor_get(x_247, 0); +lean_inc(x_250); +x_251 = lean_ctor_get(x_247, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_247)) { + lean_ctor_release(x_247, 0); + lean_ctor_release(x_247, 1); + x_252 = x_247; +} else { + lean_dec_ref(x_247); + x_252 = lean_box(0); +} +x_253 = lean_ctor_get(x_248, 0); lean_inc(x_253); -x_254 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 8); -x_255 = lean_ctor_get(x_232, 10); +x_254 = lean_ctor_get(x_248, 1); +lean_inc_ref(x_254); +x_255 = lean_ctor_get(x_248, 3); lean_inc(x_255); -x_256 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 9); -x_257 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 10); -x_258 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 11); -x_259 = lean_ctor_get(x_232, 11); -lean_inc(x_259); -x_260 = lean_ctor_get_uint8(x_232, sizeof(void*)*15 + 12); -x_261 = lean_ctor_get(x_232, 12); -lean_inc(x_261); -x_262 = lean_ctor_get(x_232, 13); -lean_inc(x_262); -x_263 = lean_ctor_get(x_232, 14); -lean_inc(x_263); -if (lean_is_exclusive(x_232)) { - lean_ctor_release(x_232, 0); - lean_ctor_release(x_232, 1); - lean_ctor_release(x_232, 2); - lean_ctor_release(x_232, 3); - lean_ctor_release(x_232, 4); - lean_ctor_release(x_232, 5); - lean_ctor_release(x_232, 6); - lean_ctor_release(x_232, 7); - lean_ctor_release(x_232, 8); - lean_ctor_release(x_232, 9); - lean_ctor_release(x_232, 10); - lean_ctor_release(x_232, 11); - lean_ctor_release(x_232, 12); - lean_ctor_release(x_232, 13); - lean_ctor_release(x_232, 14); - x_264 = x_232; -} else { - lean_dec_ref(x_232); - x_264 = lean_box(0); -} -x_265 = lean_box(0); -if (lean_is_scalar(x_264)) { - x_266 = lean_alloc_ctor(0, 15, 13); -} else { - x_266 = x_264; -} -lean_ctor_set(x_266, 0, x_237); -lean_ctor_set(x_266, 1, x_238); -lean_ctor_set(x_266, 2, x_234); -lean_ctor_set(x_266, 3, x_239); -lean_ctor_set(x_266, 4, x_240); -lean_ctor_set(x_266, 5, x_241); -lean_ctor_set(x_266, 6, x_242); -lean_ctor_set(x_266, 7, x_243); -lean_ctor_set(x_266, 8, x_244); -lean_ctor_set(x_266, 9, x_253); -lean_ctor_set(x_266, 10, x_255); -lean_ctor_set(x_266, 11, x_259); -lean_ctor_set(x_266, 12, x_261); -lean_ctor_set(x_266, 13, x_262); -lean_ctor_set(x_266, 14, x_263); -lean_ctor_set_uint8(x_266, sizeof(void*)*15, x_245); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 1, x_246); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 2, x_247); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 3, x_248); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 4, x_249); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 5, x_250); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 6, x_251); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 7, x_252); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 8, x_254); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 9, x_256); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 10, x_257); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 11, x_258); -lean_ctor_set_uint8(x_266, sizeof(void*)*15 + 12, x_260); -if (lean_is_scalar(x_236)) { - x_267 = lean_alloc_ctor(0, 2, 0); -} else { - x_267 = x_236; -} -lean_ctor_set(x_267, 0, x_265); -lean_ctor_set(x_267, 1, x_235); -lean_ctor_set(x_157, 1, x_266); -lean_ctor_set(x_157, 0, x_267); -x_268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_268, 0, x_145); -lean_ctor_set(x_268, 1, x_233); -return x_268; -} -} -else -{ -lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; uint8_t x_285; uint8_t x_286; uint8_t x_287; uint8_t x_288; uint8_t x_289; uint8_t x_290; uint8_t x_291; lean_object* x_292; uint8_t x_293; lean_object* x_294; uint8_t x_295; uint8_t x_296; uint8_t x_297; lean_object* x_298; uint8_t x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_269 = lean_ctor_get(x_157, 0); -x_270 = lean_ctor_get(x_157, 1); -lean_inc(x_270); +x_256 = lean_ctor_get(x_248, 4); +lean_inc(x_256); +x_257 = lean_ctor_get(x_248, 5); +lean_inc(x_257); +x_258 = lean_ctor_get(x_248, 6); +lean_inc(x_258); +x_259 = lean_ctor_get(x_248, 7); +lean_inc_ref(x_259); +x_260 = lean_ctor_get(x_248, 8); +lean_inc(x_260); +x_261 = lean_ctor_get_uint8(x_248, sizeof(void*)*17); +x_262 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 1); +x_263 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 2); +x_264 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 3); +x_265 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 4); +x_266 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 5); +x_267 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 6); +x_268 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 7); +x_269 = lean_ctor_get(x_248, 9); lean_inc(x_269); -lean_dec(x_157); -x_271 = lean_ctor_get(x_144, 1); +x_270 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 8); +x_271 = lean_ctor_get(x_248, 10); lean_inc(x_271); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_272 = x_144; -} else { - lean_dec_ref(x_144); - x_272 = lean_box(0); -} -x_273 = lean_ctor_get(x_269, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_269, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_275 = x_269; -} else { - lean_dec_ref(x_269); - x_275 = lean_box(0); -} -x_276 = lean_ctor_get(x_270, 0); -lean_inc(x_276); -x_277 = lean_ctor_get(x_270, 1); -lean_inc_ref(x_277); -x_278 = lean_ctor_get(x_270, 3); -lean_inc(x_278); -x_279 = lean_ctor_get(x_270, 4); +x_272 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 9); +x_273 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 10); +x_274 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 11); +x_275 = lean_ctor_get(x_248, 11); +lean_inc(x_275); +x_276 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 12); +x_277 = lean_ctor_get(x_248, 12); +lean_inc(x_277); +x_278 = lean_ctor_get_uint8(x_248, sizeof(void*)*17 + 13); +x_279 = lean_ctor_get(x_248, 13); lean_inc(x_279); -x_280 = lean_ctor_get(x_270, 5); +x_280 = lean_ctor_get(x_248, 14); lean_inc(x_280); -x_281 = lean_ctor_get(x_270, 6); +x_281 = lean_ctor_get(x_248, 15); lean_inc(x_281); -x_282 = lean_ctor_get(x_270, 7); -lean_inc_ref(x_282); -x_283 = lean_ctor_get(x_270, 8); -lean_inc(x_283); -x_284 = lean_ctor_get_uint8(x_270, sizeof(void*)*15); -x_285 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 1); -x_286 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 2); -x_287 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 3); -x_288 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 4); -x_289 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 5); -x_290 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 6); -x_291 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 7); -x_292 = lean_ctor_get(x_270, 9); +x_282 = lean_ctor_get(x_248, 16); +lean_inc(x_282); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + lean_ctor_release(x_248, 2); + lean_ctor_release(x_248, 3); + lean_ctor_release(x_248, 4); + lean_ctor_release(x_248, 5); + lean_ctor_release(x_248, 6); + lean_ctor_release(x_248, 7); + lean_ctor_release(x_248, 8); + lean_ctor_release(x_248, 9); + lean_ctor_release(x_248, 10); + lean_ctor_release(x_248, 11); + lean_ctor_release(x_248, 12); + lean_ctor_release(x_248, 13); + lean_ctor_release(x_248, 14); + lean_ctor_release(x_248, 15); + lean_ctor_release(x_248, 16); + x_283 = x_248; +} else { + lean_dec_ref(x_248); + x_283 = lean_box(0); +} +x_284 = lean_box(0); +if (lean_is_scalar(x_283)) { + x_285 = lean_alloc_ctor(0, 17, 14); +} else { + x_285 = x_283; +} +lean_ctor_set(x_285, 0, x_253); +lean_ctor_set(x_285, 1, x_254); +lean_ctor_set(x_285, 2, x_250); +lean_ctor_set(x_285, 3, x_255); +lean_ctor_set(x_285, 4, x_256); +lean_ctor_set(x_285, 5, x_257); +lean_ctor_set(x_285, 6, x_258); +lean_ctor_set(x_285, 7, x_259); +lean_ctor_set(x_285, 8, x_260); +lean_ctor_set(x_285, 9, x_269); +lean_ctor_set(x_285, 10, x_271); +lean_ctor_set(x_285, 11, x_275); +lean_ctor_set(x_285, 12, x_277); +lean_ctor_set(x_285, 13, x_279); +lean_ctor_set(x_285, 14, x_280); +lean_ctor_set(x_285, 15, x_281); +lean_ctor_set(x_285, 16, x_282); +lean_ctor_set_uint8(x_285, sizeof(void*)*17, x_261); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 1, x_262); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 2, x_263); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 3, x_264); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 4, x_265); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 5, x_266); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 6, x_267); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 7, x_268); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 8, x_270); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 9, x_272); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 10, x_273); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 11, x_274); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 12, x_276); +lean_ctor_set_uint8(x_285, sizeof(void*)*17 + 13, x_278); +if (lean_is_scalar(x_252)) { + x_286 = lean_alloc_ctor(0, 2, 0); +} else { + x_286 = x_252; +} +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_251); +lean_ctor_set(x_167, 1, x_285); +lean_ctor_set(x_167, 0, x_286); +x_287 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_287, 0, x_155); +lean_ctor_set(x_287, 1, x_249); +return x_287; +} +} +else +{ +lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; uint8_t x_303; uint8_t x_304; uint8_t x_305; uint8_t x_306; uint8_t x_307; uint8_t x_308; uint8_t x_309; uint8_t x_310; lean_object* x_311; uint8_t x_312; lean_object* x_313; uint8_t x_314; uint8_t x_315; uint8_t x_316; lean_object* x_317; uint8_t x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; +x_288 = lean_ctor_get(x_167, 0); +x_289 = lean_ctor_get(x_167, 1); +lean_inc(x_289); +lean_inc(x_288); +lean_dec(x_167); +x_290 = lean_ctor_get(x_154, 1); +lean_inc(x_290); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_291 = x_154; +} else { + lean_dec_ref(x_154); + x_291 = lean_box(0); +} +x_292 = lean_ctor_get(x_288, 0); lean_inc(x_292); -x_293 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 8); -x_294 = lean_ctor_get(x_270, 10); -lean_inc(x_294); -x_295 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 9); -x_296 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 10); -x_297 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 11); -x_298 = lean_ctor_get(x_270, 11); +x_293 = lean_ctor_get(x_288, 1); +lean_inc(x_293); +if (lean_is_exclusive(x_288)) { + lean_ctor_release(x_288, 0); + lean_ctor_release(x_288, 1); + x_294 = x_288; +} else { + lean_dec_ref(x_288); + x_294 = lean_box(0); +} +x_295 = lean_ctor_get(x_289, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_289, 1); +lean_inc_ref(x_296); +x_297 = lean_ctor_get(x_289, 3); +lean_inc(x_297); +x_298 = lean_ctor_get(x_289, 4); lean_inc(x_298); -x_299 = lean_ctor_get_uint8(x_270, sizeof(void*)*15 + 12); -x_300 = lean_ctor_get(x_270, 12); +x_299 = lean_ctor_get(x_289, 5); +lean_inc(x_299); +x_300 = lean_ctor_get(x_289, 6); lean_inc(x_300); -x_301 = lean_ctor_get(x_270, 13); -lean_inc(x_301); -x_302 = lean_ctor_get(x_270, 14); +x_301 = lean_ctor_get(x_289, 7); +lean_inc_ref(x_301); +x_302 = lean_ctor_get(x_289, 8); lean_inc(x_302); -if (lean_is_exclusive(x_270)) { - lean_ctor_release(x_270, 0); - lean_ctor_release(x_270, 1); - lean_ctor_release(x_270, 2); - lean_ctor_release(x_270, 3); - lean_ctor_release(x_270, 4); - lean_ctor_release(x_270, 5); - lean_ctor_release(x_270, 6); - lean_ctor_release(x_270, 7); - lean_ctor_release(x_270, 8); - lean_ctor_release(x_270, 9); - lean_ctor_release(x_270, 10); - lean_ctor_release(x_270, 11); - lean_ctor_release(x_270, 12); - lean_ctor_release(x_270, 13); - lean_ctor_release(x_270, 14); - x_303 = x_270; -} else { - lean_dec_ref(x_270); - x_303 = lean_box(0); -} -x_304 = lean_box(0); -if (lean_is_scalar(x_303)) { - x_305 = lean_alloc_ctor(0, 15, 13); -} else { - x_305 = x_303; -} -lean_ctor_set(x_305, 0, x_276); -lean_ctor_set(x_305, 1, x_277); -lean_ctor_set(x_305, 2, x_273); -lean_ctor_set(x_305, 3, x_278); -lean_ctor_set(x_305, 4, x_279); -lean_ctor_set(x_305, 5, x_280); -lean_ctor_set(x_305, 6, x_281); -lean_ctor_set(x_305, 7, x_282); -lean_ctor_set(x_305, 8, x_283); -lean_ctor_set(x_305, 9, x_292); -lean_ctor_set(x_305, 10, x_294); -lean_ctor_set(x_305, 11, x_298); -lean_ctor_set(x_305, 12, x_300); -lean_ctor_set(x_305, 13, x_301); -lean_ctor_set(x_305, 14, x_302); -lean_ctor_set_uint8(x_305, sizeof(void*)*15, x_284); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 1, x_285); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 2, x_286); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 3, x_287); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 4, x_288); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 5, x_289); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 6, x_290); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 7, x_291); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 8, x_293); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 9, x_295); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 10, x_296); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 11, x_297); -lean_ctor_set_uint8(x_305, sizeof(void*)*15 + 12, x_299); -if (lean_is_scalar(x_275)) { - x_306 = lean_alloc_ctor(0, 2, 0); -} else { - x_306 = x_275; -} -lean_ctor_set(x_306, 0, x_304); -lean_ctor_set(x_306, 1, x_274); -x_307 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_305); -lean_ctor_set(x_145, 0, x_307); -if (lean_is_scalar(x_272)) { - x_308 = lean_alloc_ctor(0, 2, 0); -} else { - x_308 = x_272; -} -lean_ctor_set(x_308, 0, x_145); -lean_ctor_set(x_308, 1, x_271); -return x_308; -} -} -else -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; uint8_t x_327; uint8_t x_328; uint8_t x_329; uint8_t x_330; uint8_t x_331; uint8_t x_332; uint8_t x_333; lean_object* x_334; uint8_t x_335; lean_object* x_336; uint8_t x_337; uint8_t x_338; uint8_t x_339; lean_object* x_340; uint8_t x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_309 = lean_ctor_get(x_145, 0); -lean_inc(x_309); -lean_dec(x_145); -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); +x_303 = lean_ctor_get_uint8(x_289, sizeof(void*)*17); +x_304 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 1); +x_305 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 2); +x_306 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 3); +x_307 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 4); +x_308 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 5); +x_309 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 6); +x_310 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 7); +x_311 = lean_ctor_get(x_289, 9); lean_inc(x_311); -if (lean_is_exclusive(x_309)) { - lean_ctor_release(x_309, 0); - lean_ctor_release(x_309, 1); - x_312 = x_309; -} else { - lean_dec_ref(x_309); - x_312 = lean_box(0); -} -x_313 = lean_ctor_get(x_144, 1); +x_312 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 8); +x_313 = lean_ctor_get(x_289, 10); lean_inc(x_313); -if (lean_is_exclusive(x_144)) { - lean_ctor_release(x_144, 0); - lean_ctor_release(x_144, 1); - x_314 = x_144; -} else { - lean_dec_ref(x_144); - x_314 = lean_box(0); -} -x_315 = lean_ctor_get(x_310, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_310, 1); -lean_inc(x_316); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - x_317 = x_310; -} else { - lean_dec_ref(x_310); - x_317 = lean_box(0); -} -x_318 = lean_ctor_get(x_311, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_311, 1); -lean_inc_ref(x_319); -x_320 = lean_ctor_get(x_311, 3); -lean_inc(x_320); -x_321 = lean_ctor_get(x_311, 4); +x_314 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 9); +x_315 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 10); +x_316 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 11); +x_317 = lean_ctor_get(x_289, 11); +lean_inc(x_317); +x_318 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 12); +x_319 = lean_ctor_get(x_289, 12); +lean_inc(x_319); +x_320 = lean_ctor_get_uint8(x_289, sizeof(void*)*17 + 13); +x_321 = lean_ctor_get(x_289, 13); lean_inc(x_321); -x_322 = lean_ctor_get(x_311, 5); +x_322 = lean_ctor_get(x_289, 14); lean_inc(x_322); -x_323 = lean_ctor_get(x_311, 6); +x_323 = lean_ctor_get(x_289, 15); lean_inc(x_323); -x_324 = lean_ctor_get(x_311, 7); -lean_inc_ref(x_324); -x_325 = lean_ctor_get(x_311, 8); -lean_inc(x_325); -x_326 = lean_ctor_get_uint8(x_311, sizeof(void*)*15); -x_327 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 1); -x_328 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 2); -x_329 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 3); -x_330 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 4); -x_331 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 5); -x_332 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 6); -x_333 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 7); -x_334 = lean_ctor_get(x_311, 9); -lean_inc(x_334); -x_335 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 8); -x_336 = lean_ctor_get(x_311, 10); -lean_inc(x_336); -x_337 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 9); -x_338 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 10); -x_339 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 11); -x_340 = lean_ctor_get(x_311, 11); +x_324 = lean_ctor_get(x_289, 16); +lean_inc(x_324); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + lean_ctor_release(x_289, 2); + lean_ctor_release(x_289, 3); + lean_ctor_release(x_289, 4); + lean_ctor_release(x_289, 5); + lean_ctor_release(x_289, 6); + lean_ctor_release(x_289, 7); + lean_ctor_release(x_289, 8); + lean_ctor_release(x_289, 9); + lean_ctor_release(x_289, 10); + lean_ctor_release(x_289, 11); + lean_ctor_release(x_289, 12); + lean_ctor_release(x_289, 13); + lean_ctor_release(x_289, 14); + lean_ctor_release(x_289, 15); + lean_ctor_release(x_289, 16); + x_325 = x_289; +} else { + lean_dec_ref(x_289); + x_325 = lean_box(0); +} +x_326 = lean_box(0); +if (lean_is_scalar(x_325)) { + x_327 = lean_alloc_ctor(0, 17, 14); +} else { + x_327 = x_325; +} +lean_ctor_set(x_327, 0, x_295); +lean_ctor_set(x_327, 1, x_296); +lean_ctor_set(x_327, 2, x_292); +lean_ctor_set(x_327, 3, x_297); +lean_ctor_set(x_327, 4, x_298); +lean_ctor_set(x_327, 5, x_299); +lean_ctor_set(x_327, 6, x_300); +lean_ctor_set(x_327, 7, x_301); +lean_ctor_set(x_327, 8, x_302); +lean_ctor_set(x_327, 9, x_311); +lean_ctor_set(x_327, 10, x_313); +lean_ctor_set(x_327, 11, x_317); +lean_ctor_set(x_327, 12, x_319); +lean_ctor_set(x_327, 13, x_321); +lean_ctor_set(x_327, 14, x_322); +lean_ctor_set(x_327, 15, x_323); +lean_ctor_set(x_327, 16, x_324); +lean_ctor_set_uint8(x_327, sizeof(void*)*17, x_303); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 1, x_304); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 2, x_305); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 3, x_306); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 4, x_307); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 5, x_308); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 6, x_309); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 7, x_310); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 8, x_312); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 9, x_314); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 10, x_315); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 11, x_316); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 12, x_318); +lean_ctor_set_uint8(x_327, sizeof(void*)*17 + 13, x_320); +if (lean_is_scalar(x_294)) { + x_328 = lean_alloc_ctor(0, 2, 0); +} else { + x_328 = x_294; +} +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_293); +x_329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_329, 0, x_328); +lean_ctor_set(x_329, 1, x_327); +lean_ctor_set(x_155, 0, x_329); +if (lean_is_scalar(x_291)) { + x_330 = lean_alloc_ctor(0, 2, 0); +} else { + x_330 = x_291; +} +lean_ctor_set(x_330, 0, x_155); +lean_ctor_set(x_330, 1, x_290); +return x_330; +} +} +else +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; uint8_t x_348; uint8_t x_349; uint8_t x_350; uint8_t x_351; uint8_t x_352; uint8_t x_353; uint8_t x_354; uint8_t x_355; lean_object* x_356; uint8_t x_357; lean_object* x_358; uint8_t x_359; uint8_t x_360; uint8_t x_361; lean_object* x_362; uint8_t x_363; lean_object* x_364; uint8_t x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_331 = lean_ctor_get(x_155, 0); +lean_inc(x_331); +lean_dec(x_155); +x_332 = lean_ctor_get(x_331, 0); +lean_inc(x_332); +x_333 = lean_ctor_get(x_331, 1); +lean_inc(x_333); +if (lean_is_exclusive(x_331)) { + lean_ctor_release(x_331, 0); + lean_ctor_release(x_331, 1); + x_334 = x_331; +} else { + lean_dec_ref(x_331); + x_334 = lean_box(0); +} +x_335 = lean_ctor_get(x_154, 1); +lean_inc(x_335); +if (lean_is_exclusive(x_154)) { + lean_ctor_release(x_154, 0); + lean_ctor_release(x_154, 1); + x_336 = x_154; +} else { + lean_dec_ref(x_154); + x_336 = lean_box(0); +} +x_337 = lean_ctor_get(x_332, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_332, 1); +lean_inc(x_338); +if (lean_is_exclusive(x_332)) { + lean_ctor_release(x_332, 0); + lean_ctor_release(x_332, 1); + x_339 = x_332; +} else { + lean_dec_ref(x_332); + x_339 = lean_box(0); +} +x_340 = lean_ctor_get(x_333, 0); lean_inc(x_340); -x_341 = lean_ctor_get_uint8(x_311, sizeof(void*)*15 + 12); -x_342 = lean_ctor_get(x_311, 12); +x_341 = lean_ctor_get(x_333, 1); +lean_inc_ref(x_341); +x_342 = lean_ctor_get(x_333, 3); lean_inc(x_342); -x_343 = lean_ctor_get(x_311, 13); +x_343 = lean_ctor_get(x_333, 4); lean_inc(x_343); -x_344 = lean_ctor_get(x_311, 14); +x_344 = lean_ctor_get(x_333, 5); lean_inc(x_344); -if (lean_is_exclusive(x_311)) { - lean_ctor_release(x_311, 0); - lean_ctor_release(x_311, 1); - lean_ctor_release(x_311, 2); - lean_ctor_release(x_311, 3); - lean_ctor_release(x_311, 4); - lean_ctor_release(x_311, 5); - lean_ctor_release(x_311, 6); - lean_ctor_release(x_311, 7); - lean_ctor_release(x_311, 8); - lean_ctor_release(x_311, 9); - lean_ctor_release(x_311, 10); - lean_ctor_release(x_311, 11); - lean_ctor_release(x_311, 12); - lean_ctor_release(x_311, 13); - lean_ctor_release(x_311, 14); - x_345 = x_311; -} else { - lean_dec_ref(x_311); - x_345 = lean_box(0); -} -x_346 = lean_box(0); -if (lean_is_scalar(x_345)) { - x_347 = lean_alloc_ctor(0, 15, 13); -} else { - x_347 = x_345; -} -lean_ctor_set(x_347, 0, x_318); -lean_ctor_set(x_347, 1, x_319); -lean_ctor_set(x_347, 2, x_315); -lean_ctor_set(x_347, 3, x_320); -lean_ctor_set(x_347, 4, x_321); -lean_ctor_set(x_347, 5, x_322); -lean_ctor_set(x_347, 6, x_323); -lean_ctor_set(x_347, 7, x_324); -lean_ctor_set(x_347, 8, x_325); -lean_ctor_set(x_347, 9, x_334); -lean_ctor_set(x_347, 10, x_336); -lean_ctor_set(x_347, 11, x_340); -lean_ctor_set(x_347, 12, x_342); -lean_ctor_set(x_347, 13, x_343); -lean_ctor_set(x_347, 14, x_344); -lean_ctor_set_uint8(x_347, sizeof(void*)*15, x_326); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 1, x_327); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 2, x_328); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 3, x_329); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 4, x_330); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 5, x_331); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 6, x_332); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 7, x_333); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 8, x_335); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 9, x_337); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 10, x_338); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 11, x_339); -lean_ctor_set_uint8(x_347, sizeof(void*)*15 + 12, x_341); -if (lean_is_scalar(x_317)) { - x_348 = lean_alloc_ctor(0, 2, 0); -} else { - x_348 = x_317; -} -lean_ctor_set(x_348, 0, x_346); -lean_ctor_set(x_348, 1, x_316); -if (lean_is_scalar(x_312)) { - x_349 = lean_alloc_ctor(0, 2, 0); -} else { - x_349 = x_312; -} -lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_347); -x_350 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_350, 0, x_349); -if (lean_is_scalar(x_314)) { - x_351 = lean_alloc_ctor(0, 2, 0); -} else { - x_351 = x_314; -} -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_313); -return x_351; -} -} -} -} -else -{ -lean_object* x_352; lean_object* x_353; lean_object* x_354; -lean_dec_ref(x_1); -x_352 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; -x_353 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_55, x_352, x_2, x_3, x_4); -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -if (lean_obj_tag(x_354) == 0) -{ -uint8_t x_355; -x_355 = !lean_is_exclusive(x_353); -if (x_355 == 0) -{ -lean_object* x_356; uint8_t x_357; -x_356 = lean_ctor_get(x_353, 0); -lean_dec(x_356); -x_357 = !lean_is_exclusive(x_354); -if (x_357 == 0) -{ -return x_353; -} -else -{ -lean_object* x_358; lean_object* x_359; -x_358 = lean_ctor_get(x_354, 0); +x_345 = lean_ctor_get(x_333, 6); +lean_inc(x_345); +x_346 = lean_ctor_get(x_333, 7); +lean_inc_ref(x_346); +x_347 = lean_ctor_get(x_333, 8); +lean_inc(x_347); +x_348 = lean_ctor_get_uint8(x_333, sizeof(void*)*17); +x_349 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 1); +x_350 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 2); +x_351 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 3); +x_352 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 4); +x_353 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 5); +x_354 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 6); +x_355 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 7); +x_356 = lean_ctor_get(x_333, 9); +lean_inc(x_356); +x_357 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 8); +x_358 = lean_ctor_get(x_333, 10); lean_inc(x_358); -lean_dec(x_354); -x_359 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_359, 0, x_358); -lean_ctor_set(x_353, 0, x_359); -return x_353; -} -} -else -{ -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; -x_360 = lean_ctor_get(x_353, 1); -lean_inc(x_360); -lean_dec(x_353); -x_361 = lean_ctor_get(x_354, 0); -lean_inc(x_361); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - x_362 = x_354; +x_359 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 9); +x_360 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 10); +x_361 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 11); +x_362 = lean_ctor_get(x_333, 11); +lean_inc(x_362); +x_363 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 12); +x_364 = lean_ctor_get(x_333, 12); +lean_inc(x_364); +x_365 = lean_ctor_get_uint8(x_333, sizeof(void*)*17 + 13); +x_366 = lean_ctor_get(x_333, 13); +lean_inc(x_366); +x_367 = lean_ctor_get(x_333, 14); +lean_inc(x_367); +x_368 = lean_ctor_get(x_333, 15); +lean_inc(x_368); +x_369 = lean_ctor_get(x_333, 16); +lean_inc(x_369); +if (lean_is_exclusive(x_333)) { + lean_ctor_release(x_333, 0); + lean_ctor_release(x_333, 1); + lean_ctor_release(x_333, 2); + lean_ctor_release(x_333, 3); + lean_ctor_release(x_333, 4); + lean_ctor_release(x_333, 5); + lean_ctor_release(x_333, 6); + lean_ctor_release(x_333, 7); + lean_ctor_release(x_333, 8); + lean_ctor_release(x_333, 9); + lean_ctor_release(x_333, 10); + lean_ctor_release(x_333, 11); + lean_ctor_release(x_333, 12); + lean_ctor_release(x_333, 13); + lean_ctor_release(x_333, 14); + lean_ctor_release(x_333, 15); + lean_ctor_release(x_333, 16); + x_370 = x_333; } else { - lean_dec_ref(x_354); - x_362 = lean_box(0); + lean_dec_ref(x_333); + x_370 = lean_box(0); } -if (lean_is_scalar(x_362)) { - x_363 = lean_alloc_ctor(0, 1, 0); +x_371 = lean_box(0); +if (lean_is_scalar(x_370)) { + x_372 = lean_alloc_ctor(0, 17, 14); } else { - x_363 = x_362; + x_372 = x_370; +} +lean_ctor_set(x_372, 0, x_340); +lean_ctor_set(x_372, 1, x_341); +lean_ctor_set(x_372, 2, x_337); +lean_ctor_set(x_372, 3, x_342); +lean_ctor_set(x_372, 4, x_343); +lean_ctor_set(x_372, 5, x_344); +lean_ctor_set(x_372, 6, x_345); +lean_ctor_set(x_372, 7, x_346); +lean_ctor_set(x_372, 8, x_347); +lean_ctor_set(x_372, 9, x_356); +lean_ctor_set(x_372, 10, x_358); +lean_ctor_set(x_372, 11, x_362); +lean_ctor_set(x_372, 12, x_364); +lean_ctor_set(x_372, 13, x_366); +lean_ctor_set(x_372, 14, x_367); +lean_ctor_set(x_372, 15, x_368); +lean_ctor_set(x_372, 16, x_369); +lean_ctor_set_uint8(x_372, sizeof(void*)*17, x_348); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 1, x_349); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 2, x_350); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 3, x_351); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 4, x_352); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 5, x_353); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 6, x_354); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 7, x_355); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 8, x_357); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 9, x_359); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 10, x_360); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 11, x_361); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 12, x_363); +lean_ctor_set_uint8(x_372, sizeof(void*)*17 + 13, x_365); +if (lean_is_scalar(x_339)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_339; +} +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_338); +if (lean_is_scalar(x_334)) { + x_374 = lean_alloc_ctor(0, 2, 0); +} else { + x_374 = x_334; +} +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_372); +x_375 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_375, 0, x_374); +if (lean_is_scalar(x_336)) { + x_376 = lean_alloc_ctor(0, 2, 0); +} else { + x_376 = x_336; +} +lean_ctor_set(x_376, 0, x_375); +lean_ctor_set(x_376, 1, x_335); +return x_376; +} } -lean_ctor_set(x_363, 0, x_361); -x_364 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_364, 0, x_363); -lean_ctor_set(x_364, 1, x_360); -return x_364; } } else { -uint8_t x_365; -x_365 = !lean_is_exclusive(x_354); -if (x_365 == 0) -{ -lean_object* x_366; uint8_t x_367; -x_366 = lean_ctor_get(x_354, 0); -x_367 = !lean_is_exclusive(x_366); -if (x_367 == 0) -{ -uint8_t x_368; -x_368 = !lean_is_exclusive(x_353); -if (x_368 == 0) -{ -lean_object* x_369; lean_object* x_370; lean_object* x_371; uint8_t x_372; -x_369 = lean_ctor_get(x_366, 0); -x_370 = lean_ctor_get(x_366, 1); -x_371 = lean_ctor_get(x_353, 0); -lean_dec(x_371); -x_372 = !lean_is_exclusive(x_369); -if (x_372 == 0) -{ -uint8_t x_373; -x_373 = !lean_is_exclusive(x_370); -if (x_373 == 0) -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_374 = lean_ctor_get(x_369, 0); -x_375 = lean_ctor_get(x_370, 1); -lean_dec(x_375); -x_376 = lean_box(0); -lean_ctor_set(x_370, 1, x_374); -lean_ctor_set(x_369, 0, x_376); -return x_353; -} -else -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; uint8_t x_386; uint8_t x_387; uint8_t x_388; uint8_t x_389; uint8_t x_390; uint8_t x_391; uint8_t x_392; uint8_t x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; uint8_t x_397; uint8_t x_398; uint8_t x_399; lean_object* x_400; uint8_t x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; -x_377 = lean_ctor_get(x_369, 0); -x_378 = lean_ctor_get(x_370, 0); -x_379 = lean_ctor_get(x_370, 2); -x_380 = lean_ctor_get(x_370, 3); -x_381 = lean_ctor_get(x_370, 4); -x_382 = lean_ctor_get(x_370, 5); -x_383 = lean_ctor_get(x_370, 6); -x_384 = lean_ctor_get(x_370, 7); -x_385 = lean_ctor_get(x_370, 8); -x_386 = lean_ctor_get_uint8(x_370, sizeof(void*)*15); -x_387 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 1); -x_388 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 2); -x_389 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 3); -x_390 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 4); -x_391 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 5); -x_392 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 6); -x_393 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 7); -x_394 = lean_ctor_get(x_370, 9); -x_395 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 8); -x_396 = lean_ctor_get(x_370, 10); -x_397 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 9); -x_398 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 10); -x_399 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 11); -x_400 = lean_ctor_get(x_370, 11); -x_401 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 12); -x_402 = lean_ctor_get(x_370, 12); -x_403 = lean_ctor_get(x_370, 13); -x_404 = lean_ctor_get(x_370, 14); -lean_inc(x_404); -lean_inc(x_403); -lean_inc(x_402); -lean_inc(x_400); -lean_inc(x_396); -lean_inc(x_394); -lean_inc(x_385); -lean_inc(x_384); -lean_inc(x_383); -lean_inc(x_382); -lean_inc(x_381); -lean_inc(x_380); +lean_object* x_377; lean_object* x_378; lean_object* x_379; +lean_dec_ref(x_1); +x_377 = l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__5; +x_378 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_59, x_377, x_2, x_3, x_4); +x_379 = lean_ctor_get(x_378, 0); lean_inc(x_379); -lean_inc(x_378); -lean_dec(x_370); -x_405 = lean_box(0); -x_406 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_406, 0, x_378); -lean_ctor_set(x_406, 1, x_377); -lean_ctor_set(x_406, 2, x_379); -lean_ctor_set(x_406, 3, x_380); -lean_ctor_set(x_406, 4, x_381); -lean_ctor_set(x_406, 5, x_382); -lean_ctor_set(x_406, 6, x_383); -lean_ctor_set(x_406, 7, x_384); -lean_ctor_set(x_406, 8, x_385); -lean_ctor_set(x_406, 9, x_394); -lean_ctor_set(x_406, 10, x_396); -lean_ctor_set(x_406, 11, x_400); -lean_ctor_set(x_406, 12, x_402); -lean_ctor_set(x_406, 13, x_403); -lean_ctor_set(x_406, 14, x_404); -lean_ctor_set_uint8(x_406, sizeof(void*)*15, x_386); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 1, x_387); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 2, x_388); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 3, x_389); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 4, x_390); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 5, x_391); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 6, x_392); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 7, x_393); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 8, x_395); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 9, x_397); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 10, x_398); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 11, x_399); -lean_ctor_set_uint8(x_406, sizeof(void*)*15 + 12, x_401); -lean_ctor_set(x_369, 0, x_405); -lean_ctor_set(x_366, 1, x_406); -return x_353; +if (lean_obj_tag(x_379) == 0) +{ +uint8_t x_380; +x_380 = !lean_is_exclusive(x_378); +if (x_380 == 0) +{ +lean_object* x_381; uint8_t x_382; +x_381 = lean_ctor_get(x_378, 0); +lean_dec(x_381); +x_382 = !lean_is_exclusive(x_379); +if (x_382 == 0) +{ +return x_378; +} +else +{ +lean_object* x_383; lean_object* x_384; +x_383 = lean_ctor_get(x_379, 0); +lean_inc(x_383); +lean_dec(x_379); +x_384 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_378, 0, x_384); +return x_378; } } else { -lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; uint8_t x_417; uint8_t x_418; uint8_t x_419; uint8_t x_420; uint8_t x_421; uint8_t x_422; uint8_t x_423; uint8_t x_424; lean_object* x_425; uint8_t x_426; lean_object* x_427; uint8_t x_428; uint8_t x_429; uint8_t x_430; lean_object* x_431; uint8_t x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; -x_407 = lean_ctor_get(x_369, 0); -x_408 = lean_ctor_get(x_369, 1); +lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; +x_385 = lean_ctor_get(x_378, 1); +lean_inc(x_385); +lean_dec(x_378); +x_386 = lean_ctor_get(x_379, 0); +lean_inc(x_386); +if (lean_is_exclusive(x_379)) { + lean_ctor_release(x_379, 0); + x_387 = x_379; +} else { + lean_dec_ref(x_379); + x_387 = lean_box(0); +} +if (lean_is_scalar(x_387)) { + x_388 = lean_alloc_ctor(0, 1, 0); +} else { + x_388 = x_387; +} +lean_ctor_set(x_388, 0, x_386); +x_389 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_389, 0, x_388); +lean_ctor_set(x_389, 1, x_385); +return x_389; +} +} +else +{ +uint8_t x_390; +x_390 = !lean_is_exclusive(x_379); +if (x_390 == 0) +{ +lean_object* x_391; uint8_t x_392; +x_391 = lean_ctor_get(x_379, 0); +x_392 = !lean_is_exclusive(x_391); +if (x_392 == 0) +{ +uint8_t x_393; +x_393 = !lean_is_exclusive(x_378); +if (x_393 == 0) +{ +lean_object* x_394; lean_object* x_395; lean_object* x_396; uint8_t x_397; +x_394 = lean_ctor_get(x_391, 0); +x_395 = lean_ctor_get(x_391, 1); +x_396 = lean_ctor_get(x_378, 0); +lean_dec(x_396); +x_397 = !lean_is_exclusive(x_394); +if (x_397 == 0) +{ +uint8_t x_398; +x_398 = !lean_is_exclusive(x_395); +if (x_398 == 0) +{ +lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_399 = lean_ctor_get(x_394, 0); +x_400 = lean_ctor_get(x_395, 1); +lean_dec(x_400); +x_401 = lean_box(0); +lean_ctor_set(x_395, 1, x_399); +lean_ctor_set(x_394, 0, x_401); +return x_378; +} +else +{ +lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; uint8_t x_412; uint8_t x_413; uint8_t x_414; uint8_t x_415; uint8_t x_416; uint8_t x_417; uint8_t x_418; lean_object* x_419; uint8_t x_420; lean_object* x_421; uint8_t x_422; uint8_t x_423; uint8_t x_424; lean_object* x_425; uint8_t x_426; lean_object* x_427; uint8_t x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_402 = lean_ctor_get(x_394, 0); +x_403 = lean_ctor_get(x_395, 0); +x_404 = lean_ctor_get(x_395, 2); +x_405 = lean_ctor_get(x_395, 3); +x_406 = lean_ctor_get(x_395, 4); +x_407 = lean_ctor_get(x_395, 5); +x_408 = lean_ctor_get(x_395, 6); +x_409 = lean_ctor_get(x_395, 7); +x_410 = lean_ctor_get(x_395, 8); +x_411 = lean_ctor_get_uint8(x_395, sizeof(void*)*17); +x_412 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 1); +x_413 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 2); +x_414 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 3); +x_415 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 4); +x_416 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 5); +x_417 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 6); +x_418 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 7); +x_419 = lean_ctor_get(x_395, 9); +x_420 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 8); +x_421 = lean_ctor_get(x_395, 10); +x_422 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 9); +x_423 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 10); +x_424 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 11); +x_425 = lean_ctor_get(x_395, 11); +x_426 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 12); +x_427 = lean_ctor_get(x_395, 12); +x_428 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 13); +x_429 = lean_ctor_get(x_395, 13); +x_430 = lean_ctor_get(x_395, 14); +x_431 = lean_ctor_get(x_395, 15); +x_432 = lean_ctor_get(x_395, 16); +lean_inc(x_432); +lean_inc(x_431); +lean_inc(x_430); +lean_inc(x_429); +lean_inc(x_427); +lean_inc(x_425); +lean_inc(x_421); +lean_inc(x_419); +lean_inc(x_410); +lean_inc(x_409); lean_inc(x_408); lean_inc(x_407); -lean_dec(x_369); -x_409 = lean_ctor_get(x_370, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_370, 2); -lean_inc_ref(x_410); -x_411 = lean_ctor_get(x_370, 3); -lean_inc(x_411); -x_412 = lean_ctor_get(x_370, 4); -lean_inc(x_412); -x_413 = lean_ctor_get(x_370, 5); -lean_inc(x_413); -x_414 = lean_ctor_get(x_370, 6); -lean_inc(x_414); -x_415 = lean_ctor_get(x_370, 7); -lean_inc_ref(x_415); -x_416 = lean_ctor_get(x_370, 8); -lean_inc(x_416); -x_417 = lean_ctor_get_uint8(x_370, sizeof(void*)*15); -x_418 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 1); -x_419 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 2); -x_420 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 3); -x_421 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 4); -x_422 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 5); -x_423 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 6); -x_424 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 7); -x_425 = lean_ctor_get(x_370, 9); -lean_inc(x_425); -x_426 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 8); -x_427 = lean_ctor_get(x_370, 10); -lean_inc(x_427); -x_428 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 9); -x_429 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 10); -x_430 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 11); -x_431 = lean_ctor_get(x_370, 11); -lean_inc(x_431); -x_432 = lean_ctor_get_uint8(x_370, sizeof(void*)*15 + 12); -x_433 = lean_ctor_get(x_370, 12); -lean_inc(x_433); -x_434 = lean_ctor_get(x_370, 13); -lean_inc(x_434); -x_435 = lean_ctor_get(x_370, 14); +lean_inc(x_406); +lean_inc(x_405); +lean_inc(x_404); +lean_inc(x_403); +lean_dec(x_395); +x_433 = lean_box(0); +x_434 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_434, 0, x_403); +lean_ctor_set(x_434, 1, x_402); +lean_ctor_set(x_434, 2, x_404); +lean_ctor_set(x_434, 3, x_405); +lean_ctor_set(x_434, 4, x_406); +lean_ctor_set(x_434, 5, x_407); +lean_ctor_set(x_434, 6, x_408); +lean_ctor_set(x_434, 7, x_409); +lean_ctor_set(x_434, 8, x_410); +lean_ctor_set(x_434, 9, x_419); +lean_ctor_set(x_434, 10, x_421); +lean_ctor_set(x_434, 11, x_425); +lean_ctor_set(x_434, 12, x_427); +lean_ctor_set(x_434, 13, x_429); +lean_ctor_set(x_434, 14, x_430); +lean_ctor_set(x_434, 15, x_431); +lean_ctor_set(x_434, 16, x_432); +lean_ctor_set_uint8(x_434, sizeof(void*)*17, x_411); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 1, x_412); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 2, x_413); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 3, x_414); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 4, x_415); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 5, x_416); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 6, x_417); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 7, x_418); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 8, x_420); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 9, x_422); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 10, x_423); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 11, x_424); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 12, x_426); +lean_ctor_set_uint8(x_434, sizeof(void*)*17 + 13, x_428); +lean_ctor_set(x_394, 0, x_433); +lean_ctor_set(x_391, 1, x_434); +return x_378; +} +} +else +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; uint8_t x_446; uint8_t x_447; uint8_t x_448; uint8_t x_449; uint8_t x_450; uint8_t x_451; uint8_t x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; uint8_t x_456; uint8_t x_457; uint8_t x_458; lean_object* x_459; uint8_t x_460; lean_object* x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; +x_435 = lean_ctor_get(x_394, 0); +x_436 = lean_ctor_get(x_394, 1); +lean_inc(x_436); lean_inc(x_435); -if (lean_is_exclusive(x_370)) { - lean_ctor_release(x_370, 0); - lean_ctor_release(x_370, 1); - lean_ctor_release(x_370, 2); - lean_ctor_release(x_370, 3); - lean_ctor_release(x_370, 4); - lean_ctor_release(x_370, 5); - lean_ctor_release(x_370, 6); - lean_ctor_release(x_370, 7); - lean_ctor_release(x_370, 8); - lean_ctor_release(x_370, 9); - lean_ctor_release(x_370, 10); - lean_ctor_release(x_370, 11); - lean_ctor_release(x_370, 12); - lean_ctor_release(x_370, 13); - lean_ctor_release(x_370, 14); - x_436 = x_370; -} else { - lean_dec_ref(x_370); - x_436 = lean_box(0); -} -x_437 = lean_box(0); -if (lean_is_scalar(x_436)) { - x_438 = lean_alloc_ctor(0, 15, 13); -} else { - x_438 = x_436; -} -lean_ctor_set(x_438, 0, x_409); -lean_ctor_set(x_438, 1, x_407); -lean_ctor_set(x_438, 2, x_410); -lean_ctor_set(x_438, 3, x_411); -lean_ctor_set(x_438, 4, x_412); -lean_ctor_set(x_438, 5, x_413); -lean_ctor_set(x_438, 6, x_414); -lean_ctor_set(x_438, 7, x_415); -lean_ctor_set(x_438, 8, x_416); -lean_ctor_set(x_438, 9, x_425); -lean_ctor_set(x_438, 10, x_427); -lean_ctor_set(x_438, 11, x_431); -lean_ctor_set(x_438, 12, x_433); -lean_ctor_set(x_438, 13, x_434); -lean_ctor_set(x_438, 14, x_435); -lean_ctor_set_uint8(x_438, sizeof(void*)*15, x_417); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 1, x_418); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 2, x_419); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 3, x_420); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 4, x_421); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 5, x_422); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 6, x_423); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 7, x_424); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 8, x_426); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 9, x_428); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 10, x_429); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 11, x_430); -lean_ctor_set_uint8(x_438, sizeof(void*)*15 + 12, x_432); -x_439 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_439, 0, x_437); -lean_ctor_set(x_439, 1, x_408); -lean_ctor_set(x_366, 1, x_438); -lean_ctor_set(x_366, 0, x_439); -return x_353; -} -} -else -{ -lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; uint8_t x_455; uint8_t x_456; uint8_t x_457; uint8_t x_458; uint8_t x_459; uint8_t x_460; uint8_t x_461; lean_object* x_462; uint8_t x_463; lean_object* x_464; uint8_t x_465; uint8_t x_466; uint8_t x_467; lean_object* x_468; uint8_t x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; -x_440 = lean_ctor_get(x_366, 0); -x_441 = lean_ctor_get(x_366, 1); -x_442 = lean_ctor_get(x_353, 1); +lean_dec(x_394); +x_437 = lean_ctor_get(x_395, 0); +lean_inc(x_437); +x_438 = lean_ctor_get(x_395, 2); +lean_inc_ref(x_438); +x_439 = lean_ctor_get(x_395, 3); +lean_inc(x_439); +x_440 = lean_ctor_get(x_395, 4); +lean_inc(x_440); +x_441 = lean_ctor_get(x_395, 5); +lean_inc(x_441); +x_442 = lean_ctor_get(x_395, 6); lean_inc(x_442); -lean_dec(x_353); -x_443 = lean_ctor_get(x_440, 0); -lean_inc(x_443); -x_444 = lean_ctor_get(x_440, 1); +x_443 = lean_ctor_get(x_395, 7); +lean_inc_ref(x_443); +x_444 = lean_ctor_get(x_395, 8); lean_inc(x_444); -if (lean_is_exclusive(x_440)) { - lean_ctor_release(x_440, 0); - lean_ctor_release(x_440, 1); - x_445 = x_440; -} else { - lean_dec_ref(x_440); - x_445 = lean_box(0); -} -x_446 = lean_ctor_get(x_441, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_441, 2); -lean_inc_ref(x_447); -x_448 = lean_ctor_get(x_441, 3); -lean_inc(x_448); -x_449 = lean_ctor_get(x_441, 4); -lean_inc(x_449); -x_450 = lean_ctor_get(x_441, 5); -lean_inc(x_450); -x_451 = lean_ctor_get(x_441, 6); -lean_inc(x_451); -x_452 = lean_ctor_get(x_441, 7); -lean_inc_ref(x_452); -x_453 = lean_ctor_get(x_441, 8); +x_445 = lean_ctor_get_uint8(x_395, sizeof(void*)*17); +x_446 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 1); +x_447 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 2); +x_448 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 3); +x_449 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 4); +x_450 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 5); +x_451 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 6); +x_452 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 7); +x_453 = lean_ctor_get(x_395, 9); lean_inc(x_453); -x_454 = lean_ctor_get_uint8(x_441, sizeof(void*)*15); -x_455 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 1); -x_456 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 2); -x_457 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 3); -x_458 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 4); -x_459 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 5); -x_460 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 6); -x_461 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 7); -x_462 = lean_ctor_get(x_441, 9); -lean_inc(x_462); -x_463 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 8); -x_464 = lean_ctor_get(x_441, 10); +x_454 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 8); +x_455 = lean_ctor_get(x_395, 10); +lean_inc(x_455); +x_456 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 9); +x_457 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 10); +x_458 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 11); +x_459 = lean_ctor_get(x_395, 11); +lean_inc(x_459); +x_460 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 12); +x_461 = lean_ctor_get(x_395, 12); +lean_inc(x_461); +x_462 = lean_ctor_get_uint8(x_395, sizeof(void*)*17 + 13); +x_463 = lean_ctor_get(x_395, 13); +lean_inc(x_463); +x_464 = lean_ctor_get(x_395, 14); lean_inc(x_464); -x_465 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 9); -x_466 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 10); -x_467 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 11); -x_468 = lean_ctor_get(x_441, 11); -lean_inc(x_468); -x_469 = lean_ctor_get_uint8(x_441, sizeof(void*)*15 + 12); -x_470 = lean_ctor_get(x_441, 12); -lean_inc(x_470); -x_471 = lean_ctor_get(x_441, 13); -lean_inc(x_471); -x_472 = lean_ctor_get(x_441, 14); -lean_inc(x_472); -if (lean_is_exclusive(x_441)) { - lean_ctor_release(x_441, 0); - lean_ctor_release(x_441, 1); - lean_ctor_release(x_441, 2); - lean_ctor_release(x_441, 3); - lean_ctor_release(x_441, 4); - lean_ctor_release(x_441, 5); - lean_ctor_release(x_441, 6); - lean_ctor_release(x_441, 7); - lean_ctor_release(x_441, 8); - lean_ctor_release(x_441, 9); - lean_ctor_release(x_441, 10); - lean_ctor_release(x_441, 11); - lean_ctor_release(x_441, 12); - lean_ctor_release(x_441, 13); - lean_ctor_release(x_441, 14); - x_473 = x_441; +x_465 = lean_ctor_get(x_395, 15); +lean_inc(x_465); +x_466 = lean_ctor_get(x_395, 16); +lean_inc(x_466); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + lean_ctor_release(x_395, 2); + lean_ctor_release(x_395, 3); + lean_ctor_release(x_395, 4); + lean_ctor_release(x_395, 5); + lean_ctor_release(x_395, 6); + lean_ctor_release(x_395, 7); + lean_ctor_release(x_395, 8); + lean_ctor_release(x_395, 9); + lean_ctor_release(x_395, 10); + lean_ctor_release(x_395, 11); + lean_ctor_release(x_395, 12); + lean_ctor_release(x_395, 13); + lean_ctor_release(x_395, 14); + lean_ctor_release(x_395, 15); + lean_ctor_release(x_395, 16); + x_467 = x_395; } else { - lean_dec_ref(x_441); - x_473 = lean_box(0); + lean_dec_ref(x_395); + x_467 = lean_box(0); } -x_474 = lean_box(0); -if (lean_is_scalar(x_473)) { - x_475 = lean_alloc_ctor(0, 15, 13); +x_468 = lean_box(0); +if (lean_is_scalar(x_467)) { + x_469 = lean_alloc_ctor(0, 17, 14); } else { - x_475 = x_473; + x_469 = x_467; } -lean_ctor_set(x_475, 0, x_446); -lean_ctor_set(x_475, 1, x_443); -lean_ctor_set(x_475, 2, x_447); -lean_ctor_set(x_475, 3, x_448); -lean_ctor_set(x_475, 4, x_449); -lean_ctor_set(x_475, 5, x_450); -lean_ctor_set(x_475, 6, x_451); -lean_ctor_set(x_475, 7, x_452); -lean_ctor_set(x_475, 8, x_453); -lean_ctor_set(x_475, 9, x_462); -lean_ctor_set(x_475, 10, x_464); -lean_ctor_set(x_475, 11, x_468); -lean_ctor_set(x_475, 12, x_470); -lean_ctor_set(x_475, 13, x_471); -lean_ctor_set(x_475, 14, x_472); -lean_ctor_set_uint8(x_475, sizeof(void*)*15, x_454); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 1, x_455); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 2, x_456); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 3, x_457); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 4, x_458); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 5, x_459); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 6, x_460); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 7, x_461); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 8, x_463); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 9, x_465); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 10, x_466); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 11, x_467); -lean_ctor_set_uint8(x_475, sizeof(void*)*15 + 12, x_469); -if (lean_is_scalar(x_445)) { - x_476 = lean_alloc_ctor(0, 2, 0); -} else { - x_476 = x_445; -} -lean_ctor_set(x_476, 0, x_474); -lean_ctor_set(x_476, 1, x_444); -lean_ctor_set(x_366, 1, x_475); -lean_ctor_set(x_366, 0, x_476); -x_477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_477, 0, x_354); -lean_ctor_set(x_477, 1, x_442); -return x_477; +lean_ctor_set(x_469, 0, x_437); +lean_ctor_set(x_469, 1, x_435); +lean_ctor_set(x_469, 2, x_438); +lean_ctor_set(x_469, 3, x_439); +lean_ctor_set(x_469, 4, x_440); +lean_ctor_set(x_469, 5, x_441); +lean_ctor_set(x_469, 6, x_442); +lean_ctor_set(x_469, 7, x_443); +lean_ctor_set(x_469, 8, x_444); +lean_ctor_set(x_469, 9, x_453); +lean_ctor_set(x_469, 10, x_455); +lean_ctor_set(x_469, 11, x_459); +lean_ctor_set(x_469, 12, x_461); +lean_ctor_set(x_469, 13, x_463); +lean_ctor_set(x_469, 14, x_464); +lean_ctor_set(x_469, 15, x_465); +lean_ctor_set(x_469, 16, x_466); +lean_ctor_set_uint8(x_469, sizeof(void*)*17, x_445); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 1, x_446); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 2, x_447); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 3, x_448); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 4, x_449); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 5, x_450); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 6, x_451); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 7, x_452); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 8, x_454); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 9, x_456); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 10, x_457); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 11, x_458); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 12, x_460); +lean_ctor_set_uint8(x_469, sizeof(void*)*17 + 13, x_462); +x_470 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_470, 0, x_468); +lean_ctor_set(x_470, 1, x_436); +lean_ctor_set(x_391, 1, x_469); +lean_ctor_set(x_391, 0, x_470); +return x_378; } } else { -lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; uint8_t x_494; uint8_t x_495; uint8_t x_496; uint8_t x_497; uint8_t x_498; uint8_t x_499; uint8_t x_500; lean_object* x_501; uint8_t x_502; lean_object* x_503; uint8_t x_504; uint8_t x_505; uint8_t x_506; lean_object* x_507; uint8_t x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -x_478 = lean_ctor_get(x_366, 0); -x_479 = lean_ctor_get(x_366, 1); +lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; uint8_t x_485; uint8_t x_486; uint8_t x_487; uint8_t x_488; uint8_t x_489; uint8_t x_490; uint8_t x_491; uint8_t x_492; lean_object* x_493; uint8_t x_494; lean_object* x_495; uint8_t x_496; uint8_t x_497; uint8_t x_498; lean_object* x_499; uint8_t x_500; lean_object* x_501; uint8_t x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +x_471 = lean_ctor_get(x_391, 0); +x_472 = lean_ctor_get(x_391, 1); +x_473 = lean_ctor_get(x_378, 1); +lean_inc(x_473); +lean_dec(x_378); +x_474 = lean_ctor_get(x_471, 0); +lean_inc(x_474); +x_475 = lean_ctor_get(x_471, 1); +lean_inc(x_475); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_476 = x_471; +} else { + lean_dec_ref(x_471); + x_476 = lean_box(0); +} +x_477 = lean_ctor_get(x_472, 0); +lean_inc(x_477); +x_478 = lean_ctor_get(x_472, 2); +lean_inc_ref(x_478); +x_479 = lean_ctor_get(x_472, 3); lean_inc(x_479); -lean_inc(x_478); -lean_dec(x_366); -x_480 = lean_ctor_get(x_353, 1); +x_480 = lean_ctor_get(x_472, 4); lean_inc(x_480); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - x_481 = x_353; -} else { - lean_dec_ref(x_353); - x_481 = lean_box(0); -} -x_482 = lean_ctor_get(x_478, 0); +x_481 = lean_ctor_get(x_472, 5); +lean_inc(x_481); +x_482 = lean_ctor_get(x_472, 6); lean_inc(x_482); -x_483 = lean_ctor_get(x_478, 1); -lean_inc(x_483); -if (lean_is_exclusive(x_478)) { - lean_ctor_release(x_478, 0); - lean_ctor_release(x_478, 1); - x_484 = x_478; -} else { - lean_dec_ref(x_478); - x_484 = lean_box(0); -} -x_485 = lean_ctor_get(x_479, 0); -lean_inc(x_485); -x_486 = lean_ctor_get(x_479, 2); -lean_inc_ref(x_486); -x_487 = lean_ctor_get(x_479, 3); -lean_inc(x_487); -x_488 = lean_ctor_get(x_479, 4); -lean_inc(x_488); -x_489 = lean_ctor_get(x_479, 5); -lean_inc(x_489); -x_490 = lean_ctor_get(x_479, 6); -lean_inc(x_490); -x_491 = lean_ctor_get(x_479, 7); -lean_inc_ref(x_491); -x_492 = lean_ctor_get(x_479, 8); -lean_inc(x_492); -x_493 = lean_ctor_get_uint8(x_479, sizeof(void*)*15); -x_494 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 1); -x_495 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 2); -x_496 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 3); -x_497 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 4); -x_498 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 5); -x_499 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 6); -x_500 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 7); -x_501 = lean_ctor_get(x_479, 9); +x_483 = lean_ctor_get(x_472, 7); +lean_inc_ref(x_483); +x_484 = lean_ctor_get(x_472, 8); +lean_inc(x_484); +x_485 = lean_ctor_get_uint8(x_472, sizeof(void*)*17); +x_486 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 1); +x_487 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 2); +x_488 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 3); +x_489 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 4); +x_490 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 5); +x_491 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 6); +x_492 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 7); +x_493 = lean_ctor_get(x_472, 9); +lean_inc(x_493); +x_494 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 8); +x_495 = lean_ctor_get(x_472, 10); +lean_inc(x_495); +x_496 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 9); +x_497 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 10); +x_498 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 11); +x_499 = lean_ctor_get(x_472, 11); +lean_inc(x_499); +x_500 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 12); +x_501 = lean_ctor_get(x_472, 12); lean_inc(x_501); -x_502 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 8); -x_503 = lean_ctor_get(x_479, 10); +x_502 = lean_ctor_get_uint8(x_472, sizeof(void*)*17 + 13); +x_503 = lean_ctor_get(x_472, 13); lean_inc(x_503); -x_504 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 9); -x_505 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 10); -x_506 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 11); -x_507 = lean_ctor_get(x_479, 11); -lean_inc(x_507); -x_508 = lean_ctor_get_uint8(x_479, sizeof(void*)*15 + 12); -x_509 = lean_ctor_get(x_479, 12); -lean_inc(x_509); -x_510 = lean_ctor_get(x_479, 13); -lean_inc(x_510); -x_511 = lean_ctor_get(x_479, 14); -lean_inc(x_511); -if (lean_is_exclusive(x_479)) { - lean_ctor_release(x_479, 0); - lean_ctor_release(x_479, 1); - lean_ctor_release(x_479, 2); - lean_ctor_release(x_479, 3); - lean_ctor_release(x_479, 4); - lean_ctor_release(x_479, 5); - lean_ctor_release(x_479, 6); - lean_ctor_release(x_479, 7); - lean_ctor_release(x_479, 8); - lean_ctor_release(x_479, 9); - lean_ctor_release(x_479, 10); - lean_ctor_release(x_479, 11); - lean_ctor_release(x_479, 12); - lean_ctor_release(x_479, 13); - lean_ctor_release(x_479, 14); - x_512 = x_479; +x_504 = lean_ctor_get(x_472, 14); +lean_inc(x_504); +x_505 = lean_ctor_get(x_472, 15); +lean_inc(x_505); +x_506 = lean_ctor_get(x_472, 16); +lean_inc(x_506); +if (lean_is_exclusive(x_472)) { + lean_ctor_release(x_472, 0); + lean_ctor_release(x_472, 1); + lean_ctor_release(x_472, 2); + lean_ctor_release(x_472, 3); + lean_ctor_release(x_472, 4); + lean_ctor_release(x_472, 5); + lean_ctor_release(x_472, 6); + lean_ctor_release(x_472, 7); + lean_ctor_release(x_472, 8); + lean_ctor_release(x_472, 9); + lean_ctor_release(x_472, 10); + lean_ctor_release(x_472, 11); + lean_ctor_release(x_472, 12); + lean_ctor_release(x_472, 13); + lean_ctor_release(x_472, 14); + lean_ctor_release(x_472, 15); + lean_ctor_release(x_472, 16); + x_507 = x_472; } else { - lean_dec_ref(x_479); - x_512 = lean_box(0); + lean_dec_ref(x_472); + x_507 = lean_box(0); } -x_513 = lean_box(0); -if (lean_is_scalar(x_512)) { - x_514 = lean_alloc_ctor(0, 15, 13); +x_508 = lean_box(0); +if (lean_is_scalar(x_507)) { + x_509 = lean_alloc_ctor(0, 17, 14); } else { - x_514 = x_512; + x_509 = x_507; } -lean_ctor_set(x_514, 0, x_485); -lean_ctor_set(x_514, 1, x_482); -lean_ctor_set(x_514, 2, x_486); -lean_ctor_set(x_514, 3, x_487); -lean_ctor_set(x_514, 4, x_488); -lean_ctor_set(x_514, 5, x_489); -lean_ctor_set(x_514, 6, x_490); -lean_ctor_set(x_514, 7, x_491); -lean_ctor_set(x_514, 8, x_492); -lean_ctor_set(x_514, 9, x_501); -lean_ctor_set(x_514, 10, x_503); -lean_ctor_set(x_514, 11, x_507); -lean_ctor_set(x_514, 12, x_509); -lean_ctor_set(x_514, 13, x_510); -lean_ctor_set(x_514, 14, x_511); -lean_ctor_set_uint8(x_514, sizeof(void*)*15, x_493); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 1, x_494); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 2, x_495); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 3, x_496); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 4, x_497); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 5, x_498); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 6, x_499); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 7, x_500); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 8, x_502); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 9, x_504); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 10, x_505); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 11, x_506); -lean_ctor_set_uint8(x_514, sizeof(void*)*15 + 12, x_508); -if (lean_is_scalar(x_484)) { - x_515 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_509, 0, x_477); +lean_ctor_set(x_509, 1, x_474); +lean_ctor_set(x_509, 2, x_478); +lean_ctor_set(x_509, 3, x_479); +lean_ctor_set(x_509, 4, x_480); +lean_ctor_set(x_509, 5, x_481); +lean_ctor_set(x_509, 6, x_482); +lean_ctor_set(x_509, 7, x_483); +lean_ctor_set(x_509, 8, x_484); +lean_ctor_set(x_509, 9, x_493); +lean_ctor_set(x_509, 10, x_495); +lean_ctor_set(x_509, 11, x_499); +lean_ctor_set(x_509, 12, x_501); +lean_ctor_set(x_509, 13, x_503); +lean_ctor_set(x_509, 14, x_504); +lean_ctor_set(x_509, 15, x_505); +lean_ctor_set(x_509, 16, x_506); +lean_ctor_set_uint8(x_509, sizeof(void*)*17, x_485); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 1, x_486); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 2, x_487); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 3, x_488); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 4, x_489); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 5, x_490); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 6, x_491); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 7, x_492); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 8, x_494); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 9, x_496); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 10, x_497); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 11, x_498); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 12, x_500); +lean_ctor_set_uint8(x_509, sizeof(void*)*17 + 13, x_502); +if (lean_is_scalar(x_476)) { + x_510 = lean_alloc_ctor(0, 2, 0); } else { - x_515 = x_484; + x_510 = x_476; } -lean_ctor_set(x_515, 0, x_513); -lean_ctor_set(x_515, 1, x_483); -x_516 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_516, 0, x_515); -lean_ctor_set(x_516, 1, x_514); -lean_ctor_set(x_354, 0, x_516); -if (lean_is_scalar(x_481)) { - x_517 = lean_alloc_ctor(0, 2, 0); -} else { - x_517 = x_481; -} -lean_ctor_set(x_517, 0, x_354); -lean_ctor_set(x_517, 1, x_480); -return x_517; +lean_ctor_set(x_510, 0, x_508); +lean_ctor_set(x_510, 1, x_475); +lean_ctor_set(x_391, 1, x_509); +lean_ctor_set(x_391, 0, x_510); +x_511 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_511, 0, x_379); +lean_ctor_set(x_511, 1, x_473); +return x_511; } } else { -lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; uint8_t x_535; uint8_t x_536; uint8_t x_537; uint8_t x_538; uint8_t x_539; uint8_t x_540; uint8_t x_541; uint8_t x_542; lean_object* x_543; uint8_t x_544; lean_object* x_545; uint8_t x_546; uint8_t x_547; uint8_t x_548; lean_object* x_549; uint8_t x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; -x_518 = lean_ctor_get(x_354, 0); -lean_inc(x_518); -lean_dec(x_354); -x_519 = lean_ctor_get(x_518, 0); +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; uint8_t x_527; uint8_t x_528; uint8_t x_529; uint8_t x_530; uint8_t x_531; uint8_t x_532; uint8_t x_533; uint8_t x_534; lean_object* x_535; uint8_t x_536; lean_object* x_537; uint8_t x_538; uint8_t x_539; uint8_t x_540; lean_object* x_541; uint8_t x_542; lean_object* x_543; uint8_t x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; +x_512 = lean_ctor_get(x_391, 0); +x_513 = lean_ctor_get(x_391, 1); +lean_inc(x_513); +lean_inc(x_512); +lean_dec(x_391); +x_514 = lean_ctor_get(x_378, 1); +lean_inc(x_514); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_515 = x_378; +} else { + lean_dec_ref(x_378); + x_515 = lean_box(0); +} +x_516 = lean_ctor_get(x_512, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_512, 1); +lean_inc(x_517); +if (lean_is_exclusive(x_512)) { + lean_ctor_release(x_512, 0); + lean_ctor_release(x_512, 1); + x_518 = x_512; +} else { + lean_dec_ref(x_512); + x_518 = lean_box(0); +} +x_519 = lean_ctor_get(x_513, 0); lean_inc(x_519); -x_520 = lean_ctor_get(x_518, 1); -lean_inc(x_520); -if (lean_is_exclusive(x_518)) { - lean_ctor_release(x_518, 0); - lean_ctor_release(x_518, 1); - x_521 = x_518; -} else { - lean_dec_ref(x_518); - x_521 = lean_box(0); -} -x_522 = lean_ctor_get(x_353, 1); +x_520 = lean_ctor_get(x_513, 2); +lean_inc_ref(x_520); +x_521 = lean_ctor_get(x_513, 3); +lean_inc(x_521); +x_522 = lean_ctor_get(x_513, 4); lean_inc(x_522); -if (lean_is_exclusive(x_353)) { - lean_ctor_release(x_353, 0); - lean_ctor_release(x_353, 1); - x_523 = x_353; -} else { - lean_dec_ref(x_353); - x_523 = lean_box(0); -} -x_524 = lean_ctor_get(x_519, 0); +x_523 = lean_ctor_get(x_513, 5); +lean_inc(x_523); +x_524 = lean_ctor_get(x_513, 6); lean_inc(x_524); -x_525 = lean_ctor_get(x_519, 1); -lean_inc(x_525); -if (lean_is_exclusive(x_519)) { - lean_ctor_release(x_519, 0); - lean_ctor_release(x_519, 1); - x_526 = x_519; -} else { - lean_dec_ref(x_519); - x_526 = lean_box(0); -} -x_527 = lean_ctor_get(x_520, 0); -lean_inc(x_527); -x_528 = lean_ctor_get(x_520, 2); -lean_inc_ref(x_528); -x_529 = lean_ctor_get(x_520, 3); -lean_inc(x_529); -x_530 = lean_ctor_get(x_520, 4); -lean_inc(x_530); -x_531 = lean_ctor_get(x_520, 5); -lean_inc(x_531); -x_532 = lean_ctor_get(x_520, 6); -lean_inc(x_532); -x_533 = lean_ctor_get(x_520, 7); -lean_inc_ref(x_533); -x_534 = lean_ctor_get(x_520, 8); -lean_inc(x_534); -x_535 = lean_ctor_get_uint8(x_520, sizeof(void*)*15); -x_536 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 1); -x_537 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 2); -x_538 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 3); -x_539 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 4); -x_540 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 5); -x_541 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 6); -x_542 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 7); -x_543 = lean_ctor_get(x_520, 9); +x_525 = lean_ctor_get(x_513, 7); +lean_inc_ref(x_525); +x_526 = lean_ctor_get(x_513, 8); +lean_inc(x_526); +x_527 = lean_ctor_get_uint8(x_513, sizeof(void*)*17); +x_528 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 1); +x_529 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 2); +x_530 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 3); +x_531 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 4); +x_532 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 5); +x_533 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 6); +x_534 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 7); +x_535 = lean_ctor_get(x_513, 9); +lean_inc(x_535); +x_536 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 8); +x_537 = lean_ctor_get(x_513, 10); +lean_inc(x_537); +x_538 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 9); +x_539 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 10); +x_540 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 11); +x_541 = lean_ctor_get(x_513, 11); +lean_inc(x_541); +x_542 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 12); +x_543 = lean_ctor_get(x_513, 12); lean_inc(x_543); -x_544 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 8); -x_545 = lean_ctor_get(x_520, 10); +x_544 = lean_ctor_get_uint8(x_513, sizeof(void*)*17 + 13); +x_545 = lean_ctor_get(x_513, 13); lean_inc(x_545); -x_546 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 9); -x_547 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 10); -x_548 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 11); -x_549 = lean_ctor_get(x_520, 11); -lean_inc(x_549); -x_550 = lean_ctor_get_uint8(x_520, sizeof(void*)*15 + 12); -x_551 = lean_ctor_get(x_520, 12); -lean_inc(x_551); -x_552 = lean_ctor_get(x_520, 13); -lean_inc(x_552); -x_553 = lean_ctor_get(x_520, 14); -lean_inc(x_553); -if (lean_is_exclusive(x_520)) { - lean_ctor_release(x_520, 0); - lean_ctor_release(x_520, 1); - lean_ctor_release(x_520, 2); - lean_ctor_release(x_520, 3); - lean_ctor_release(x_520, 4); - lean_ctor_release(x_520, 5); - lean_ctor_release(x_520, 6); - lean_ctor_release(x_520, 7); - lean_ctor_release(x_520, 8); - lean_ctor_release(x_520, 9); - lean_ctor_release(x_520, 10); - lean_ctor_release(x_520, 11); - lean_ctor_release(x_520, 12); - lean_ctor_release(x_520, 13); - lean_ctor_release(x_520, 14); - x_554 = x_520; +x_546 = lean_ctor_get(x_513, 14); +lean_inc(x_546); +x_547 = lean_ctor_get(x_513, 15); +lean_inc(x_547); +x_548 = lean_ctor_get(x_513, 16); +lean_inc(x_548); +if (lean_is_exclusive(x_513)) { + lean_ctor_release(x_513, 0); + lean_ctor_release(x_513, 1); + lean_ctor_release(x_513, 2); + lean_ctor_release(x_513, 3); + lean_ctor_release(x_513, 4); + lean_ctor_release(x_513, 5); + lean_ctor_release(x_513, 6); + lean_ctor_release(x_513, 7); + lean_ctor_release(x_513, 8); + lean_ctor_release(x_513, 9); + lean_ctor_release(x_513, 10); + lean_ctor_release(x_513, 11); + lean_ctor_release(x_513, 12); + lean_ctor_release(x_513, 13); + lean_ctor_release(x_513, 14); + lean_ctor_release(x_513, 15); + lean_ctor_release(x_513, 16); + x_549 = x_513; } else { - lean_dec_ref(x_520); - x_554 = lean_box(0); + lean_dec_ref(x_513); + x_549 = lean_box(0); } -x_555 = lean_box(0); -if (lean_is_scalar(x_554)) { - x_556 = lean_alloc_ctor(0, 15, 13); +x_550 = lean_box(0); +if (lean_is_scalar(x_549)) { + x_551 = lean_alloc_ctor(0, 17, 14); } else { - x_556 = x_554; + x_551 = x_549; } -lean_ctor_set(x_556, 0, x_527); -lean_ctor_set(x_556, 1, x_524); -lean_ctor_set(x_556, 2, x_528); -lean_ctor_set(x_556, 3, x_529); -lean_ctor_set(x_556, 4, x_530); -lean_ctor_set(x_556, 5, x_531); -lean_ctor_set(x_556, 6, x_532); -lean_ctor_set(x_556, 7, x_533); -lean_ctor_set(x_556, 8, x_534); -lean_ctor_set(x_556, 9, x_543); -lean_ctor_set(x_556, 10, x_545); -lean_ctor_set(x_556, 11, x_549); -lean_ctor_set(x_556, 12, x_551); -lean_ctor_set(x_556, 13, x_552); -lean_ctor_set(x_556, 14, x_553); -lean_ctor_set_uint8(x_556, sizeof(void*)*15, x_535); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 1, x_536); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 2, x_537); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 3, x_538); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 4, x_539); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 5, x_540); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 6, x_541); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 7, x_542); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 8, x_544); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 9, x_546); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 10, x_547); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 11, x_548); -lean_ctor_set_uint8(x_556, sizeof(void*)*15 + 12, x_550); -if (lean_is_scalar(x_526)) { - x_557 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_551, 0, x_519); +lean_ctor_set(x_551, 1, x_516); +lean_ctor_set(x_551, 2, x_520); +lean_ctor_set(x_551, 3, x_521); +lean_ctor_set(x_551, 4, x_522); +lean_ctor_set(x_551, 5, x_523); +lean_ctor_set(x_551, 6, x_524); +lean_ctor_set(x_551, 7, x_525); +lean_ctor_set(x_551, 8, x_526); +lean_ctor_set(x_551, 9, x_535); +lean_ctor_set(x_551, 10, x_537); +lean_ctor_set(x_551, 11, x_541); +lean_ctor_set(x_551, 12, x_543); +lean_ctor_set(x_551, 13, x_545); +lean_ctor_set(x_551, 14, x_546); +lean_ctor_set(x_551, 15, x_547); +lean_ctor_set(x_551, 16, x_548); +lean_ctor_set_uint8(x_551, sizeof(void*)*17, x_527); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 1, x_528); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 2, x_529); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 3, x_530); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 4, x_531); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 5, x_532); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 6, x_533); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 7, x_534); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 8, x_536); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 9, x_538); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 10, x_539); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 11, x_540); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 12, x_542); +lean_ctor_set_uint8(x_551, sizeof(void*)*17 + 13, x_544); +if (lean_is_scalar(x_518)) { + x_552 = lean_alloc_ctor(0, 2, 0); } else { - x_557 = x_526; + x_552 = x_518; } -lean_ctor_set(x_557, 0, x_555); -lean_ctor_set(x_557, 1, x_525); -if (lean_is_scalar(x_521)) { - x_558 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_552, 0, x_550); +lean_ctor_set(x_552, 1, x_517); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_551); +lean_ctor_set(x_379, 0, x_553); +if (lean_is_scalar(x_515)) { + x_554 = lean_alloc_ctor(0, 2, 0); } else { - x_558 = x_521; -} -lean_ctor_set(x_558, 0, x_557); -lean_ctor_set(x_558, 1, x_556); -x_559 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_559, 0, x_558); -if (lean_is_scalar(x_523)) { - x_560 = lean_alloc_ctor(0, 2, 0); -} else { - x_560 = x_523; -} -lean_ctor_set(x_560, 0, x_559); -lean_ctor_set(x_560, 1, x_522); -return x_560; -} + x_554 = x_515; } +lean_ctor_set(x_554, 0, x_379); +lean_ctor_set(x_554, 1, x_514); +return x_554; } } else { -lean_object* x_561; lean_object* x_562; lean_object* x_563; -lean_dec_ref(x_1); -x_561 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__30; -x_562 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_53, x_561, x_2, x_3, x_4); -x_563 = lean_ctor_get(x_562, 0); -lean_inc(x_563); -if (lean_obj_tag(x_563) == 0) -{ -uint8_t x_564; -x_564 = !lean_is_exclusive(x_562); -if (x_564 == 0) -{ -lean_object* x_565; uint8_t x_566; -x_565 = lean_ctor_get(x_562, 0); -lean_dec(x_565); -x_566 = !lean_is_exclusive(x_563); -if (x_566 == 0) -{ -return x_562; +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; uint8_t x_572; uint8_t x_573; uint8_t x_574; uint8_t x_575; uint8_t x_576; uint8_t x_577; uint8_t x_578; uint8_t x_579; lean_object* x_580; uint8_t x_581; lean_object* x_582; uint8_t x_583; uint8_t x_584; uint8_t x_585; lean_object* x_586; uint8_t x_587; lean_object* x_588; uint8_t x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; +x_555 = lean_ctor_get(x_379, 0); +lean_inc(x_555); +lean_dec(x_379); +x_556 = lean_ctor_get(x_555, 0); +lean_inc(x_556); +x_557 = lean_ctor_get(x_555, 1); +lean_inc(x_557); +if (lean_is_exclusive(x_555)) { + lean_ctor_release(x_555, 0); + lean_ctor_release(x_555, 1); + x_558 = x_555; +} else { + lean_dec_ref(x_555); + x_558 = lean_box(0); } -else -{ -lean_object* x_567; lean_object* x_568; -x_567 = lean_ctor_get(x_563, 0); +x_559 = lean_ctor_get(x_378, 1); +lean_inc(x_559); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_560 = x_378; +} else { + lean_dec_ref(x_378); + x_560 = lean_box(0); +} +x_561 = lean_ctor_get(x_556, 0); +lean_inc(x_561); +x_562 = lean_ctor_get(x_556, 1); +lean_inc(x_562); +if (lean_is_exclusive(x_556)) { + lean_ctor_release(x_556, 0); + lean_ctor_release(x_556, 1); + x_563 = x_556; +} else { + lean_dec_ref(x_556); + x_563 = lean_box(0); +} +x_564 = lean_ctor_get(x_557, 0); +lean_inc(x_564); +x_565 = lean_ctor_get(x_557, 2); +lean_inc_ref(x_565); +x_566 = lean_ctor_get(x_557, 3); +lean_inc(x_566); +x_567 = lean_ctor_get(x_557, 4); lean_inc(x_567); -lean_dec(x_563); -x_568 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_568, 0, x_567); -lean_ctor_set(x_562, 0, x_568); -return x_562; -} -} -else -{ -lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_569 = lean_ctor_get(x_562, 1); +x_568 = lean_ctor_get(x_557, 5); +lean_inc(x_568); +x_569 = lean_ctor_get(x_557, 6); lean_inc(x_569); -lean_dec(x_562); -x_570 = lean_ctor_get(x_563, 0); -lean_inc(x_570); -if (lean_is_exclusive(x_563)) { - lean_ctor_release(x_563, 0); - x_571 = x_563; -} else { - lean_dec_ref(x_563); - x_571 = lean_box(0); -} -if (lean_is_scalar(x_571)) { - x_572 = lean_alloc_ctor(0, 1, 0); -} else { - x_572 = x_571; -} -lean_ctor_set(x_572, 0, x_570); -x_573 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_573, 0, x_572); -lean_ctor_set(x_573, 1, x_569); -return x_573; -} -} -else -{ -uint8_t x_574; -x_574 = !lean_is_exclusive(x_563); -if (x_574 == 0) -{ -lean_object* x_575; lean_object* x_576; lean_object* x_577; uint8_t x_578; -x_575 = lean_ctor_get(x_563, 0); -x_576 = lean_ctor_get(x_575, 0); -lean_inc(x_576); -x_577 = lean_ctor_get(x_562, 1); -lean_inc(x_577); -lean_dec_ref(x_562); -x_578 = !lean_is_exclusive(x_575); -if (x_578 == 0) -{ -lean_object* x_579; lean_object* x_580; uint8_t x_581; -x_579 = lean_ctor_get(x_575, 1); -x_580 = lean_ctor_get(x_575, 0); -lean_dec(x_580); -x_581 = !lean_is_exclusive(x_576); -if (x_581 == 0) -{ -lean_object* x_582; lean_object* x_583; lean_object* x_584; -x_582 = lean_ctor_get(x_576, 0); -x_583 = lean_ctor_get(x_576, 1); -x_584 = l_Lake_Manifest_loadEntries(x_582, x_577); -if (lean_obj_tag(x_584) == 0) -{ -uint8_t x_585; -x_585 = !lean_is_exclusive(x_584); -if (x_585 == 0) -{ -uint8_t x_586; -x_586 = !lean_is_exclusive(x_579); -if (x_586 == 0) -{ -lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; -x_587 = lean_ctor_get(x_584, 0); -x_588 = lean_ctor_get(x_579, 7); -x_589 = lean_box(0); -x_590 = l_Array_append___redArg(x_588, x_587); -lean_dec(x_587); -lean_ctor_set(x_579, 7, x_590); -lean_ctor_set(x_576, 0, x_589); -lean_ctor_set(x_584, 0, x_563); -return x_584; -} -else -{ -lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; uint8_t x_601; uint8_t x_602; uint8_t x_603; uint8_t x_604; uint8_t x_605; uint8_t x_606; uint8_t x_607; uint8_t x_608; lean_object* x_609; uint8_t x_610; lean_object* x_611; uint8_t x_612; uint8_t x_613; uint8_t x_614; lean_object* x_615; uint8_t x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; -x_591 = lean_ctor_get(x_584, 0); -x_592 = lean_ctor_get(x_579, 0); -x_593 = lean_ctor_get(x_579, 1); -x_594 = lean_ctor_get(x_579, 2); -x_595 = lean_ctor_get(x_579, 3); -x_596 = lean_ctor_get(x_579, 4); -x_597 = lean_ctor_get(x_579, 5); -x_598 = lean_ctor_get(x_579, 6); -x_599 = lean_ctor_get(x_579, 7); -x_600 = lean_ctor_get(x_579, 8); -x_601 = lean_ctor_get_uint8(x_579, sizeof(void*)*15); -x_602 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 1); -x_603 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 2); -x_604 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 3); -x_605 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 4); -x_606 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 5); -x_607 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 6); -x_608 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 7); -x_609 = lean_ctor_get(x_579, 9); -x_610 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 8); -x_611 = lean_ctor_get(x_579, 10); -x_612 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 9); -x_613 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 10); -x_614 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 11); -x_615 = lean_ctor_get(x_579, 11); -x_616 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 12); -x_617 = lean_ctor_get(x_579, 12); -x_618 = lean_ctor_get(x_579, 13); -x_619 = lean_ctor_get(x_579, 14); -lean_inc(x_619); -lean_inc(x_618); -lean_inc(x_617); -lean_inc(x_615); -lean_inc(x_611); -lean_inc(x_609); -lean_inc(x_600); -lean_inc(x_599); -lean_inc(x_598); -lean_inc(x_597); -lean_inc(x_596); -lean_inc(x_595); -lean_inc(x_594); -lean_inc(x_593); +x_570 = lean_ctor_get(x_557, 7); +lean_inc_ref(x_570); +x_571 = lean_ctor_get(x_557, 8); +lean_inc(x_571); +x_572 = lean_ctor_get_uint8(x_557, sizeof(void*)*17); +x_573 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 1); +x_574 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 2); +x_575 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 3); +x_576 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 4); +x_577 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 5); +x_578 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 6); +x_579 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 7); +x_580 = lean_ctor_get(x_557, 9); +lean_inc(x_580); +x_581 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 8); +x_582 = lean_ctor_get(x_557, 10); +lean_inc(x_582); +x_583 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 9); +x_584 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 10); +x_585 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 11); +x_586 = lean_ctor_get(x_557, 11); +lean_inc(x_586); +x_587 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 12); +x_588 = lean_ctor_get(x_557, 12); +lean_inc(x_588); +x_589 = lean_ctor_get_uint8(x_557, sizeof(void*)*17 + 13); +x_590 = lean_ctor_get(x_557, 13); +lean_inc(x_590); +x_591 = lean_ctor_get(x_557, 14); +lean_inc(x_591); +x_592 = lean_ctor_get(x_557, 15); lean_inc(x_592); -lean_dec(x_579); -x_620 = lean_box(0); -x_621 = l_Array_append___redArg(x_599, x_591); -lean_dec(x_591); -x_622 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_622, 0, x_592); -lean_ctor_set(x_622, 1, x_593); -lean_ctor_set(x_622, 2, x_594); -lean_ctor_set(x_622, 3, x_595); -lean_ctor_set(x_622, 4, x_596); -lean_ctor_set(x_622, 5, x_597); -lean_ctor_set(x_622, 6, x_598); -lean_ctor_set(x_622, 7, x_621); -lean_ctor_set(x_622, 8, x_600); -lean_ctor_set(x_622, 9, x_609); -lean_ctor_set(x_622, 10, x_611); -lean_ctor_set(x_622, 11, x_615); -lean_ctor_set(x_622, 12, x_617); -lean_ctor_set(x_622, 13, x_618); -lean_ctor_set(x_622, 14, x_619); -lean_ctor_set_uint8(x_622, sizeof(void*)*15, x_601); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 1, x_602); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 2, x_603); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 3, x_604); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 4, x_605); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 5, x_606); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 6, x_607); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 7, x_608); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 8, x_610); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 9, x_612); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 10, x_613); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 11, x_614); -lean_ctor_set_uint8(x_622, sizeof(void*)*15 + 12, x_616); -lean_ctor_set(x_576, 0, x_620); -lean_ctor_set(x_575, 1, x_622); -lean_ctor_set(x_584, 0, x_563); -return x_584; +x_593 = lean_ctor_get(x_557, 16); +lean_inc(x_593); +if (lean_is_exclusive(x_557)) { + lean_ctor_release(x_557, 0); + lean_ctor_release(x_557, 1); + lean_ctor_release(x_557, 2); + lean_ctor_release(x_557, 3); + lean_ctor_release(x_557, 4); + lean_ctor_release(x_557, 5); + lean_ctor_release(x_557, 6); + lean_ctor_release(x_557, 7); + lean_ctor_release(x_557, 8); + lean_ctor_release(x_557, 9); + lean_ctor_release(x_557, 10); + lean_ctor_release(x_557, 11); + lean_ctor_release(x_557, 12); + lean_ctor_release(x_557, 13); + lean_ctor_release(x_557, 14); + lean_ctor_release(x_557, 15); + lean_ctor_release(x_557, 16); + x_594 = x_557; +} else { + lean_dec_ref(x_557); + x_594 = lean_box(0); +} +x_595 = lean_box(0); +if (lean_is_scalar(x_594)) { + x_596 = lean_alloc_ctor(0, 17, 14); +} else { + x_596 = x_594; +} +lean_ctor_set(x_596, 0, x_564); +lean_ctor_set(x_596, 1, x_561); +lean_ctor_set(x_596, 2, x_565); +lean_ctor_set(x_596, 3, x_566); +lean_ctor_set(x_596, 4, x_567); +lean_ctor_set(x_596, 5, x_568); +lean_ctor_set(x_596, 6, x_569); +lean_ctor_set(x_596, 7, x_570); +lean_ctor_set(x_596, 8, x_571); +lean_ctor_set(x_596, 9, x_580); +lean_ctor_set(x_596, 10, x_582); +lean_ctor_set(x_596, 11, x_586); +lean_ctor_set(x_596, 12, x_588); +lean_ctor_set(x_596, 13, x_590); +lean_ctor_set(x_596, 14, x_591); +lean_ctor_set(x_596, 15, x_592); +lean_ctor_set(x_596, 16, x_593); +lean_ctor_set_uint8(x_596, sizeof(void*)*17, x_572); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 1, x_573); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 2, x_574); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 3, x_575); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 4, x_576); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 5, x_577); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 6, x_578); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 7, x_579); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 8, x_581); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 9, x_583); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 10, x_584); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 11, x_585); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 12, x_587); +lean_ctor_set_uint8(x_596, sizeof(void*)*17 + 13, x_589); +if (lean_is_scalar(x_563)) { + x_597 = lean_alloc_ctor(0, 2, 0); +} else { + x_597 = x_563; +} +lean_ctor_set(x_597, 0, x_595); +lean_ctor_set(x_597, 1, x_562); +if (lean_is_scalar(x_558)) { + x_598 = lean_alloc_ctor(0, 2, 0); +} else { + x_598 = x_558; +} +lean_ctor_set(x_598, 0, x_597); +lean_ctor_set(x_598, 1, x_596); +x_599 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_599, 0, x_598); +if (lean_is_scalar(x_560)) { + x_600 = lean_alloc_ctor(0, 2, 0); +} else { + x_600 = x_560; +} +lean_ctor_set(x_600, 0, x_599); +lean_ctor_set(x_600, 1, x_559); +return x_600; +} +} } } else { -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; uint8_t x_634; uint8_t x_635; uint8_t x_636; uint8_t x_637; uint8_t x_638; uint8_t x_639; uint8_t x_640; uint8_t x_641; lean_object* x_642; uint8_t x_643; lean_object* x_644; uint8_t x_645; uint8_t x_646; uint8_t x_647; lean_object* x_648; uint8_t x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; -x_623 = lean_ctor_get(x_584, 0); -x_624 = lean_ctor_get(x_584, 1); -lean_inc(x_624); -lean_inc(x_623); -lean_dec(x_584); -x_625 = lean_ctor_get(x_579, 0); -lean_inc(x_625); -x_626 = lean_ctor_get(x_579, 1); -lean_inc_ref(x_626); -x_627 = lean_ctor_get(x_579, 2); -lean_inc_ref(x_627); -x_628 = lean_ctor_get(x_579, 3); -lean_inc(x_628); -x_629 = lean_ctor_get(x_579, 4); -lean_inc(x_629); -x_630 = lean_ctor_get(x_579, 5); -lean_inc(x_630); -x_631 = lean_ctor_get(x_579, 6); -lean_inc(x_631); -x_632 = lean_ctor_get(x_579, 7); -lean_inc_ref(x_632); -x_633 = lean_ctor_get(x_579, 8); -lean_inc(x_633); -x_634 = lean_ctor_get_uint8(x_579, sizeof(void*)*15); -x_635 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 1); -x_636 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 2); -x_637 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 3); -x_638 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 4); -x_639 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 5); -x_640 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 6); -x_641 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 7); -x_642 = lean_ctor_get(x_579, 9); -lean_inc(x_642); -x_643 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 8); -x_644 = lean_ctor_get(x_579, 10); -lean_inc(x_644); -x_645 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 9); -x_646 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 10); -x_647 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 11); -x_648 = lean_ctor_get(x_579, 11); -lean_inc(x_648); -x_649 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 12); -x_650 = lean_ctor_get(x_579, 12); -lean_inc(x_650); -x_651 = lean_ctor_get(x_579, 13); -lean_inc(x_651); -x_652 = lean_ctor_get(x_579, 14); -lean_inc(x_652); -if (lean_is_exclusive(x_579)) { - lean_ctor_release(x_579, 0); - lean_ctor_release(x_579, 1); - lean_ctor_release(x_579, 2); - lean_ctor_release(x_579, 3); - lean_ctor_release(x_579, 4); - lean_ctor_release(x_579, 5); - lean_ctor_release(x_579, 6); - lean_ctor_release(x_579, 7); - lean_ctor_release(x_579, 8); - lean_ctor_release(x_579, 9); - lean_ctor_release(x_579, 10); - lean_ctor_release(x_579, 11); - lean_ctor_release(x_579, 12); - lean_ctor_release(x_579, 13); - lean_ctor_release(x_579, 14); - x_653 = x_579; -} else { - lean_dec_ref(x_579); - x_653 = lean_box(0); +lean_object* x_601; lean_object* x_602; lean_object* x_603; +lean_dec_ref(x_1); +x_601 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; +x_602 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_57, x_601, x_2, x_3, x_4); +x_603 = lean_ctor_get(x_602, 0); +lean_inc(x_603); +if (lean_obj_tag(x_603) == 0) +{ +uint8_t x_604; +x_604 = !lean_is_exclusive(x_602); +if (x_604 == 0) +{ +lean_object* x_605; uint8_t x_606; +x_605 = lean_ctor_get(x_602, 0); +lean_dec(x_605); +x_606 = !lean_is_exclusive(x_603); +if (x_606 == 0) +{ +return x_602; } -x_654 = lean_box(0); -x_655 = l_Array_append___redArg(x_632, x_623); -lean_dec(x_623); -if (lean_is_scalar(x_653)) { - x_656 = lean_alloc_ctor(0, 15, 13); -} else { - x_656 = x_653; -} -lean_ctor_set(x_656, 0, x_625); -lean_ctor_set(x_656, 1, x_626); -lean_ctor_set(x_656, 2, x_627); -lean_ctor_set(x_656, 3, x_628); -lean_ctor_set(x_656, 4, x_629); -lean_ctor_set(x_656, 5, x_630); -lean_ctor_set(x_656, 6, x_631); -lean_ctor_set(x_656, 7, x_655); -lean_ctor_set(x_656, 8, x_633); -lean_ctor_set(x_656, 9, x_642); -lean_ctor_set(x_656, 10, x_644); -lean_ctor_set(x_656, 11, x_648); -lean_ctor_set(x_656, 12, x_650); -lean_ctor_set(x_656, 13, x_651); -lean_ctor_set(x_656, 14, x_652); -lean_ctor_set_uint8(x_656, sizeof(void*)*15, x_634); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 1, x_635); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 2, x_636); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 3, x_637); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 4, x_638); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 5, x_639); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 6, x_640); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 7, x_641); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 8, x_643); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 9, x_645); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 10, x_646); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 11, x_647); -lean_ctor_set_uint8(x_656, sizeof(void*)*15 + 12, x_649); -lean_ctor_set(x_576, 0, x_654); -lean_ctor_set(x_575, 1, x_656); -x_657 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_657, 0, x_563); -lean_ctor_set(x_657, 1, x_624); -return x_657; +else +{ +lean_object* x_607; lean_object* x_608; +x_607 = lean_ctor_get(x_603, 0); +lean_inc(x_607); +lean_dec(x_603); +x_608 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_608, 0, x_607); +lean_ctor_set(x_602, 0, x_608); +return x_602; } } else { -lean_object* x_658; lean_object* x_659; lean_object* x_660; uint8_t x_661; uint8_t x_662; lean_object* x_663; uint8_t x_664; lean_object* x_665; lean_object* x_666; uint8_t x_667; -lean_free_object(x_576); -lean_dec(x_583); -lean_free_object(x_575); -lean_dec(x_579); -lean_free_object(x_563); -x_658 = lean_ctor_get(x_584, 0); -lean_inc(x_658); -x_659 = lean_ctor_get(x_584, 1); +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; +x_609 = lean_ctor_get(x_602, 1); +lean_inc(x_609); +lean_dec(x_602); +x_610 = lean_ctor_get(x_603, 0); +lean_inc(x_610); +if (lean_is_exclusive(x_603)) { + lean_ctor_release(x_603, 0); + x_611 = x_603; +} else { + lean_dec_ref(x_603); + x_611 = lean_box(0); +} +if (lean_is_scalar(x_611)) { + x_612 = lean_alloc_ctor(0, 1, 0); +} else { + x_612 = x_611; +} +lean_ctor_set(x_612, 0, x_610); +x_613 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_613, 0, x_612); +lean_ctor_set(x_613, 1, x_609); +return x_613; +} +} +else +{ +uint8_t x_614; +x_614 = !lean_is_exclusive(x_603); +if (x_614 == 0) +{ +lean_object* x_615; lean_object* x_616; lean_object* x_617; uint8_t x_618; +x_615 = lean_ctor_get(x_603, 0); +x_616 = lean_ctor_get(x_615, 0); +lean_inc(x_616); +x_617 = lean_ctor_get(x_602, 1); +lean_inc(x_617); +lean_dec_ref(x_602); +x_618 = !lean_is_exclusive(x_615); +if (x_618 == 0) +{ +lean_object* x_619; lean_object* x_620; uint8_t x_621; +x_619 = lean_ctor_get(x_615, 1); +x_620 = lean_ctor_get(x_615, 0); +lean_dec(x_620); +x_621 = !lean_is_exclusive(x_616); +if (x_621 == 0) +{ +lean_object* x_622; lean_object* x_623; lean_object* x_624; +x_622 = lean_ctor_get(x_616, 0); +x_623 = lean_ctor_get(x_616, 1); +x_624 = l_Lake_Manifest_loadEntries(x_622, x_617); +if (lean_obj_tag(x_624) == 0) +{ +uint8_t x_625; +x_625 = !lean_is_exclusive(x_624); +if (x_625 == 0) +{ +uint8_t x_626; +x_626 = !lean_is_exclusive(x_619); +if (x_626 == 0) +{ +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_627 = lean_ctor_get(x_624, 0); +x_628 = lean_ctor_get(x_619, 7); +x_629 = lean_box(0); +x_630 = l_Array_append___redArg(x_628, x_627); +lean_dec(x_627); +lean_ctor_set(x_619, 7, x_630); +lean_ctor_set(x_616, 0, x_629); +lean_ctor_set(x_624, 0, x_603); +return x_624; +} +else +{ +lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; uint8_t x_641; uint8_t x_642; uint8_t x_643; uint8_t x_644; uint8_t x_645; uint8_t x_646; uint8_t x_647; uint8_t x_648; lean_object* x_649; uint8_t x_650; lean_object* x_651; uint8_t x_652; uint8_t x_653; uint8_t x_654; lean_object* x_655; uint8_t x_656; lean_object* x_657; uint8_t x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; +x_631 = lean_ctor_get(x_624, 0); +x_632 = lean_ctor_get(x_619, 0); +x_633 = lean_ctor_get(x_619, 1); +x_634 = lean_ctor_get(x_619, 2); +x_635 = lean_ctor_get(x_619, 3); +x_636 = lean_ctor_get(x_619, 4); +x_637 = lean_ctor_get(x_619, 5); +x_638 = lean_ctor_get(x_619, 6); +x_639 = lean_ctor_get(x_619, 7); +x_640 = lean_ctor_get(x_619, 8); +x_641 = lean_ctor_get_uint8(x_619, sizeof(void*)*17); +x_642 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 1); +x_643 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 2); +x_644 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 3); +x_645 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 4); +x_646 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 5); +x_647 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 6); +x_648 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 7); +x_649 = lean_ctor_get(x_619, 9); +x_650 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 8); +x_651 = lean_ctor_get(x_619, 10); +x_652 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 9); +x_653 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 10); +x_654 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 11); +x_655 = lean_ctor_get(x_619, 11); +x_656 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 12); +x_657 = lean_ctor_get(x_619, 12); +x_658 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 13); +x_659 = lean_ctor_get(x_619, 13); +x_660 = lean_ctor_get(x_619, 14); +x_661 = lean_ctor_get(x_619, 15); +x_662 = lean_ctor_get(x_619, 16); +lean_inc(x_662); +lean_inc(x_661); +lean_inc(x_660); lean_inc(x_659); -lean_dec_ref(x_584); -x_660 = lean_io_error_to_string(x_658); -x_661 = 1; -x_662 = 0; -x_663 = lean_box(1); -x_664 = 3; -x_665 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_665, 0, x_660); -lean_ctor_set_uint8(x_665, sizeof(void*)*1, x_664); -x_666 = l_Lake_OutStream_logEntry(x_663, x_665, x_661, x_662, x_659); -lean_dec_ref(x_665); -x_667 = !lean_is_exclusive(x_666); -if (x_667 == 0) -{ -lean_object* x_668; lean_object* x_669; -x_668 = lean_ctor_get(x_666, 0); -lean_dec(x_668); -x_669 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -lean_ctor_set_tag(x_666, 1); -lean_ctor_set(x_666, 0, x_669); -return x_666; -} -else -{ -lean_object* x_670; lean_object* x_671; lean_object* x_672; -x_670 = lean_ctor_get(x_666, 1); -lean_inc(x_670); -lean_dec(x_666); -x_671 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -x_672 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_672, 0, x_671); -lean_ctor_set(x_672, 1, x_670); -return x_672; -} +lean_inc(x_657); +lean_inc(x_655); +lean_inc(x_651); +lean_inc(x_649); +lean_inc(x_640); +lean_inc(x_639); +lean_inc(x_638); +lean_inc(x_637); +lean_inc(x_636); +lean_inc(x_635); +lean_inc(x_634); +lean_inc(x_633); +lean_inc(x_632); +lean_dec(x_619); +x_663 = lean_box(0); +x_664 = l_Array_append___redArg(x_639, x_631); +lean_dec(x_631); +x_665 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_665, 0, x_632); +lean_ctor_set(x_665, 1, x_633); +lean_ctor_set(x_665, 2, x_634); +lean_ctor_set(x_665, 3, x_635); +lean_ctor_set(x_665, 4, x_636); +lean_ctor_set(x_665, 5, x_637); +lean_ctor_set(x_665, 6, x_638); +lean_ctor_set(x_665, 7, x_664); +lean_ctor_set(x_665, 8, x_640); +lean_ctor_set(x_665, 9, x_649); +lean_ctor_set(x_665, 10, x_651); +lean_ctor_set(x_665, 11, x_655); +lean_ctor_set(x_665, 12, x_657); +lean_ctor_set(x_665, 13, x_659); +lean_ctor_set(x_665, 14, x_660); +lean_ctor_set(x_665, 15, x_661); +lean_ctor_set(x_665, 16, x_662); +lean_ctor_set_uint8(x_665, sizeof(void*)*17, x_641); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 1, x_642); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 2, x_643); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 3, x_644); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 4, x_645); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 5, x_646); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 6, x_647); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 7, x_648); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 8, x_650); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 9, x_652); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 10, x_653); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 11, x_654); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 12, x_656); +lean_ctor_set_uint8(x_665, sizeof(void*)*17 + 13, x_658); +lean_ctor_set(x_616, 0, x_663); +lean_ctor_set(x_615, 1, x_665); +lean_ctor_set(x_624, 0, x_603); +return x_624; } } else { -lean_object* x_673; lean_object* x_674; lean_object* x_675; -x_673 = lean_ctor_get(x_576, 0); -x_674 = lean_ctor_get(x_576, 1); -lean_inc(x_674); +lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; uint8_t x_677; uint8_t x_678; uint8_t x_679; uint8_t x_680; uint8_t x_681; uint8_t x_682; uint8_t x_683; uint8_t x_684; lean_object* x_685; uint8_t x_686; lean_object* x_687; uint8_t x_688; uint8_t x_689; uint8_t x_690; lean_object* x_691; uint8_t x_692; lean_object* x_693; uint8_t x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; +x_666 = lean_ctor_get(x_624, 0); +x_667 = lean_ctor_get(x_624, 1); +lean_inc(x_667); +lean_inc(x_666); +lean_dec(x_624); +x_668 = lean_ctor_get(x_619, 0); +lean_inc(x_668); +x_669 = lean_ctor_get(x_619, 1); +lean_inc_ref(x_669); +x_670 = lean_ctor_get(x_619, 2); +lean_inc_ref(x_670); +x_671 = lean_ctor_get(x_619, 3); +lean_inc(x_671); +x_672 = lean_ctor_get(x_619, 4); +lean_inc(x_672); +x_673 = lean_ctor_get(x_619, 5); lean_inc(x_673); -lean_dec(x_576); -x_675 = l_Lake_Manifest_loadEntries(x_673, x_577); -if (lean_obj_tag(x_675) == 0) -{ -lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; uint8_t x_688; uint8_t x_689; uint8_t x_690; uint8_t x_691; uint8_t x_692; uint8_t x_693; uint8_t x_694; uint8_t x_695; lean_object* x_696; uint8_t x_697; lean_object* x_698; uint8_t x_699; uint8_t x_700; uint8_t x_701; lean_object* x_702; uint8_t x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; -x_676 = lean_ctor_get(x_675, 0); +x_674 = lean_ctor_get(x_619, 6); +lean_inc(x_674); +x_675 = lean_ctor_get(x_619, 7); +lean_inc_ref(x_675); +x_676 = lean_ctor_get(x_619, 8); lean_inc(x_676); -x_677 = lean_ctor_get(x_675, 1); -lean_inc(x_677); -if (lean_is_exclusive(x_675)) { - lean_ctor_release(x_675, 0); - lean_ctor_release(x_675, 1); - x_678 = x_675; -} else { - lean_dec_ref(x_675); - x_678 = lean_box(0); -} -x_679 = lean_ctor_get(x_579, 0); -lean_inc(x_679); -x_680 = lean_ctor_get(x_579, 1); -lean_inc_ref(x_680); -x_681 = lean_ctor_get(x_579, 2); -lean_inc_ref(x_681); -x_682 = lean_ctor_get(x_579, 3); -lean_inc(x_682); -x_683 = lean_ctor_get(x_579, 4); -lean_inc(x_683); -x_684 = lean_ctor_get(x_579, 5); -lean_inc(x_684); -x_685 = lean_ctor_get(x_579, 6); +x_677 = lean_ctor_get_uint8(x_619, sizeof(void*)*17); +x_678 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 1); +x_679 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 2); +x_680 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 3); +x_681 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 4); +x_682 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 5); +x_683 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 6); +x_684 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 7); +x_685 = lean_ctor_get(x_619, 9); lean_inc(x_685); -x_686 = lean_ctor_get(x_579, 7); -lean_inc_ref(x_686); -x_687 = lean_ctor_get(x_579, 8); +x_686 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 8); +x_687 = lean_ctor_get(x_619, 10); lean_inc(x_687); -x_688 = lean_ctor_get_uint8(x_579, sizeof(void*)*15); -x_689 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 1); -x_690 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 2); -x_691 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 3); -x_692 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 4); -x_693 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 5); -x_694 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 6); -x_695 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 7); -x_696 = lean_ctor_get(x_579, 9); +x_688 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 9); +x_689 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 10); +x_690 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 11); +x_691 = lean_ctor_get(x_619, 11); +lean_inc(x_691); +x_692 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 12); +x_693 = lean_ctor_get(x_619, 12); +lean_inc(x_693); +x_694 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 13); +x_695 = lean_ctor_get(x_619, 13); +lean_inc(x_695); +x_696 = lean_ctor_get(x_619, 14); lean_inc(x_696); -x_697 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 8); -x_698 = lean_ctor_get(x_579, 10); +x_697 = lean_ctor_get(x_619, 15); +lean_inc(x_697); +x_698 = lean_ctor_get(x_619, 16); lean_inc(x_698); -x_699 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 9); -x_700 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 10); -x_701 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 11); -x_702 = lean_ctor_get(x_579, 11); -lean_inc(x_702); -x_703 = lean_ctor_get_uint8(x_579, sizeof(void*)*15 + 12); -x_704 = lean_ctor_get(x_579, 12); +if (lean_is_exclusive(x_619)) { + lean_ctor_release(x_619, 0); + lean_ctor_release(x_619, 1); + lean_ctor_release(x_619, 2); + lean_ctor_release(x_619, 3); + lean_ctor_release(x_619, 4); + lean_ctor_release(x_619, 5); + lean_ctor_release(x_619, 6); + lean_ctor_release(x_619, 7); + lean_ctor_release(x_619, 8); + lean_ctor_release(x_619, 9); + lean_ctor_release(x_619, 10); + lean_ctor_release(x_619, 11); + lean_ctor_release(x_619, 12); + lean_ctor_release(x_619, 13); + lean_ctor_release(x_619, 14); + lean_ctor_release(x_619, 15); + lean_ctor_release(x_619, 16); + x_699 = x_619; +} else { + lean_dec_ref(x_619); + x_699 = lean_box(0); +} +x_700 = lean_box(0); +x_701 = l_Array_append___redArg(x_675, x_666); +lean_dec(x_666); +if (lean_is_scalar(x_699)) { + x_702 = lean_alloc_ctor(0, 17, 14); +} else { + x_702 = x_699; +} +lean_ctor_set(x_702, 0, x_668); +lean_ctor_set(x_702, 1, x_669); +lean_ctor_set(x_702, 2, x_670); +lean_ctor_set(x_702, 3, x_671); +lean_ctor_set(x_702, 4, x_672); +lean_ctor_set(x_702, 5, x_673); +lean_ctor_set(x_702, 6, x_674); +lean_ctor_set(x_702, 7, x_701); +lean_ctor_set(x_702, 8, x_676); +lean_ctor_set(x_702, 9, x_685); +lean_ctor_set(x_702, 10, x_687); +lean_ctor_set(x_702, 11, x_691); +lean_ctor_set(x_702, 12, x_693); +lean_ctor_set(x_702, 13, x_695); +lean_ctor_set(x_702, 14, x_696); +lean_ctor_set(x_702, 15, x_697); +lean_ctor_set(x_702, 16, x_698); +lean_ctor_set_uint8(x_702, sizeof(void*)*17, x_677); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 1, x_678); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 2, x_679); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 3, x_680); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 4, x_681); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 5, x_682); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 6, x_683); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 7, x_684); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 8, x_686); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 9, x_688); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 10, x_689); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 11, x_690); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 12, x_692); +lean_ctor_set_uint8(x_702, sizeof(void*)*17 + 13, x_694); +lean_ctor_set(x_616, 0, x_700); +lean_ctor_set(x_615, 1, x_702); +x_703 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_703, 0, x_603); +lean_ctor_set(x_703, 1, x_667); +return x_703; +} +} +else +{ +lean_object* x_704; lean_object* x_705; lean_object* x_706; uint8_t x_707; uint8_t x_708; lean_object* x_709; uint8_t x_710; lean_object* x_711; lean_object* x_712; uint8_t x_713; +lean_free_object(x_616); +lean_dec(x_623); +lean_free_object(x_615); +lean_dec(x_619); +lean_free_object(x_603); +x_704 = lean_ctor_get(x_624, 0); lean_inc(x_704); -x_705 = lean_ctor_get(x_579, 13); +x_705 = lean_ctor_get(x_624, 1); lean_inc(x_705); -x_706 = lean_ctor_get(x_579, 14); -lean_inc(x_706); -if (lean_is_exclusive(x_579)) { - lean_ctor_release(x_579, 0); - lean_ctor_release(x_579, 1); - lean_ctor_release(x_579, 2); - lean_ctor_release(x_579, 3); - lean_ctor_release(x_579, 4); - lean_ctor_release(x_579, 5); - lean_ctor_release(x_579, 6); - lean_ctor_release(x_579, 7); - lean_ctor_release(x_579, 8); - lean_ctor_release(x_579, 9); - lean_ctor_release(x_579, 10); - lean_ctor_release(x_579, 11); - lean_ctor_release(x_579, 12); - lean_ctor_release(x_579, 13); - lean_ctor_release(x_579, 14); - x_707 = x_579; -} else { - lean_dec_ref(x_579); - x_707 = lean_box(0); -} -x_708 = lean_box(0); -x_709 = l_Array_append___redArg(x_686, x_676); -lean_dec(x_676); -if (lean_is_scalar(x_707)) { - x_710 = lean_alloc_ctor(0, 15, 13); -} else { - x_710 = x_707; -} -lean_ctor_set(x_710, 0, x_679); -lean_ctor_set(x_710, 1, x_680); -lean_ctor_set(x_710, 2, x_681); -lean_ctor_set(x_710, 3, x_682); -lean_ctor_set(x_710, 4, x_683); -lean_ctor_set(x_710, 5, x_684); -lean_ctor_set(x_710, 6, x_685); -lean_ctor_set(x_710, 7, x_709); -lean_ctor_set(x_710, 8, x_687); -lean_ctor_set(x_710, 9, x_696); -lean_ctor_set(x_710, 10, x_698); -lean_ctor_set(x_710, 11, x_702); -lean_ctor_set(x_710, 12, x_704); -lean_ctor_set(x_710, 13, x_705); -lean_ctor_set(x_710, 14, x_706); -lean_ctor_set_uint8(x_710, sizeof(void*)*15, x_688); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 1, x_689); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 2, x_690); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 3, x_691); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 4, x_692); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 5, x_693); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 6, x_694); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 7, x_695); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 8, x_697); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 9, x_699); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 10, x_700); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 11, x_701); -lean_ctor_set_uint8(x_710, sizeof(void*)*15 + 12, x_703); -x_711 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_711, 0, x_708); -lean_ctor_set(x_711, 1, x_674); -lean_ctor_set(x_575, 1, x_710); -lean_ctor_set(x_575, 0, x_711); -if (lean_is_scalar(x_678)) { - x_712 = lean_alloc_ctor(0, 2, 0); -} else { - x_712 = x_678; -} -lean_ctor_set(x_712, 0, x_563); -lean_ctor_set(x_712, 1, x_677); +lean_dec_ref(x_624); +x_706 = lean_io_error_to_string(x_704); +x_707 = 1; +x_708 = 0; +x_709 = lean_box(1); +x_710 = 3; +x_711 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_711, 0, x_706); +lean_ctor_set_uint8(x_711, sizeof(void*)*1, x_710); +x_712 = l_Lake_OutStream_logEntry(x_709, x_711, x_707, x_708, x_705); +lean_dec_ref(x_711); +x_713 = !lean_is_exclusive(x_712); +if (x_713 == 0) +{ +lean_object* x_714; lean_object* x_715; +x_714 = lean_ctor_get(x_712, 0); +lean_dec(x_714); +x_715 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +lean_ctor_set_tag(x_712, 1); +lean_ctor_set(x_712, 0, x_715); return x_712; } else { -lean_object* x_713; lean_object* x_714; lean_object* x_715; uint8_t x_716; uint8_t x_717; lean_object* x_718; uint8_t x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; -lean_dec(x_674); -lean_free_object(x_575); -lean_dec(x_579); -lean_free_object(x_563); -x_713 = lean_ctor_get(x_675, 0); -lean_inc(x_713); -x_714 = lean_ctor_get(x_675, 1); -lean_inc(x_714); -lean_dec_ref(x_675); -x_715 = lean_io_error_to_string(x_713); -x_716 = 1; -x_717 = 0; -x_718 = lean_box(1); -x_719 = 3; -x_720 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_720, 0, x_715); -lean_ctor_set_uint8(x_720, sizeof(void*)*1, x_719); -x_721 = l_Lake_OutStream_logEntry(x_718, x_720, x_716, x_717, x_714); -lean_dec_ref(x_720); -x_722 = lean_ctor_get(x_721, 1); +lean_object* x_716; lean_object* x_717; lean_object* x_718; +x_716 = lean_ctor_get(x_712, 1); +lean_inc(x_716); +lean_dec(x_712); +x_717 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +x_718 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_718, 0, x_717); +lean_ctor_set(x_718, 1, x_716); +return x_718; +} +} +} +else +{ +lean_object* x_719; lean_object* x_720; lean_object* x_721; +x_719 = lean_ctor_get(x_616, 0); +x_720 = lean_ctor_get(x_616, 1); +lean_inc(x_720); +lean_inc(x_719); +lean_dec(x_616); +x_721 = l_Lake_Manifest_loadEntries(x_719, x_617); +if (lean_obj_tag(x_721) == 0) +{ +lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; uint8_t x_734; uint8_t x_735; uint8_t x_736; uint8_t x_737; uint8_t x_738; uint8_t x_739; uint8_t x_740; uint8_t x_741; lean_object* x_742; uint8_t x_743; lean_object* x_744; uint8_t x_745; uint8_t x_746; uint8_t x_747; lean_object* x_748; uint8_t x_749; lean_object* x_750; uint8_t x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; +x_722 = lean_ctor_get(x_721, 0); lean_inc(x_722); +x_723 = lean_ctor_get(x_721, 1); +lean_inc(x_723); if (lean_is_exclusive(x_721)) { lean_ctor_release(x_721, 0); lean_ctor_release(x_721, 1); - x_723 = x_721; + x_724 = x_721; } else { lean_dec_ref(x_721); - x_723 = lean_box(0); + x_724 = lean_box(0); } -x_724 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_723)) { - x_725 = lean_alloc_ctor(1, 2, 0); -} else { - x_725 = x_723; - lean_ctor_set_tag(x_725, 1); -} -lean_ctor_set(x_725, 0, x_724); -lean_ctor_set(x_725, 1, x_722); -return x_725; -} -} -} -else -{ -lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; -x_726 = lean_ctor_get(x_575, 1); -lean_inc(x_726); -lean_dec(x_575); -x_727 = lean_ctor_get(x_576, 0); -lean_inc(x_727); -x_728 = lean_ctor_get(x_576, 1); +x_725 = lean_ctor_get(x_619, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_619, 1); +lean_inc_ref(x_726); +x_727 = lean_ctor_get(x_619, 2); +lean_inc_ref(x_727); +x_728 = lean_ctor_get(x_619, 3); lean_inc(x_728); -if (lean_is_exclusive(x_576)) { - lean_ctor_release(x_576, 0); - lean_ctor_release(x_576, 1); - x_729 = x_576; -} else { - lean_dec_ref(x_576); - x_729 = lean_box(0); -} -x_730 = l_Lake_Manifest_loadEntries(x_727, x_577); -if (lean_obj_tag(x_730) == 0) -{ -lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; uint8_t x_743; uint8_t x_744; uint8_t x_745; uint8_t x_746; uint8_t x_747; uint8_t x_748; uint8_t x_749; uint8_t x_750; lean_object* x_751; uint8_t x_752; lean_object* x_753; uint8_t x_754; uint8_t x_755; uint8_t x_756; lean_object* x_757; uint8_t x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; -x_731 = lean_ctor_get(x_730, 0); +x_729 = lean_ctor_get(x_619, 4); +lean_inc(x_729); +x_730 = lean_ctor_get(x_619, 5); +lean_inc(x_730); +x_731 = lean_ctor_get(x_619, 6); lean_inc(x_731); -x_732 = lean_ctor_get(x_730, 1); -lean_inc(x_732); -if (lean_is_exclusive(x_730)) { - lean_ctor_release(x_730, 0); - lean_ctor_release(x_730, 1); - x_733 = x_730; -} else { - lean_dec_ref(x_730); - x_733 = lean_box(0); -} -x_734 = lean_ctor_get(x_726, 0); -lean_inc(x_734); -x_735 = lean_ctor_get(x_726, 1); -lean_inc_ref(x_735); -x_736 = lean_ctor_get(x_726, 2); -lean_inc_ref(x_736); -x_737 = lean_ctor_get(x_726, 3); -lean_inc(x_737); -x_738 = lean_ctor_get(x_726, 4); -lean_inc(x_738); -x_739 = lean_ctor_get(x_726, 5); -lean_inc(x_739); -x_740 = lean_ctor_get(x_726, 6); -lean_inc(x_740); -x_741 = lean_ctor_get(x_726, 7); -lean_inc_ref(x_741); -x_742 = lean_ctor_get(x_726, 8); +x_732 = lean_ctor_get(x_619, 7); +lean_inc_ref(x_732); +x_733 = lean_ctor_get(x_619, 8); +lean_inc(x_733); +x_734 = lean_ctor_get_uint8(x_619, sizeof(void*)*17); +x_735 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 1); +x_736 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 2); +x_737 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 3); +x_738 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 4); +x_739 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 5); +x_740 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 6); +x_741 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 7); +x_742 = lean_ctor_get(x_619, 9); lean_inc(x_742); -x_743 = lean_ctor_get_uint8(x_726, sizeof(void*)*15); -x_744 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 1); -x_745 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 2); -x_746 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 3); -x_747 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 4); -x_748 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 5); -x_749 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 6); -x_750 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 7); -x_751 = lean_ctor_get(x_726, 9); -lean_inc(x_751); -x_752 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 8); -x_753 = lean_ctor_get(x_726, 10); +x_743 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 8); +x_744 = lean_ctor_get(x_619, 10); +lean_inc(x_744); +x_745 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 9); +x_746 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 10); +x_747 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 11); +x_748 = lean_ctor_get(x_619, 11); +lean_inc(x_748); +x_749 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 12); +x_750 = lean_ctor_get(x_619, 12); +lean_inc(x_750); +x_751 = lean_ctor_get_uint8(x_619, sizeof(void*)*17 + 13); +x_752 = lean_ctor_get(x_619, 13); +lean_inc(x_752); +x_753 = lean_ctor_get(x_619, 14); lean_inc(x_753); -x_754 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 9); -x_755 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 10); -x_756 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 11); -x_757 = lean_ctor_get(x_726, 11); -lean_inc(x_757); -x_758 = lean_ctor_get_uint8(x_726, sizeof(void*)*15 + 12); -x_759 = lean_ctor_get(x_726, 12); -lean_inc(x_759); -x_760 = lean_ctor_get(x_726, 13); -lean_inc(x_760); -x_761 = lean_ctor_get(x_726, 14); -lean_inc(x_761); -if (lean_is_exclusive(x_726)) { - lean_ctor_release(x_726, 0); - lean_ctor_release(x_726, 1); - lean_ctor_release(x_726, 2); - lean_ctor_release(x_726, 3); - lean_ctor_release(x_726, 4); - lean_ctor_release(x_726, 5); - lean_ctor_release(x_726, 6); - lean_ctor_release(x_726, 7); - lean_ctor_release(x_726, 8); - lean_ctor_release(x_726, 9); - lean_ctor_release(x_726, 10); - lean_ctor_release(x_726, 11); - lean_ctor_release(x_726, 12); - lean_ctor_release(x_726, 13); - lean_ctor_release(x_726, 14); - x_762 = x_726; +x_754 = lean_ctor_get(x_619, 15); +lean_inc(x_754); +x_755 = lean_ctor_get(x_619, 16); +lean_inc(x_755); +if (lean_is_exclusive(x_619)) { + lean_ctor_release(x_619, 0); + lean_ctor_release(x_619, 1); + lean_ctor_release(x_619, 2); + lean_ctor_release(x_619, 3); + lean_ctor_release(x_619, 4); + lean_ctor_release(x_619, 5); + lean_ctor_release(x_619, 6); + lean_ctor_release(x_619, 7); + lean_ctor_release(x_619, 8); + lean_ctor_release(x_619, 9); + lean_ctor_release(x_619, 10); + lean_ctor_release(x_619, 11); + lean_ctor_release(x_619, 12); + lean_ctor_release(x_619, 13); + lean_ctor_release(x_619, 14); + lean_ctor_release(x_619, 15); + lean_ctor_release(x_619, 16); + x_756 = x_619; } else { - lean_dec_ref(x_726); - x_762 = lean_box(0); + lean_dec_ref(x_619); + x_756 = lean_box(0); } -x_763 = lean_box(0); -x_764 = l_Array_append___redArg(x_741, x_731); -lean_dec(x_731); -if (lean_is_scalar(x_762)) { - x_765 = lean_alloc_ctor(0, 15, 13); +x_757 = lean_box(0); +x_758 = l_Array_append___redArg(x_732, x_722); +lean_dec(x_722); +if (lean_is_scalar(x_756)) { + x_759 = lean_alloc_ctor(0, 17, 14); } else { - x_765 = x_762; + x_759 = x_756; } -lean_ctor_set(x_765, 0, x_734); -lean_ctor_set(x_765, 1, x_735); -lean_ctor_set(x_765, 2, x_736); -lean_ctor_set(x_765, 3, x_737); -lean_ctor_set(x_765, 4, x_738); -lean_ctor_set(x_765, 5, x_739); -lean_ctor_set(x_765, 6, x_740); -lean_ctor_set(x_765, 7, x_764); -lean_ctor_set(x_765, 8, x_742); -lean_ctor_set(x_765, 9, x_751); -lean_ctor_set(x_765, 10, x_753); -lean_ctor_set(x_765, 11, x_757); -lean_ctor_set(x_765, 12, x_759); -lean_ctor_set(x_765, 13, x_760); -lean_ctor_set(x_765, 14, x_761); -lean_ctor_set_uint8(x_765, sizeof(void*)*15, x_743); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 1, x_744); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 2, x_745); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 3, x_746); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 4, x_747); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 5, x_748); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 6, x_749); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 7, x_750); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 8, x_752); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 9, x_754); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 10, x_755); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 11, x_756); -lean_ctor_set_uint8(x_765, sizeof(void*)*15 + 12, x_758); -if (lean_is_scalar(x_729)) { - x_766 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_759, 0, x_725); +lean_ctor_set(x_759, 1, x_726); +lean_ctor_set(x_759, 2, x_727); +lean_ctor_set(x_759, 3, x_728); +lean_ctor_set(x_759, 4, x_729); +lean_ctor_set(x_759, 5, x_730); +lean_ctor_set(x_759, 6, x_731); +lean_ctor_set(x_759, 7, x_758); +lean_ctor_set(x_759, 8, x_733); +lean_ctor_set(x_759, 9, x_742); +lean_ctor_set(x_759, 10, x_744); +lean_ctor_set(x_759, 11, x_748); +lean_ctor_set(x_759, 12, x_750); +lean_ctor_set(x_759, 13, x_752); +lean_ctor_set(x_759, 14, x_753); +lean_ctor_set(x_759, 15, x_754); +lean_ctor_set(x_759, 16, x_755); +lean_ctor_set_uint8(x_759, sizeof(void*)*17, x_734); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 1, x_735); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 2, x_736); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 3, x_737); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 4, x_738); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 5, x_739); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 6, x_740); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 7, x_741); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 8, x_743); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 9, x_745); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 10, x_746); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 11, x_747); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 12, x_749); +lean_ctor_set_uint8(x_759, sizeof(void*)*17 + 13, x_751); +x_760 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_760, 0, x_757); +lean_ctor_set(x_760, 1, x_720); +lean_ctor_set(x_615, 1, x_759); +lean_ctor_set(x_615, 0, x_760); +if (lean_is_scalar(x_724)) { + x_761 = lean_alloc_ctor(0, 2, 0); } else { - x_766 = x_729; + x_761 = x_724; } -lean_ctor_set(x_766, 0, x_763); -lean_ctor_set(x_766, 1, x_728); -x_767 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_767, 0, x_766); -lean_ctor_set(x_767, 1, x_765); -lean_ctor_set(x_563, 0, x_767); -if (lean_is_scalar(x_733)) { - x_768 = lean_alloc_ctor(0, 2, 0); -} else { - x_768 = x_733; -} -lean_ctor_set(x_768, 0, x_563); -lean_ctor_set(x_768, 1, x_732); -return x_768; +lean_ctor_set(x_761, 0, x_603); +lean_ctor_set(x_761, 1, x_723); +return x_761; } else { -lean_object* x_769; lean_object* x_770; lean_object* x_771; uint8_t x_772; uint8_t x_773; lean_object* x_774; uint8_t x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; -lean_dec(x_729); -lean_dec(x_728); -lean_dec(x_726); -lean_free_object(x_563); -x_769 = lean_ctor_get(x_730, 0); -lean_inc(x_769); -x_770 = lean_ctor_get(x_730, 1); -lean_inc(x_770); -lean_dec_ref(x_730); -x_771 = lean_io_error_to_string(x_769); -x_772 = 1; -x_773 = 0; -x_774 = lean_box(1); -x_775 = 3; -x_776 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_776, 0, x_771); -lean_ctor_set_uint8(x_776, sizeof(void*)*1, x_775); -x_777 = l_Lake_OutStream_logEntry(x_774, x_776, x_772, x_773, x_770); -lean_dec_ref(x_776); -x_778 = lean_ctor_get(x_777, 1); -lean_inc(x_778); -if (lean_is_exclusive(x_777)) { - lean_ctor_release(x_777, 0); - lean_ctor_release(x_777, 1); - x_779 = x_777; +lean_object* x_762; lean_object* x_763; lean_object* x_764; uint8_t x_765; uint8_t x_766; lean_object* x_767; uint8_t x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; +lean_dec(x_720); +lean_free_object(x_615); +lean_dec(x_619); +lean_free_object(x_603); +x_762 = lean_ctor_get(x_721, 0); +lean_inc(x_762); +x_763 = lean_ctor_get(x_721, 1); +lean_inc(x_763); +lean_dec_ref(x_721); +x_764 = lean_io_error_to_string(x_762); +x_765 = 1; +x_766 = 0; +x_767 = lean_box(1); +x_768 = 3; +x_769 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_769, 0, x_764); +lean_ctor_set_uint8(x_769, sizeof(void*)*1, x_768); +x_770 = l_Lake_OutStream_logEntry(x_767, x_769, x_765, x_766, x_763); +lean_dec_ref(x_769); +x_771 = lean_ctor_get(x_770, 1); +lean_inc(x_771); +if (lean_is_exclusive(x_770)) { + lean_ctor_release(x_770, 0); + lean_ctor_release(x_770, 1); + x_772 = x_770; } else { - lean_dec_ref(x_777); - x_779 = lean_box(0); + lean_dec_ref(x_770); + x_772 = lean_box(0); } -x_780 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_779)) { - x_781 = lean_alloc_ctor(1, 2, 0); +x_773 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_772)) { + x_774 = lean_alloc_ctor(1, 2, 0); } else { - x_781 = x_779; - lean_ctor_set_tag(x_781, 1); + x_774 = x_772; + lean_ctor_set_tag(x_774, 1); } -lean_ctor_set(x_781, 0, x_780); -lean_ctor_set(x_781, 1, x_778); -return x_781; +lean_ctor_set(x_774, 0, x_773); +lean_ctor_set(x_774, 1, x_771); +return x_774; } } } else { -lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_782 = lean_ctor_get(x_563, 0); -lean_inc(x_782); -lean_dec(x_563); -x_783 = lean_ctor_get(x_782, 0); +lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; +x_775 = lean_ctor_get(x_615, 1); +lean_inc(x_775); +lean_dec(x_615); +x_776 = lean_ctor_get(x_616, 0); +lean_inc(x_776); +x_777 = lean_ctor_get(x_616, 1); +lean_inc(x_777); +if (lean_is_exclusive(x_616)) { + lean_ctor_release(x_616, 0); + lean_ctor_release(x_616, 1); + x_778 = x_616; +} else { + lean_dec_ref(x_616); + x_778 = lean_box(0); +} +x_779 = l_Lake_Manifest_loadEntries(x_776, x_617); +if (lean_obj_tag(x_779) == 0) +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; uint8_t x_792; uint8_t x_793; uint8_t x_794; uint8_t x_795; uint8_t x_796; uint8_t x_797; uint8_t x_798; uint8_t x_799; lean_object* x_800; uint8_t x_801; lean_object* x_802; uint8_t x_803; uint8_t x_804; uint8_t x_805; lean_object* x_806; uint8_t x_807; lean_object* x_808; uint8_t x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; +x_780 = lean_ctor_get(x_779, 0); +lean_inc(x_780); +x_781 = lean_ctor_get(x_779, 1); +lean_inc(x_781); +if (lean_is_exclusive(x_779)) { + lean_ctor_release(x_779, 0); + lean_ctor_release(x_779, 1); + x_782 = x_779; +} else { + lean_dec_ref(x_779); + x_782 = lean_box(0); +} +x_783 = lean_ctor_get(x_775, 0); lean_inc(x_783); -x_784 = lean_ctor_get(x_562, 1); -lean_inc(x_784); -lean_dec_ref(x_562); -x_785 = lean_ctor_get(x_782, 1); -lean_inc(x_785); -if (lean_is_exclusive(x_782)) { - lean_ctor_release(x_782, 0); - lean_ctor_release(x_782, 1); - x_786 = x_782; -} else { - lean_dec_ref(x_782); - x_786 = lean_box(0); -} -x_787 = lean_ctor_get(x_783, 0); +x_784 = lean_ctor_get(x_775, 1); +lean_inc_ref(x_784); +x_785 = lean_ctor_get(x_775, 2); +lean_inc_ref(x_785); +x_786 = lean_ctor_get(x_775, 3); +lean_inc(x_786); +x_787 = lean_ctor_get(x_775, 4); lean_inc(x_787); -x_788 = lean_ctor_get(x_783, 1); +x_788 = lean_ctor_get(x_775, 5); lean_inc(x_788); -if (lean_is_exclusive(x_783)) { - lean_ctor_release(x_783, 0); - lean_ctor_release(x_783, 1); - x_789 = x_783; -} else { - lean_dec_ref(x_783); - x_789 = lean_box(0); -} -x_790 = l_Lake_Manifest_loadEntries(x_787, x_784); -if (lean_obj_tag(x_790) == 0) -{ -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; uint8_t x_803; uint8_t x_804; uint8_t x_805; uint8_t x_806; uint8_t x_807; uint8_t x_808; uint8_t x_809; uint8_t x_810; lean_object* x_811; uint8_t x_812; lean_object* x_813; uint8_t x_814; uint8_t x_815; uint8_t x_816; lean_object* x_817; uint8_t x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; -x_791 = lean_ctor_get(x_790, 0); +x_789 = lean_ctor_get(x_775, 6); +lean_inc(x_789); +x_790 = lean_ctor_get(x_775, 7); +lean_inc_ref(x_790); +x_791 = lean_ctor_get(x_775, 8); lean_inc(x_791); -x_792 = lean_ctor_get(x_790, 1); -lean_inc(x_792); -if (lean_is_exclusive(x_790)) { - lean_ctor_release(x_790, 0); - lean_ctor_release(x_790, 1); - x_793 = x_790; -} else { - lean_dec_ref(x_790); - x_793 = lean_box(0); -} -x_794 = lean_ctor_get(x_785, 0); -lean_inc(x_794); -x_795 = lean_ctor_get(x_785, 1); -lean_inc_ref(x_795); -x_796 = lean_ctor_get(x_785, 2); -lean_inc_ref(x_796); -x_797 = lean_ctor_get(x_785, 3); -lean_inc(x_797); -x_798 = lean_ctor_get(x_785, 4); -lean_inc(x_798); -x_799 = lean_ctor_get(x_785, 5); -lean_inc(x_799); -x_800 = lean_ctor_get(x_785, 6); +x_792 = lean_ctor_get_uint8(x_775, sizeof(void*)*17); +x_793 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 1); +x_794 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 2); +x_795 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 3); +x_796 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 4); +x_797 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 5); +x_798 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 6); +x_799 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 7); +x_800 = lean_ctor_get(x_775, 9); lean_inc(x_800); -x_801 = lean_ctor_get(x_785, 7); -lean_inc_ref(x_801); -x_802 = lean_ctor_get(x_785, 8); +x_801 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 8); +x_802 = lean_ctor_get(x_775, 10); lean_inc(x_802); -x_803 = lean_ctor_get_uint8(x_785, sizeof(void*)*15); -x_804 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 1); -x_805 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 2); -x_806 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 3); -x_807 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 4); -x_808 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 5); -x_809 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 6); -x_810 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 7); -x_811 = lean_ctor_get(x_785, 9); +x_803 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 9); +x_804 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 10); +x_805 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 11); +x_806 = lean_ctor_get(x_775, 11); +lean_inc(x_806); +x_807 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 12); +x_808 = lean_ctor_get(x_775, 12); +lean_inc(x_808); +x_809 = lean_ctor_get_uint8(x_775, sizeof(void*)*17 + 13); +x_810 = lean_ctor_get(x_775, 13); +lean_inc(x_810); +x_811 = lean_ctor_get(x_775, 14); lean_inc(x_811); -x_812 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 8); -x_813 = lean_ctor_get(x_785, 10); +x_812 = lean_ctor_get(x_775, 15); +lean_inc(x_812); +x_813 = lean_ctor_get(x_775, 16); lean_inc(x_813); -x_814 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 9); -x_815 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 10); -x_816 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 11); -x_817 = lean_ctor_get(x_785, 11); -lean_inc(x_817); -x_818 = lean_ctor_get_uint8(x_785, sizeof(void*)*15 + 12); -x_819 = lean_ctor_get(x_785, 12); -lean_inc(x_819); -x_820 = lean_ctor_get(x_785, 13); -lean_inc(x_820); -x_821 = lean_ctor_get(x_785, 14); +if (lean_is_exclusive(x_775)) { + lean_ctor_release(x_775, 0); + lean_ctor_release(x_775, 1); + lean_ctor_release(x_775, 2); + lean_ctor_release(x_775, 3); + lean_ctor_release(x_775, 4); + lean_ctor_release(x_775, 5); + lean_ctor_release(x_775, 6); + lean_ctor_release(x_775, 7); + lean_ctor_release(x_775, 8); + lean_ctor_release(x_775, 9); + lean_ctor_release(x_775, 10); + lean_ctor_release(x_775, 11); + lean_ctor_release(x_775, 12); + lean_ctor_release(x_775, 13); + lean_ctor_release(x_775, 14); + lean_ctor_release(x_775, 15); + lean_ctor_release(x_775, 16); + x_814 = x_775; +} else { + lean_dec_ref(x_775); + x_814 = lean_box(0); +} +x_815 = lean_box(0); +x_816 = l_Array_append___redArg(x_790, x_780); +lean_dec(x_780); +if (lean_is_scalar(x_814)) { + x_817 = lean_alloc_ctor(0, 17, 14); +} else { + x_817 = x_814; +} +lean_ctor_set(x_817, 0, x_783); +lean_ctor_set(x_817, 1, x_784); +lean_ctor_set(x_817, 2, x_785); +lean_ctor_set(x_817, 3, x_786); +lean_ctor_set(x_817, 4, x_787); +lean_ctor_set(x_817, 5, x_788); +lean_ctor_set(x_817, 6, x_789); +lean_ctor_set(x_817, 7, x_816); +lean_ctor_set(x_817, 8, x_791); +lean_ctor_set(x_817, 9, x_800); +lean_ctor_set(x_817, 10, x_802); +lean_ctor_set(x_817, 11, x_806); +lean_ctor_set(x_817, 12, x_808); +lean_ctor_set(x_817, 13, x_810); +lean_ctor_set(x_817, 14, x_811); +lean_ctor_set(x_817, 15, x_812); +lean_ctor_set(x_817, 16, x_813); +lean_ctor_set_uint8(x_817, sizeof(void*)*17, x_792); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 1, x_793); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 2, x_794); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 3, x_795); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 4, x_796); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 5, x_797); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 6, x_798); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 7, x_799); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 8, x_801); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 9, x_803); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 10, x_804); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 11, x_805); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 12, x_807); +lean_ctor_set_uint8(x_817, sizeof(void*)*17 + 13, x_809); +if (lean_is_scalar(x_778)) { + x_818 = lean_alloc_ctor(0, 2, 0); +} else { + x_818 = x_778; +} +lean_ctor_set(x_818, 0, x_815); +lean_ctor_set(x_818, 1, x_777); +x_819 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_819, 0, x_818); +lean_ctor_set(x_819, 1, x_817); +lean_ctor_set(x_603, 0, x_819); +if (lean_is_scalar(x_782)) { + x_820 = lean_alloc_ctor(0, 2, 0); +} else { + x_820 = x_782; +} +lean_ctor_set(x_820, 0, x_603); +lean_ctor_set(x_820, 1, x_781); +return x_820; +} +else +{ +lean_object* x_821; lean_object* x_822; lean_object* x_823; uint8_t x_824; uint8_t x_825; lean_object* x_826; uint8_t x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; +lean_dec(x_778); +lean_dec(x_777); +lean_dec(x_775); +lean_free_object(x_603); +x_821 = lean_ctor_get(x_779, 0); lean_inc(x_821); -if (lean_is_exclusive(x_785)) { - lean_ctor_release(x_785, 0); - lean_ctor_release(x_785, 1); - lean_ctor_release(x_785, 2); - lean_ctor_release(x_785, 3); - lean_ctor_release(x_785, 4); - lean_ctor_release(x_785, 5); - lean_ctor_release(x_785, 6); - lean_ctor_release(x_785, 7); - lean_ctor_release(x_785, 8); - lean_ctor_release(x_785, 9); - lean_ctor_release(x_785, 10); - lean_ctor_release(x_785, 11); - lean_ctor_release(x_785, 12); - lean_ctor_release(x_785, 13); - lean_ctor_release(x_785, 14); - x_822 = x_785; -} else { - lean_dec_ref(x_785); - x_822 = lean_box(0); -} -x_823 = lean_box(0); -x_824 = l_Array_append___redArg(x_801, x_791); -lean_dec(x_791); -if (lean_is_scalar(x_822)) { - x_825 = lean_alloc_ctor(0, 15, 13); -} else { - x_825 = x_822; -} -lean_ctor_set(x_825, 0, x_794); -lean_ctor_set(x_825, 1, x_795); -lean_ctor_set(x_825, 2, x_796); -lean_ctor_set(x_825, 3, x_797); -lean_ctor_set(x_825, 4, x_798); -lean_ctor_set(x_825, 5, x_799); -lean_ctor_set(x_825, 6, x_800); -lean_ctor_set(x_825, 7, x_824); -lean_ctor_set(x_825, 8, x_802); -lean_ctor_set(x_825, 9, x_811); -lean_ctor_set(x_825, 10, x_813); -lean_ctor_set(x_825, 11, x_817); -lean_ctor_set(x_825, 12, x_819); -lean_ctor_set(x_825, 13, x_820); -lean_ctor_set(x_825, 14, x_821); -lean_ctor_set_uint8(x_825, sizeof(void*)*15, x_803); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 1, x_804); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 2, x_805); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 3, x_806); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 4, x_807); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 5, x_808); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 6, x_809); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 7, x_810); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 8, x_812); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 9, x_814); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 10, x_815); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 11, x_816); -lean_ctor_set_uint8(x_825, sizeof(void*)*15 + 12, x_818); -if (lean_is_scalar(x_789)) { - x_826 = lean_alloc_ctor(0, 2, 0); -} else { - x_826 = x_789; -} -lean_ctor_set(x_826, 0, x_823); -lean_ctor_set(x_826, 1, x_788); -if (lean_is_scalar(x_786)) { - x_827 = lean_alloc_ctor(0, 2, 0); -} else { - x_827 = x_786; -} -lean_ctor_set(x_827, 0, x_826); -lean_ctor_set(x_827, 1, x_825); -x_828 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_828, 0, x_827); -if (lean_is_scalar(x_793)) { - x_829 = lean_alloc_ctor(0, 2, 0); -} else { - x_829 = x_793; -} -lean_ctor_set(x_829, 0, x_828); -lean_ctor_set(x_829, 1, x_792); -return x_829; -} -else -{ -lean_object* x_830; lean_object* x_831; lean_object* x_832; uint8_t x_833; uint8_t x_834; lean_object* x_835; uint8_t x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; -lean_dec(x_789); -lean_dec(x_788); -lean_dec(x_786); -lean_dec(x_785); -x_830 = lean_ctor_get(x_790, 0); +x_822 = lean_ctor_get(x_779, 1); +lean_inc(x_822); +lean_dec_ref(x_779); +x_823 = lean_io_error_to_string(x_821); +x_824 = 1; +x_825 = 0; +x_826 = lean_box(1); +x_827 = 3; +x_828 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_828, 0, x_823); +lean_ctor_set_uint8(x_828, sizeof(void*)*1, x_827); +x_829 = l_Lake_OutStream_logEntry(x_826, x_828, x_824, x_825, x_822); +lean_dec_ref(x_828); +x_830 = lean_ctor_get(x_829, 1); lean_inc(x_830); -x_831 = lean_ctor_get(x_790, 1); -lean_inc(x_831); -lean_dec_ref(x_790); -x_832 = lean_io_error_to_string(x_830); -x_833 = 1; -x_834 = 0; -x_835 = lean_box(1); -x_836 = 3; -x_837 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_837, 0, x_832); -lean_ctor_set_uint8(x_837, sizeof(void*)*1, x_836); -x_838 = l_Lake_OutStream_logEntry(x_835, x_837, x_833, x_834, x_831); -lean_dec_ref(x_837); -x_839 = lean_ctor_get(x_838, 1); +if (lean_is_exclusive(x_829)) { + lean_ctor_release(x_829, 0); + lean_ctor_release(x_829, 1); + x_831 = x_829; +} else { + lean_dec_ref(x_829); + x_831 = lean_box(0); +} +x_832 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_831)) { + x_833 = lean_alloc_ctor(1, 2, 0); +} else { + x_833 = x_831; + lean_ctor_set_tag(x_833, 1); +} +lean_ctor_set(x_833, 0, x_832); +lean_ctor_set(x_833, 1, x_830); +return x_833; +} +} +} +else +{ +lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; +x_834 = lean_ctor_get(x_603, 0); +lean_inc(x_834); +lean_dec(x_603); +x_835 = lean_ctor_get(x_834, 0); +lean_inc(x_835); +x_836 = lean_ctor_get(x_602, 1); +lean_inc(x_836); +lean_dec_ref(x_602); +x_837 = lean_ctor_get(x_834, 1); +lean_inc(x_837); +if (lean_is_exclusive(x_834)) { + lean_ctor_release(x_834, 0); + lean_ctor_release(x_834, 1); + x_838 = x_834; +} else { + lean_dec_ref(x_834); + x_838 = lean_box(0); +} +x_839 = lean_ctor_get(x_835, 0); lean_inc(x_839); -if (lean_is_exclusive(x_838)) { - lean_ctor_release(x_838, 0); - lean_ctor_release(x_838, 1); - x_840 = x_838; +x_840 = lean_ctor_get(x_835, 1); +lean_inc(x_840); +if (lean_is_exclusive(x_835)) { + lean_ctor_release(x_835, 0); + lean_ctor_release(x_835, 1); + x_841 = x_835; } else { - lean_dec_ref(x_838); - x_840 = lean_box(0); + lean_dec_ref(x_835); + x_841 = lean_box(0); } -x_841 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_840)) { - x_842 = lean_alloc_ctor(1, 2, 0); +x_842 = l_Lake_Manifest_loadEntries(x_839, x_836); +if (lean_obj_tag(x_842) == 0) +{ +lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; uint8_t x_855; uint8_t x_856; uint8_t x_857; uint8_t x_858; uint8_t x_859; uint8_t x_860; uint8_t x_861; uint8_t x_862; lean_object* x_863; uint8_t x_864; lean_object* x_865; uint8_t x_866; uint8_t x_867; uint8_t x_868; lean_object* x_869; uint8_t x_870; lean_object* x_871; uint8_t x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; +x_843 = lean_ctor_get(x_842, 0); +lean_inc(x_843); +x_844 = lean_ctor_get(x_842, 1); +lean_inc(x_844); +if (lean_is_exclusive(x_842)) { + lean_ctor_release(x_842, 0); + lean_ctor_release(x_842, 1); + x_845 = x_842; } else { - x_842 = x_840; - lean_ctor_set_tag(x_842, 1); + lean_dec_ref(x_842); + x_845 = lean_box(0); } -lean_ctor_set(x_842, 0, x_841); -lean_ctor_set(x_842, 1, x_839); -return x_842; -} -} -} -} -} -else -{ -uint8_t x_843; -lean_dec_ref(x_1); -x_843 = !lean_is_exclusive(x_3); -if (x_843 == 0) -{ -lean_object* x_844; uint8_t x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; -x_844 = lean_box(0); -x_845 = 2; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 9, x_845); -x_846 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_846, 0, x_844); -lean_ctor_set(x_846, 1, x_2); -x_847 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_847, 0, x_846); -lean_ctor_set(x_847, 1, x_3); -x_848 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_848, 0, x_847); -x_849 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_849, 0, x_848); -lean_ctor_set(x_849, 1, x_4); -return x_849; -} -else -{ -lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; uint8_t x_859; uint8_t x_860; uint8_t x_861; uint8_t x_862; uint8_t x_863; uint8_t x_864; uint8_t x_865; uint8_t x_866; lean_object* x_867; uint8_t x_868; lean_object* x_869; uint8_t x_870; uint8_t x_871; lean_object* x_872; uint8_t x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; uint8_t x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; -x_850 = lean_ctor_get(x_3, 0); -x_851 = lean_ctor_get(x_3, 1); -x_852 = lean_ctor_get(x_3, 2); -x_853 = lean_ctor_get(x_3, 3); -x_854 = lean_ctor_get(x_3, 4); -x_855 = lean_ctor_get(x_3, 5); -x_856 = lean_ctor_get(x_3, 6); -x_857 = lean_ctor_get(x_3, 7); -x_858 = lean_ctor_get(x_3, 8); -x_859 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_860 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_861 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_862 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_863 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_864 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_865 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_866 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_867 = lean_ctor_get(x_3, 9); -x_868 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_869 = lean_ctor_get(x_3, 10); -x_870 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_871 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_872 = lean_ctor_get(x_3, 11); -x_873 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_874 = lean_ctor_get(x_3, 12); -x_875 = lean_ctor_get(x_3, 13); -x_876 = lean_ctor_get(x_3, 14); -lean_inc(x_876); -lean_inc(x_875); -lean_inc(x_874); -lean_inc(x_872); -lean_inc(x_869); -lean_inc(x_867); -lean_inc(x_858); -lean_inc(x_857); -lean_inc(x_856); -lean_inc(x_855); -lean_inc(x_854); -lean_inc(x_853); -lean_inc(x_852); -lean_inc(x_851); +x_846 = lean_ctor_get(x_837, 0); +lean_inc(x_846); +x_847 = lean_ctor_get(x_837, 1); +lean_inc_ref(x_847); +x_848 = lean_ctor_get(x_837, 2); +lean_inc_ref(x_848); +x_849 = lean_ctor_get(x_837, 3); +lean_inc(x_849); +x_850 = lean_ctor_get(x_837, 4); lean_inc(x_850); -lean_dec(x_3); -x_877 = lean_box(0); -x_878 = 2; -x_879 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_879, 0, x_850); -lean_ctor_set(x_879, 1, x_851); -lean_ctor_set(x_879, 2, x_852); -lean_ctor_set(x_879, 3, x_853); -lean_ctor_set(x_879, 4, x_854); -lean_ctor_set(x_879, 5, x_855); -lean_ctor_set(x_879, 6, x_856); -lean_ctor_set(x_879, 7, x_857); -lean_ctor_set(x_879, 8, x_858); -lean_ctor_set(x_879, 9, x_867); -lean_ctor_set(x_879, 10, x_869); -lean_ctor_set(x_879, 11, x_872); -lean_ctor_set(x_879, 12, x_874); -lean_ctor_set(x_879, 13, x_875); -lean_ctor_set(x_879, 14, x_876); -lean_ctor_set_uint8(x_879, sizeof(void*)*15, x_859); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 1, x_860); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 2, x_861); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 3, x_862); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 4, x_863); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 5, x_864); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 6, x_865); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 7, x_866); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 8, x_868); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 9, x_878); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 10, x_870); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 11, x_871); -lean_ctor_set_uint8(x_879, sizeof(void*)*15 + 12, x_873); -x_880 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_880, 0, x_877); -lean_ctor_set(x_880, 1, x_2); -x_881 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_881, 0, x_880); -lean_ctor_set(x_881, 1, x_879); -x_882 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_882, 0, x_881); -x_883 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_883, 0, x_882); -lean_ctor_set(x_883, 1, x_4); -return x_883; -} -} -} -else -{ -uint8_t x_884; -lean_dec_ref(x_1); -x_884 = !lean_is_exclusive(x_3); -if (x_884 == 0) -{ -lean_object* x_885; uint8_t x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; -x_885 = lean_box(0); -x_886 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 9, x_886); -x_887 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_887, 0, x_885); -lean_ctor_set(x_887, 1, x_2); -x_888 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_888, 0, x_887); -lean_ctor_set(x_888, 1, x_3); -x_889 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_889, 0, x_888); -x_890 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_890, 0, x_889); -lean_ctor_set(x_890, 1, x_4); -return x_890; -} -else -{ -lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; uint8_t x_900; uint8_t x_901; uint8_t x_902; uint8_t x_903; uint8_t x_904; uint8_t x_905; uint8_t x_906; uint8_t x_907; lean_object* x_908; uint8_t x_909; lean_object* x_910; uint8_t x_911; uint8_t x_912; lean_object* x_913; uint8_t x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; uint8_t x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; -x_891 = lean_ctor_get(x_3, 0); -x_892 = lean_ctor_get(x_3, 1); -x_893 = lean_ctor_get(x_3, 2); -x_894 = lean_ctor_get(x_3, 3); -x_895 = lean_ctor_get(x_3, 4); -x_896 = lean_ctor_get(x_3, 5); -x_897 = lean_ctor_get(x_3, 6); -x_898 = lean_ctor_get(x_3, 7); -x_899 = lean_ctor_get(x_3, 8); -x_900 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_901 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_902 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_903 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_904 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_905 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_906 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_907 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_908 = lean_ctor_get(x_3, 9); -x_909 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_910 = lean_ctor_get(x_3, 10); -x_911 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_912 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_913 = lean_ctor_get(x_3, 11); -x_914 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_915 = lean_ctor_get(x_3, 12); -x_916 = lean_ctor_get(x_3, 13); -x_917 = lean_ctor_get(x_3, 14); -lean_inc(x_917); -lean_inc(x_916); -lean_inc(x_915); -lean_inc(x_913); -lean_inc(x_910); -lean_inc(x_908); -lean_inc(x_899); -lean_inc(x_898); -lean_inc(x_897); -lean_inc(x_896); -lean_inc(x_895); -lean_inc(x_894); -lean_inc(x_893); -lean_inc(x_892); -lean_inc(x_891); -lean_dec(x_3); -x_918 = lean_box(0); -x_919 = 1; -x_920 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_920, 0, x_891); -lean_ctor_set(x_920, 1, x_892); -lean_ctor_set(x_920, 2, x_893); -lean_ctor_set(x_920, 3, x_894); -lean_ctor_set(x_920, 4, x_895); -lean_ctor_set(x_920, 5, x_896); -lean_ctor_set(x_920, 6, x_897); -lean_ctor_set(x_920, 7, x_898); -lean_ctor_set(x_920, 8, x_899); -lean_ctor_set(x_920, 9, x_908); -lean_ctor_set(x_920, 10, x_910); -lean_ctor_set(x_920, 11, x_913); -lean_ctor_set(x_920, 12, x_915); -lean_ctor_set(x_920, 13, x_916); -lean_ctor_set(x_920, 14, x_917); -lean_ctor_set_uint8(x_920, sizeof(void*)*15, x_900); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 1, x_901); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 2, x_902); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 3, x_903); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 4, x_904); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 5, x_905); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 6, x_906); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 7, x_907); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 8, x_909); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 9, x_919); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 10, x_911); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 11, x_912); -lean_ctor_set_uint8(x_920, sizeof(void*)*15 + 12, x_914); -x_921 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_921, 0, x_918); -lean_ctor_set(x_921, 1, x_2); -x_922 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_922, 0, x_921); -lean_ctor_set(x_922, 1, x_920); -x_923 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_923, 0, x_922); -x_924 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_924, 0, x_923); -lean_ctor_set(x_924, 1, x_4); -return x_924; -} -} -} -else -{ -lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; -lean_dec_ref(x_1); -x_925 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; -x_926 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_47, x_925, x_2, x_3, x_4); -x_927 = lean_ctor_get(x_926, 0); -lean_inc(x_927); -x_928 = lean_ctor_get(x_926, 1); -lean_inc(x_928); -if (lean_is_exclusive(x_926)) { - lean_ctor_release(x_926, 0); - lean_ctor_release(x_926, 1); - x_929 = x_926; +x_851 = lean_ctor_get(x_837, 5); +lean_inc(x_851); +x_852 = lean_ctor_get(x_837, 6); +lean_inc(x_852); +x_853 = lean_ctor_get(x_837, 7); +lean_inc_ref(x_853); +x_854 = lean_ctor_get(x_837, 8); +lean_inc(x_854); +x_855 = lean_ctor_get_uint8(x_837, sizeof(void*)*17); +x_856 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 1); +x_857 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 2); +x_858 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 3); +x_859 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 4); +x_860 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 5); +x_861 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 6); +x_862 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 7); +x_863 = lean_ctor_get(x_837, 9); +lean_inc(x_863); +x_864 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 8); +x_865 = lean_ctor_get(x_837, 10); +lean_inc(x_865); +x_866 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 9); +x_867 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 10); +x_868 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 11); +x_869 = lean_ctor_get(x_837, 11); +lean_inc(x_869); +x_870 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 12); +x_871 = lean_ctor_get(x_837, 12); +lean_inc(x_871); +x_872 = lean_ctor_get_uint8(x_837, sizeof(void*)*17 + 13); +x_873 = lean_ctor_get(x_837, 13); +lean_inc(x_873); +x_874 = lean_ctor_get(x_837, 14); +lean_inc(x_874); +x_875 = lean_ctor_get(x_837, 15); +lean_inc(x_875); +x_876 = lean_ctor_get(x_837, 16); +lean_inc(x_876); +if (lean_is_exclusive(x_837)) { + lean_ctor_release(x_837, 0); + lean_ctor_release(x_837, 1); + lean_ctor_release(x_837, 2); + lean_ctor_release(x_837, 3); + lean_ctor_release(x_837, 4); + lean_ctor_release(x_837, 5); + lean_ctor_release(x_837, 6); + lean_ctor_release(x_837, 7); + lean_ctor_release(x_837, 8); + lean_ctor_release(x_837, 9); + lean_ctor_release(x_837, 10); + lean_ctor_release(x_837, 11); + lean_ctor_release(x_837, 12); + lean_ctor_release(x_837, 13); + lean_ctor_release(x_837, 14); + lean_ctor_release(x_837, 15); + lean_ctor_release(x_837, 16); + x_877 = x_837; } else { - lean_dec_ref(x_926); - x_929 = lean_box(0); + lean_dec_ref(x_837); + x_877 = lean_box(0); } -if (lean_obj_tag(x_927) == 0) +x_878 = lean_box(0); +x_879 = l_Array_append___redArg(x_853, x_843); +lean_dec(x_843); +if (lean_is_scalar(x_877)) { + x_880 = lean_alloc_ctor(0, 17, 14); +} else { + x_880 = x_877; +} +lean_ctor_set(x_880, 0, x_846); +lean_ctor_set(x_880, 1, x_847); +lean_ctor_set(x_880, 2, x_848); +lean_ctor_set(x_880, 3, x_849); +lean_ctor_set(x_880, 4, x_850); +lean_ctor_set(x_880, 5, x_851); +lean_ctor_set(x_880, 6, x_852); +lean_ctor_set(x_880, 7, x_879); +lean_ctor_set(x_880, 8, x_854); +lean_ctor_set(x_880, 9, x_863); +lean_ctor_set(x_880, 10, x_865); +lean_ctor_set(x_880, 11, x_869); +lean_ctor_set(x_880, 12, x_871); +lean_ctor_set(x_880, 13, x_873); +lean_ctor_set(x_880, 14, x_874); +lean_ctor_set(x_880, 15, x_875); +lean_ctor_set(x_880, 16, x_876); +lean_ctor_set_uint8(x_880, sizeof(void*)*17, x_855); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 1, x_856); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 2, x_857); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 3, x_858); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 4, x_859); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 5, x_860); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 6, x_861); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 7, x_862); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 8, x_864); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 9, x_866); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 10, x_867); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 11, x_868); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 12, x_870); +lean_ctor_set_uint8(x_880, sizeof(void*)*17 + 13, x_872); +if (lean_is_scalar(x_841)) { + x_881 = lean_alloc_ctor(0, 2, 0); +} else { + x_881 = x_841; +} +lean_ctor_set(x_881, 0, x_878); +lean_ctor_set(x_881, 1, x_840); +if (lean_is_scalar(x_838)) { + x_882 = lean_alloc_ctor(0, 2, 0); +} else { + x_882 = x_838; +} +lean_ctor_set(x_882, 0, x_881); +lean_ctor_set(x_882, 1, x_880); +x_883 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_883, 0, x_882); +if (lean_is_scalar(x_845)) { + x_884 = lean_alloc_ctor(0, 2, 0); +} else { + x_884 = x_845; +} +lean_ctor_set(x_884, 0, x_883); +lean_ctor_set(x_884, 1, x_844); +return x_884; +} +else { -lean_object* x_934; -x_934 = lean_ctor_get(x_927, 0); +lean_object* x_885; lean_object* x_886; lean_object* x_887; uint8_t x_888; uint8_t x_889; lean_object* x_890; uint8_t x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +lean_dec(x_841); +lean_dec(x_840); +lean_dec(x_838); +lean_dec(x_837); +x_885 = lean_ctor_get(x_842, 0); +lean_inc(x_885); +x_886 = lean_ctor_get(x_842, 1); +lean_inc(x_886); +lean_dec_ref(x_842); +x_887 = lean_io_error_to_string(x_885); +x_888 = 1; +x_889 = 0; +x_890 = lean_box(1); +x_891 = 3; +x_892 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_892, 0, x_887); +lean_ctor_set_uint8(x_892, sizeof(void*)*1, x_891); +x_893 = l_Lake_OutStream_logEntry(x_890, x_892, x_888, x_889, x_886); +lean_dec_ref(x_892); +x_894 = lean_ctor_get(x_893, 1); +lean_inc(x_894); +if (lean_is_exclusive(x_893)) { + lean_ctor_release(x_893, 0); + lean_ctor_release(x_893, 1); + x_895 = x_893; +} else { + lean_dec_ref(x_893); + x_895 = lean_box(0); +} +x_896 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_895)) { + x_897 = lean_alloc_ctor(1, 2, 0); +} else { + x_897 = x_895; + lean_ctor_set_tag(x_897, 1); +} +lean_ctor_set(x_897, 0, x_896); +lean_ctor_set(x_897, 1, x_894); +return x_897; +} +} +} +} +} +else +{ +uint8_t x_898; +lean_dec_ref(x_1); +x_898 = !lean_is_exclusive(x_3); +if (x_898 == 0) +{ +lean_object* x_899; uint8_t x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; +x_899 = lean_box(0); +x_900 = 2; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 9, x_900); +x_901 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_901, 0, x_899); +lean_ctor_set(x_901, 1, x_2); +x_902 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_902, 0, x_901); +lean_ctor_set(x_902, 1, x_3); +x_903 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_903, 0, x_902); +x_904 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_904, 0, x_903); +lean_ctor_set(x_904, 1, x_4); +return x_904; +} +else +{ +lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; uint8_t x_914; uint8_t x_915; uint8_t x_916; uint8_t x_917; uint8_t x_918; uint8_t x_919; uint8_t x_920; uint8_t x_921; lean_object* x_922; uint8_t x_923; lean_object* x_924; uint8_t x_925; uint8_t x_926; lean_object* x_927; uint8_t x_928; lean_object* x_929; uint8_t x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; uint8_t x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; +x_905 = lean_ctor_get(x_3, 0); +x_906 = lean_ctor_get(x_3, 1); +x_907 = lean_ctor_get(x_3, 2); +x_908 = lean_ctor_get(x_3, 3); +x_909 = lean_ctor_get(x_3, 4); +x_910 = lean_ctor_get(x_3, 5); +x_911 = lean_ctor_get(x_3, 6); +x_912 = lean_ctor_get(x_3, 7); +x_913 = lean_ctor_get(x_3, 8); +x_914 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_915 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_916 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_917 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_918 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_919 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_920 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_921 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_922 = lean_ctor_get(x_3, 9); +x_923 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_924 = lean_ctor_get(x_3, 10); +x_925 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_926 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_927 = lean_ctor_get(x_3, 11); +x_928 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_929 = lean_ctor_get(x_3, 12); +x_930 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_931 = lean_ctor_get(x_3, 13); +x_932 = lean_ctor_get(x_3, 14); +x_933 = lean_ctor_get(x_3, 15); +x_934 = lean_ctor_get(x_3, 16); lean_inc(x_934); -lean_dec_ref(x_927); -x_930 = x_934; -goto block_933; +lean_inc(x_933); +lean_inc(x_932); +lean_inc(x_931); +lean_inc(x_929); +lean_inc(x_927); +lean_inc(x_924); +lean_inc(x_922); +lean_inc(x_913); +lean_inc(x_912); +lean_inc(x_911); +lean_inc(x_910); +lean_inc(x_909); +lean_inc(x_908); +lean_inc(x_907); +lean_inc(x_906); +lean_inc(x_905); +lean_dec(x_3); +x_935 = lean_box(0); +x_936 = 2; +x_937 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_937, 0, x_905); +lean_ctor_set(x_937, 1, x_906); +lean_ctor_set(x_937, 2, x_907); +lean_ctor_set(x_937, 3, x_908); +lean_ctor_set(x_937, 4, x_909); +lean_ctor_set(x_937, 5, x_910); +lean_ctor_set(x_937, 6, x_911); +lean_ctor_set(x_937, 7, x_912); +lean_ctor_set(x_937, 8, x_913); +lean_ctor_set(x_937, 9, x_922); +lean_ctor_set(x_937, 10, x_924); +lean_ctor_set(x_937, 11, x_927); +lean_ctor_set(x_937, 12, x_929); +lean_ctor_set(x_937, 13, x_931); +lean_ctor_set(x_937, 14, x_932); +lean_ctor_set(x_937, 15, x_933); +lean_ctor_set(x_937, 16, x_934); +lean_ctor_set_uint8(x_937, sizeof(void*)*17, x_914); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 1, x_915); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 2, x_916); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 3, x_917); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 4, x_918); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 5, x_919); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 6, x_920); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 7, x_921); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 8, x_923); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 9, x_936); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 10, x_925); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 11, x_926); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 12, x_928); +lean_ctor_set_uint8(x_937, sizeof(void*)*17 + 13, x_930); +x_938 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_938, 0, x_935); +lean_ctor_set(x_938, 1, x_2); +x_939 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_939, 0, x_938); +lean_ctor_set(x_939, 1, x_937); +x_940 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_940, 0, x_939); +x_941 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_941, 0, x_940); +lean_ctor_set(x_941, 1, x_4); +return x_941; +} +} } else { -uint8_t x_935; -x_935 = !lean_is_exclusive(x_927); -if (x_935 == 0) +uint8_t x_942; +lean_dec_ref(x_1); +x_942 = !lean_is_exclusive(x_3); +if (x_942 == 0) { -lean_object* x_936; uint8_t x_937; -x_936 = lean_ctor_get(x_927, 0); -x_937 = !lean_is_exclusive(x_936); -if (x_937 == 0) -{ -lean_object* x_938; uint8_t x_939; -x_938 = lean_ctor_get(x_936, 0); -x_939 = !lean_is_exclusive(x_938); -if (x_939 == 0) -{ -lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; -x_940 = lean_ctor_get(x_936, 1); -x_941 = lean_ctor_get(x_938, 0); -x_942 = lean_ctor_get(x_938, 1); -x_943 = l_Lake_LogLevel_ofString_x3f(x_941); -if (lean_obj_tag(x_943) == 0) -{ -lean_object* x_944; -lean_free_object(x_938); -lean_dec(x_942); -lean_free_object(x_936); -lean_dec(x_940); -lean_free_object(x_927); -x_944 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; -x_930 = x_944; -goto block_933; +lean_object* x_943; uint8_t x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; +x_943 = lean_box(0); +x_944 = 1; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 9, x_944); +x_945 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_945, 0, x_943); +lean_ctor_set(x_945, 1, x_2); +x_946 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_946, 0, x_945); +lean_ctor_set(x_946, 1, x_3); +x_947 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_947, 0, x_946); +x_948 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_948, 0, x_947); +lean_ctor_set(x_948, 1, x_4); +return x_948; } else { -lean_object* x_945; uint8_t x_946; -lean_dec(x_929); -x_945 = lean_ctor_get(x_943, 0); -lean_inc(x_945); -lean_dec_ref(x_943); -x_946 = !lean_is_exclusive(x_940); -if (x_946 == 0) -{ -lean_object* x_947; uint8_t x_948; lean_object* x_949; -x_947 = lean_box(0); -x_948 = lean_unbox(x_945); -lean_dec(x_945); -lean_ctor_set_uint8(x_940, sizeof(void*)*15 + 8, x_948); -lean_ctor_set(x_938, 0, x_947); -x_949 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_949, 0, x_927); -lean_ctor_set(x_949, 1, x_928); -return x_949; -} -else -{ -lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; uint8_t x_959; uint8_t x_960; uint8_t x_961; uint8_t x_962; uint8_t x_963; uint8_t x_964; uint8_t x_965; uint8_t x_966; lean_object* x_967; lean_object* x_968; uint8_t x_969; uint8_t x_970; uint8_t x_971; lean_object* x_972; uint8_t x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; uint8_t x_979; lean_object* x_980; -x_950 = lean_ctor_get(x_940, 0); -x_951 = lean_ctor_get(x_940, 1); -x_952 = lean_ctor_get(x_940, 2); -x_953 = lean_ctor_get(x_940, 3); -x_954 = lean_ctor_get(x_940, 4); -x_955 = lean_ctor_get(x_940, 5); -x_956 = lean_ctor_get(x_940, 6); -x_957 = lean_ctor_get(x_940, 7); -x_958 = lean_ctor_get(x_940, 8); -x_959 = lean_ctor_get_uint8(x_940, sizeof(void*)*15); -x_960 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 1); -x_961 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 2); -x_962 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 3); -x_963 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 4); -x_964 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 5); -x_965 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 6); -x_966 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 7); -x_967 = lean_ctor_get(x_940, 9); -x_968 = lean_ctor_get(x_940, 10); -x_969 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 9); -x_970 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 10); -x_971 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 11); -x_972 = lean_ctor_get(x_940, 11); -x_973 = lean_ctor_get_uint8(x_940, sizeof(void*)*15 + 12); -x_974 = lean_ctor_get(x_940, 12); -x_975 = lean_ctor_get(x_940, 13); -x_976 = lean_ctor_get(x_940, 14); +lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; uint8_t x_958; uint8_t x_959; uint8_t x_960; uint8_t x_961; uint8_t x_962; uint8_t x_963; uint8_t x_964; uint8_t x_965; lean_object* x_966; uint8_t x_967; lean_object* x_968; uint8_t x_969; uint8_t x_970; lean_object* x_971; uint8_t x_972; lean_object* x_973; uint8_t x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; uint8_t x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; +x_949 = lean_ctor_get(x_3, 0); +x_950 = lean_ctor_get(x_3, 1); +x_951 = lean_ctor_get(x_3, 2); +x_952 = lean_ctor_get(x_3, 3); +x_953 = lean_ctor_get(x_3, 4); +x_954 = lean_ctor_get(x_3, 5); +x_955 = lean_ctor_get(x_3, 6); +x_956 = lean_ctor_get(x_3, 7); +x_957 = lean_ctor_get(x_3, 8); +x_958 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_959 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_960 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_961 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_962 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_963 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_964 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_965 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_966 = lean_ctor_get(x_3, 9); +x_967 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_968 = lean_ctor_get(x_3, 10); +x_969 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_970 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_971 = lean_ctor_get(x_3, 11); +x_972 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_973 = lean_ctor_get(x_3, 12); +x_974 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_975 = lean_ctor_get(x_3, 13); +x_976 = lean_ctor_get(x_3, 14); +x_977 = lean_ctor_get(x_3, 15); +x_978 = lean_ctor_get(x_3, 16); +lean_inc(x_978); +lean_inc(x_977); lean_inc(x_976); lean_inc(x_975); -lean_inc(x_974); -lean_inc(x_972); +lean_inc(x_973); +lean_inc(x_971); lean_inc(x_968); -lean_inc(x_967); -lean_inc(x_958); +lean_inc(x_966); lean_inc(x_957); lean_inc(x_956); lean_inc(x_955); @@ -10292,6185 +11072,8328 @@ lean_inc(x_953); lean_inc(x_952); lean_inc(x_951); lean_inc(x_950); -lean_dec(x_940); -x_977 = lean_box(0); -x_978 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_978, 0, x_950); -lean_ctor_set(x_978, 1, x_951); -lean_ctor_set(x_978, 2, x_952); -lean_ctor_set(x_978, 3, x_953); -lean_ctor_set(x_978, 4, x_954); -lean_ctor_set(x_978, 5, x_955); -lean_ctor_set(x_978, 6, x_956); -lean_ctor_set(x_978, 7, x_957); -lean_ctor_set(x_978, 8, x_958); -lean_ctor_set(x_978, 9, x_967); -lean_ctor_set(x_978, 10, x_968); -lean_ctor_set(x_978, 11, x_972); -lean_ctor_set(x_978, 12, x_974); -lean_ctor_set(x_978, 13, x_975); -lean_ctor_set(x_978, 14, x_976); -lean_ctor_set_uint8(x_978, sizeof(void*)*15, x_959); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 1, x_960); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 2, x_961); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 3, x_962); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 4, x_963); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 5, x_964); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 6, x_965); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 7, x_966); -x_979 = lean_unbox(x_945); -lean_dec(x_945); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 8, x_979); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 9, x_969); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 10, x_970); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 11, x_971); -lean_ctor_set_uint8(x_978, sizeof(void*)*15 + 12, x_973); -lean_ctor_set(x_938, 0, x_977); -lean_ctor_set(x_936, 1, x_978); -x_980 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_980, 0, x_927); -lean_ctor_set(x_980, 1, x_928); -return x_980; +lean_inc(x_949); +lean_dec(x_3); +x_979 = lean_box(0); +x_980 = 1; +x_981 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_981, 0, x_949); +lean_ctor_set(x_981, 1, x_950); +lean_ctor_set(x_981, 2, x_951); +lean_ctor_set(x_981, 3, x_952); +lean_ctor_set(x_981, 4, x_953); +lean_ctor_set(x_981, 5, x_954); +lean_ctor_set(x_981, 6, x_955); +lean_ctor_set(x_981, 7, x_956); +lean_ctor_set(x_981, 8, x_957); +lean_ctor_set(x_981, 9, x_966); +lean_ctor_set(x_981, 10, x_968); +lean_ctor_set(x_981, 11, x_971); +lean_ctor_set(x_981, 12, x_973); +lean_ctor_set(x_981, 13, x_975); +lean_ctor_set(x_981, 14, x_976); +lean_ctor_set(x_981, 15, x_977); +lean_ctor_set(x_981, 16, x_978); +lean_ctor_set_uint8(x_981, sizeof(void*)*17, x_958); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 1, x_959); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 2, x_960); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 3, x_961); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 4, x_962); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 5, x_963); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 6, x_964); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 7, x_965); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 8, x_967); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 9, x_980); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 10, x_969); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 11, x_970); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 12, x_972); +lean_ctor_set_uint8(x_981, sizeof(void*)*17 + 13, x_974); +x_982 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_982, 0, x_979); +lean_ctor_set(x_982, 1, x_2); +x_983 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_983, 0, x_982); +lean_ctor_set(x_983, 1, x_981); +x_984 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_984, 0, x_983); +x_985 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_985, 0, x_984); +lean_ctor_set(x_985, 1, x_4); +return x_985; } } } else { -lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; -x_981 = lean_ctor_get(x_936, 1); -x_982 = lean_ctor_get(x_938, 0); -x_983 = lean_ctor_get(x_938, 1); -lean_inc(x_983); -lean_inc(x_982); -lean_dec(x_938); -x_984 = l_Lake_LogLevel_ofString_x3f(x_982); -if (lean_obj_tag(x_984) == 0) -{ -lean_object* x_985; -lean_dec(x_983); -lean_free_object(x_936); -lean_dec(x_981); -lean_free_object(x_927); -x_985 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; -x_930 = x_985; -goto block_933; +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; +lean_dec_ref(x_1); +x_986 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; +x_987 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_51, x_986, x_2, x_3, x_4); +x_988 = lean_ctor_get(x_987, 0); +lean_inc(x_988); +x_989 = lean_ctor_get(x_987, 1); +lean_inc(x_989); +if (lean_is_exclusive(x_987)) { + lean_ctor_release(x_987, 0); + lean_ctor_release(x_987, 1); + x_990 = x_987; +} else { + lean_dec_ref(x_987); + x_990 = lean_box(0); } -else +if (lean_obj_tag(x_988) == 0) { -lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; uint8_t x_996; uint8_t x_997; uint8_t x_998; uint8_t x_999; uint8_t x_1000; uint8_t x_1001; uint8_t x_1002; uint8_t x_1003; lean_object* x_1004; lean_object* x_1005; uint8_t x_1006; uint8_t x_1007; uint8_t x_1008; lean_object* x_1009; uint8_t x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; uint8_t x_1017; lean_object* x_1018; lean_object* x_1019; -lean_dec(x_929); -x_986 = lean_ctor_get(x_984, 0); -lean_inc(x_986); -lean_dec_ref(x_984); -x_987 = lean_ctor_get(x_981, 0); -lean_inc(x_987); -x_988 = lean_ctor_get(x_981, 1); -lean_inc_ref(x_988); -x_989 = lean_ctor_get(x_981, 2); -lean_inc_ref(x_989); -x_990 = lean_ctor_get(x_981, 3); -lean_inc(x_990); -x_991 = lean_ctor_get(x_981, 4); -lean_inc(x_991); -x_992 = lean_ctor_get(x_981, 5); -lean_inc(x_992); -x_993 = lean_ctor_get(x_981, 6); -lean_inc(x_993); -x_994 = lean_ctor_get(x_981, 7); -lean_inc_ref(x_994); -x_995 = lean_ctor_get(x_981, 8); +lean_object* x_995; +x_995 = lean_ctor_get(x_988, 0); lean_inc(x_995); -x_996 = lean_ctor_get_uint8(x_981, sizeof(void*)*15); -x_997 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 1); -x_998 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 2); -x_999 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 3); -x_1000 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 4); -x_1001 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 5); -x_1002 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 6); -x_1003 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 7); -x_1004 = lean_ctor_get(x_981, 9); -lean_inc(x_1004); -x_1005 = lean_ctor_get(x_981, 10); -lean_inc(x_1005); -x_1006 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 9); -x_1007 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 10); -x_1008 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 11); -x_1009 = lean_ctor_get(x_981, 11); -lean_inc(x_1009); -x_1010 = lean_ctor_get_uint8(x_981, sizeof(void*)*15 + 12); -x_1011 = lean_ctor_get(x_981, 12); -lean_inc(x_1011); -x_1012 = lean_ctor_get(x_981, 13); -lean_inc(x_1012); -x_1013 = lean_ctor_get(x_981, 14); -lean_inc(x_1013); -if (lean_is_exclusive(x_981)) { - lean_ctor_release(x_981, 0); - lean_ctor_release(x_981, 1); - lean_ctor_release(x_981, 2); - lean_ctor_release(x_981, 3); - lean_ctor_release(x_981, 4); - lean_ctor_release(x_981, 5); - lean_ctor_release(x_981, 6); - lean_ctor_release(x_981, 7); - lean_ctor_release(x_981, 8); - lean_ctor_release(x_981, 9); - lean_ctor_release(x_981, 10); - lean_ctor_release(x_981, 11); - lean_ctor_release(x_981, 12); - lean_ctor_release(x_981, 13); - lean_ctor_release(x_981, 14); - x_1014 = x_981; -} else { - lean_dec_ref(x_981); - x_1014 = lean_box(0); -} -x_1015 = lean_box(0); -if (lean_is_scalar(x_1014)) { - x_1016 = lean_alloc_ctor(0, 15, 13); -} else { - x_1016 = x_1014; -} -lean_ctor_set(x_1016, 0, x_987); -lean_ctor_set(x_1016, 1, x_988); -lean_ctor_set(x_1016, 2, x_989); -lean_ctor_set(x_1016, 3, x_990); -lean_ctor_set(x_1016, 4, x_991); -lean_ctor_set(x_1016, 5, x_992); -lean_ctor_set(x_1016, 6, x_993); -lean_ctor_set(x_1016, 7, x_994); -lean_ctor_set(x_1016, 8, x_995); -lean_ctor_set(x_1016, 9, x_1004); -lean_ctor_set(x_1016, 10, x_1005); -lean_ctor_set(x_1016, 11, x_1009); -lean_ctor_set(x_1016, 12, x_1011); -lean_ctor_set(x_1016, 13, x_1012); -lean_ctor_set(x_1016, 14, x_1013); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15, x_996); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 1, x_997); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 2, x_998); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 3, x_999); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 4, x_1000); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 5, x_1001); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 6, x_1002); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 7, x_1003); -x_1017 = lean_unbox(x_986); -lean_dec(x_986); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 8, x_1017); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 9, x_1006); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 10, x_1007); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 11, x_1008); -lean_ctor_set_uint8(x_1016, sizeof(void*)*15 + 12, x_1010); -x_1018 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1018, 0, x_1015); -lean_ctor_set(x_1018, 1, x_983); -lean_ctor_set(x_936, 1, x_1016); -lean_ctor_set(x_936, 0, x_1018); -x_1019 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1019, 0, x_927); -lean_ctor_set(x_1019, 1, x_928); -return x_1019; -} -} +lean_dec_ref(x_988); +x_991 = x_995; +goto block_994; } else { -lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; -x_1020 = lean_ctor_get(x_936, 0); -x_1021 = lean_ctor_get(x_936, 1); -lean_inc(x_1021); -lean_inc(x_1020); -lean_dec(x_936); -x_1022 = lean_ctor_get(x_1020, 0); -lean_inc(x_1022); -x_1023 = lean_ctor_get(x_1020, 1); -lean_inc(x_1023); -if (lean_is_exclusive(x_1020)) { - lean_ctor_release(x_1020, 0); - lean_ctor_release(x_1020, 1); - x_1024 = x_1020; -} else { - lean_dec_ref(x_1020); - x_1024 = lean_box(0); -} -x_1025 = l_Lake_LogLevel_ofString_x3f(x_1022); -if (lean_obj_tag(x_1025) == 0) +uint8_t x_996; +x_996 = !lean_is_exclusive(x_988); +if (x_996 == 0) { -lean_object* x_1026; -lean_dec(x_1024); -lean_dec(x_1023); -lean_dec(x_1021); -lean_free_object(x_927); -x_1026 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; -x_930 = x_1026; -goto block_933; +lean_object* x_997; uint8_t x_998; +x_997 = lean_ctor_get(x_988, 0); +x_998 = !lean_is_exclusive(x_997); +if (x_998 == 0) +{ +lean_object* x_999; uint8_t x_1000; +x_999 = lean_ctor_get(x_997, 0); +x_1000 = !lean_is_exclusive(x_999); +if (x_1000 == 0) +{ +lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; +x_1001 = lean_ctor_get(x_997, 1); +x_1002 = lean_ctor_get(x_999, 0); +x_1003 = lean_ctor_get(x_999, 1); +x_1004 = l_Lake_LogLevel_ofString_x3f(x_1002); +if (lean_obj_tag(x_1004) == 0) +{ +lean_object* x_1005; +lean_free_object(x_999); +lean_dec(x_1003); +lean_free_object(x_997); +lean_dec(x_1001); +lean_free_object(x_988); +x_1005 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34; +x_991 = x_1005; +goto block_994; } else { -lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; uint8_t x_1037; uint8_t x_1038; uint8_t x_1039; uint8_t x_1040; uint8_t x_1041; uint8_t x_1042; uint8_t x_1043; uint8_t x_1044; lean_object* x_1045; lean_object* x_1046; uint8_t x_1047; uint8_t x_1048; uint8_t x_1049; lean_object* x_1050; uint8_t x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; uint8_t x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; -lean_dec(x_929); -x_1027 = lean_ctor_get(x_1025, 0); -lean_inc(x_1027); -lean_dec_ref(x_1025); -x_1028 = lean_ctor_get(x_1021, 0); -lean_inc(x_1028); -x_1029 = lean_ctor_get(x_1021, 1); -lean_inc_ref(x_1029); -x_1030 = lean_ctor_get(x_1021, 2); -lean_inc_ref(x_1030); -x_1031 = lean_ctor_get(x_1021, 3); -lean_inc(x_1031); -x_1032 = lean_ctor_get(x_1021, 4); -lean_inc(x_1032); -x_1033 = lean_ctor_get(x_1021, 5); +lean_object* x_1006; uint8_t x_1007; +lean_dec(x_990); +x_1006 = lean_ctor_get(x_1004, 0); +lean_inc(x_1006); +lean_dec_ref(x_1004); +x_1007 = !lean_is_exclusive(x_1001); +if (x_1007 == 0) +{ +lean_object* x_1008; uint8_t x_1009; lean_object* x_1010; +x_1008 = lean_box(0); +x_1009 = lean_unbox(x_1006); +lean_dec(x_1006); +lean_ctor_set_uint8(x_1001, sizeof(void*)*17 + 8, x_1009); +lean_ctor_set(x_999, 0, x_1008); +x_1010 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1010, 0, x_988); +lean_ctor_set(x_1010, 1, x_989); +return x_1010; +} +else +{ +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; uint8_t x_1020; uint8_t x_1021; uint8_t x_1022; uint8_t x_1023; uint8_t x_1024; uint8_t x_1025; uint8_t x_1026; uint8_t x_1027; lean_object* x_1028; lean_object* x_1029; uint8_t x_1030; uint8_t x_1031; uint8_t x_1032; lean_object* x_1033; uint8_t x_1034; lean_object* x_1035; uint8_t x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; uint8_t x_1043; lean_object* x_1044; +x_1011 = lean_ctor_get(x_1001, 0); +x_1012 = lean_ctor_get(x_1001, 1); +x_1013 = lean_ctor_get(x_1001, 2); +x_1014 = lean_ctor_get(x_1001, 3); +x_1015 = lean_ctor_get(x_1001, 4); +x_1016 = lean_ctor_get(x_1001, 5); +x_1017 = lean_ctor_get(x_1001, 6); +x_1018 = lean_ctor_get(x_1001, 7); +x_1019 = lean_ctor_get(x_1001, 8); +x_1020 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17); +x_1021 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 1); +x_1022 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 2); +x_1023 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 3); +x_1024 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 4); +x_1025 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 5); +x_1026 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 6); +x_1027 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 7); +x_1028 = lean_ctor_get(x_1001, 9); +x_1029 = lean_ctor_get(x_1001, 10); +x_1030 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 9); +x_1031 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 10); +x_1032 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 11); +x_1033 = lean_ctor_get(x_1001, 11); +x_1034 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 12); +x_1035 = lean_ctor_get(x_1001, 12); +x_1036 = lean_ctor_get_uint8(x_1001, sizeof(void*)*17 + 13); +x_1037 = lean_ctor_get(x_1001, 13); +x_1038 = lean_ctor_get(x_1001, 14); +x_1039 = lean_ctor_get(x_1001, 15); +x_1040 = lean_ctor_get(x_1001, 16); +lean_inc(x_1040); +lean_inc(x_1039); +lean_inc(x_1038); +lean_inc(x_1037); +lean_inc(x_1035); lean_inc(x_1033); -x_1034 = lean_ctor_get(x_1021, 6); -lean_inc(x_1034); -x_1035 = lean_ctor_get(x_1021, 7); -lean_inc_ref(x_1035); -x_1036 = lean_ctor_get(x_1021, 8); -lean_inc(x_1036); -x_1037 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15); -x_1038 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 1); -x_1039 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 2); -x_1040 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 3); -x_1041 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 4); -x_1042 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 5); -x_1043 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 6); -x_1044 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 7); -x_1045 = lean_ctor_get(x_1021, 9); -lean_inc(x_1045); -x_1046 = lean_ctor_get(x_1021, 10); +lean_inc(x_1029); +lean_inc(x_1028); +lean_inc(x_1019); +lean_inc(x_1018); +lean_inc(x_1017); +lean_inc(x_1016); +lean_inc(x_1015); +lean_inc(x_1014); +lean_inc(x_1013); +lean_inc(x_1012); +lean_inc(x_1011); +lean_dec(x_1001); +x_1041 = lean_box(0); +x_1042 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1042, 0, x_1011); +lean_ctor_set(x_1042, 1, x_1012); +lean_ctor_set(x_1042, 2, x_1013); +lean_ctor_set(x_1042, 3, x_1014); +lean_ctor_set(x_1042, 4, x_1015); +lean_ctor_set(x_1042, 5, x_1016); +lean_ctor_set(x_1042, 6, x_1017); +lean_ctor_set(x_1042, 7, x_1018); +lean_ctor_set(x_1042, 8, x_1019); +lean_ctor_set(x_1042, 9, x_1028); +lean_ctor_set(x_1042, 10, x_1029); +lean_ctor_set(x_1042, 11, x_1033); +lean_ctor_set(x_1042, 12, x_1035); +lean_ctor_set(x_1042, 13, x_1037); +lean_ctor_set(x_1042, 14, x_1038); +lean_ctor_set(x_1042, 15, x_1039); +lean_ctor_set(x_1042, 16, x_1040); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17, x_1020); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 1, x_1021); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 2, x_1022); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 3, x_1023); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 4, x_1024); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 5, x_1025); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 6, x_1026); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 7, x_1027); +x_1043 = lean_unbox(x_1006); +lean_dec(x_1006); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 8, x_1043); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 9, x_1030); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 10, x_1031); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 11, x_1032); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 12, x_1034); +lean_ctor_set_uint8(x_1042, sizeof(void*)*17 + 13, x_1036); +lean_ctor_set(x_999, 0, x_1041); +lean_ctor_set(x_997, 1, x_1042); +x_1044 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1044, 0, x_988); +lean_ctor_set(x_1044, 1, x_989); +return x_1044; +} +} +} +else +{ +lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; +x_1045 = lean_ctor_get(x_997, 1); +x_1046 = lean_ctor_get(x_999, 0); +x_1047 = lean_ctor_get(x_999, 1); +lean_inc(x_1047); lean_inc(x_1046); -x_1047 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 9); -x_1048 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 10); -x_1049 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 11); -x_1050 = lean_ctor_get(x_1021, 11); +lean_dec(x_999); +x_1048 = l_Lake_LogLevel_ofString_x3f(x_1046); +if (lean_obj_tag(x_1048) == 0) +{ +lean_object* x_1049; +lean_dec(x_1047); +lean_free_object(x_997); +lean_dec(x_1045); +lean_free_object(x_988); +x_1049 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34; +x_991 = x_1049; +goto block_994; +} +else +{ +lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; uint8_t x_1060; uint8_t x_1061; uint8_t x_1062; uint8_t x_1063; uint8_t x_1064; uint8_t x_1065; uint8_t x_1066; uint8_t x_1067; lean_object* x_1068; lean_object* x_1069; uint8_t x_1070; uint8_t x_1071; uint8_t x_1072; lean_object* x_1073; uint8_t x_1074; lean_object* x_1075; uint8_t x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; uint8_t x_1084; lean_object* x_1085; lean_object* x_1086; +lean_dec(x_990); +x_1050 = lean_ctor_get(x_1048, 0); lean_inc(x_1050); -x_1051 = lean_ctor_get_uint8(x_1021, sizeof(void*)*15 + 12); -x_1052 = lean_ctor_get(x_1021, 12); -lean_inc(x_1052); -x_1053 = lean_ctor_get(x_1021, 13); -lean_inc(x_1053); -x_1054 = lean_ctor_get(x_1021, 14); +lean_dec_ref(x_1048); +x_1051 = lean_ctor_get(x_1045, 0); +lean_inc(x_1051); +x_1052 = lean_ctor_get(x_1045, 1); +lean_inc_ref(x_1052); +x_1053 = lean_ctor_get(x_1045, 2); +lean_inc_ref(x_1053); +x_1054 = lean_ctor_get(x_1045, 3); lean_inc(x_1054); -if (lean_is_exclusive(x_1021)) { - lean_ctor_release(x_1021, 0); - lean_ctor_release(x_1021, 1); - lean_ctor_release(x_1021, 2); - lean_ctor_release(x_1021, 3); - lean_ctor_release(x_1021, 4); - lean_ctor_release(x_1021, 5); - lean_ctor_release(x_1021, 6); - lean_ctor_release(x_1021, 7); - lean_ctor_release(x_1021, 8); - lean_ctor_release(x_1021, 9); - lean_ctor_release(x_1021, 10); - lean_ctor_release(x_1021, 11); - lean_ctor_release(x_1021, 12); - lean_ctor_release(x_1021, 13); - lean_ctor_release(x_1021, 14); - x_1055 = x_1021; -} else { - lean_dec_ref(x_1021); - x_1055 = lean_box(0); -} -x_1056 = lean_box(0); -if (lean_is_scalar(x_1055)) { - x_1057 = lean_alloc_ctor(0, 15, 13); -} else { - x_1057 = x_1055; -} -lean_ctor_set(x_1057, 0, x_1028); -lean_ctor_set(x_1057, 1, x_1029); -lean_ctor_set(x_1057, 2, x_1030); -lean_ctor_set(x_1057, 3, x_1031); -lean_ctor_set(x_1057, 4, x_1032); -lean_ctor_set(x_1057, 5, x_1033); -lean_ctor_set(x_1057, 6, x_1034); -lean_ctor_set(x_1057, 7, x_1035); -lean_ctor_set(x_1057, 8, x_1036); -lean_ctor_set(x_1057, 9, x_1045); -lean_ctor_set(x_1057, 10, x_1046); -lean_ctor_set(x_1057, 11, x_1050); -lean_ctor_set(x_1057, 12, x_1052); -lean_ctor_set(x_1057, 13, x_1053); -lean_ctor_set(x_1057, 14, x_1054); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15, x_1037); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 1, x_1038); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 2, x_1039); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 3, x_1040); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 4, x_1041); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 5, x_1042); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 6, x_1043); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 7, x_1044); -x_1058 = lean_unbox(x_1027); -lean_dec(x_1027); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 8, x_1058); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 9, x_1047); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 10, x_1048); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 11, x_1049); -lean_ctor_set_uint8(x_1057, sizeof(void*)*15 + 12, x_1051); -if (lean_is_scalar(x_1024)) { - x_1059 = lean_alloc_ctor(0, 2, 0); -} else { - x_1059 = x_1024; -} -lean_ctor_set(x_1059, 0, x_1056); -lean_ctor_set(x_1059, 1, x_1023); -x_1060 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1060, 0, x_1059); -lean_ctor_set(x_1060, 1, x_1057); -lean_ctor_set(x_927, 0, x_1060); -x_1061 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1061, 0, x_927); -lean_ctor_set(x_1061, 1, x_928); -return x_1061; -} -} -} -else -{ -lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; -x_1062 = lean_ctor_get(x_927, 0); -lean_inc(x_1062); -lean_dec(x_927); -x_1063 = lean_ctor_get(x_1062, 0); -lean_inc(x_1063); -x_1064 = lean_ctor_get(x_1062, 1); -lean_inc(x_1064); -if (lean_is_exclusive(x_1062)) { - lean_ctor_release(x_1062, 0); - lean_ctor_release(x_1062, 1); - x_1065 = x_1062; -} else { - lean_dec_ref(x_1062); - x_1065 = lean_box(0); -} -x_1066 = lean_ctor_get(x_1063, 0); -lean_inc(x_1066); -x_1067 = lean_ctor_get(x_1063, 1); -lean_inc(x_1067); -if (lean_is_exclusive(x_1063)) { - lean_ctor_release(x_1063, 0); - lean_ctor_release(x_1063, 1); - x_1068 = x_1063; -} else { - lean_dec_ref(x_1063); - x_1068 = lean_box(0); -} -x_1069 = l_Lake_LogLevel_ofString_x3f(x_1066); -if (lean_obj_tag(x_1069) == 0) -{ -lean_object* x_1070; -lean_dec(x_1068); -lean_dec(x_1067); -lean_dec(x_1065); -lean_dec(x_1064); -x_1070 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__32; -x_930 = x_1070; -goto block_933; -} -else -{ -lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; uint8_t x_1081; uint8_t x_1082; uint8_t x_1083; uint8_t x_1084; uint8_t x_1085; uint8_t x_1086; uint8_t x_1087; uint8_t x_1088; lean_object* x_1089; lean_object* x_1090; uint8_t x_1091; uint8_t x_1092; uint8_t x_1093; lean_object* x_1094; uint8_t x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; uint8_t x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; -lean_dec(x_929); -x_1071 = lean_ctor_get(x_1069, 0); -lean_inc(x_1071); -lean_dec_ref(x_1069); -x_1072 = lean_ctor_get(x_1064, 0); -lean_inc(x_1072); -x_1073 = lean_ctor_get(x_1064, 1); -lean_inc_ref(x_1073); -x_1074 = lean_ctor_get(x_1064, 2); -lean_inc_ref(x_1074); -x_1075 = lean_ctor_get(x_1064, 3); +x_1055 = lean_ctor_get(x_1045, 4); +lean_inc(x_1055); +x_1056 = lean_ctor_get(x_1045, 5); +lean_inc(x_1056); +x_1057 = lean_ctor_get(x_1045, 6); +lean_inc(x_1057); +x_1058 = lean_ctor_get(x_1045, 7); +lean_inc_ref(x_1058); +x_1059 = lean_ctor_get(x_1045, 8); +lean_inc(x_1059); +x_1060 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17); +x_1061 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 1); +x_1062 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 2); +x_1063 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 3); +x_1064 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 4); +x_1065 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 5); +x_1066 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 6); +x_1067 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 7); +x_1068 = lean_ctor_get(x_1045, 9); +lean_inc(x_1068); +x_1069 = lean_ctor_get(x_1045, 10); +lean_inc(x_1069); +x_1070 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 9); +x_1071 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 10); +x_1072 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 11); +x_1073 = lean_ctor_get(x_1045, 11); +lean_inc(x_1073); +x_1074 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 12); +x_1075 = lean_ctor_get(x_1045, 12); lean_inc(x_1075); -x_1076 = lean_ctor_get(x_1064, 4); -lean_inc(x_1076); -x_1077 = lean_ctor_get(x_1064, 5); +x_1076 = lean_ctor_get_uint8(x_1045, sizeof(void*)*17 + 13); +x_1077 = lean_ctor_get(x_1045, 13); lean_inc(x_1077); -x_1078 = lean_ctor_get(x_1064, 6); +x_1078 = lean_ctor_get(x_1045, 14); lean_inc(x_1078); -x_1079 = lean_ctor_get(x_1064, 7); -lean_inc_ref(x_1079); -x_1080 = lean_ctor_get(x_1064, 8); +x_1079 = lean_ctor_get(x_1045, 15); +lean_inc(x_1079); +x_1080 = lean_ctor_get(x_1045, 16); lean_inc(x_1080); -x_1081 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15); -x_1082 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 1); -x_1083 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 2); -x_1084 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 3); -x_1085 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 4); -x_1086 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 5); -x_1087 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 6); -x_1088 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 7); -x_1089 = lean_ctor_get(x_1064, 9); +if (lean_is_exclusive(x_1045)) { + lean_ctor_release(x_1045, 0); + lean_ctor_release(x_1045, 1); + lean_ctor_release(x_1045, 2); + lean_ctor_release(x_1045, 3); + lean_ctor_release(x_1045, 4); + lean_ctor_release(x_1045, 5); + lean_ctor_release(x_1045, 6); + lean_ctor_release(x_1045, 7); + lean_ctor_release(x_1045, 8); + lean_ctor_release(x_1045, 9); + lean_ctor_release(x_1045, 10); + lean_ctor_release(x_1045, 11); + lean_ctor_release(x_1045, 12); + lean_ctor_release(x_1045, 13); + lean_ctor_release(x_1045, 14); + lean_ctor_release(x_1045, 15); + lean_ctor_release(x_1045, 16); + x_1081 = x_1045; +} else { + lean_dec_ref(x_1045); + x_1081 = lean_box(0); +} +x_1082 = lean_box(0); +if (lean_is_scalar(x_1081)) { + x_1083 = lean_alloc_ctor(0, 17, 14); +} else { + x_1083 = x_1081; +} +lean_ctor_set(x_1083, 0, x_1051); +lean_ctor_set(x_1083, 1, x_1052); +lean_ctor_set(x_1083, 2, x_1053); +lean_ctor_set(x_1083, 3, x_1054); +lean_ctor_set(x_1083, 4, x_1055); +lean_ctor_set(x_1083, 5, x_1056); +lean_ctor_set(x_1083, 6, x_1057); +lean_ctor_set(x_1083, 7, x_1058); +lean_ctor_set(x_1083, 8, x_1059); +lean_ctor_set(x_1083, 9, x_1068); +lean_ctor_set(x_1083, 10, x_1069); +lean_ctor_set(x_1083, 11, x_1073); +lean_ctor_set(x_1083, 12, x_1075); +lean_ctor_set(x_1083, 13, x_1077); +lean_ctor_set(x_1083, 14, x_1078); +lean_ctor_set(x_1083, 15, x_1079); +lean_ctor_set(x_1083, 16, x_1080); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17, x_1060); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 1, x_1061); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 2, x_1062); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 3, x_1063); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 4, x_1064); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 5, x_1065); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 6, x_1066); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 7, x_1067); +x_1084 = lean_unbox(x_1050); +lean_dec(x_1050); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 8, x_1084); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 9, x_1070); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 10, x_1071); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 11, x_1072); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 12, x_1074); +lean_ctor_set_uint8(x_1083, sizeof(void*)*17 + 13, x_1076); +x_1085 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1085, 0, x_1082); +lean_ctor_set(x_1085, 1, x_1047); +lean_ctor_set(x_997, 1, x_1083); +lean_ctor_set(x_997, 0, x_1085); +x_1086 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1086, 0, x_988); +lean_ctor_set(x_1086, 1, x_989); +return x_1086; +} +} +} +else +{ +lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; +x_1087 = lean_ctor_get(x_997, 0); +x_1088 = lean_ctor_get(x_997, 1); +lean_inc(x_1088); +lean_inc(x_1087); +lean_dec(x_997); +x_1089 = lean_ctor_get(x_1087, 0); lean_inc(x_1089); -x_1090 = lean_ctor_get(x_1064, 10); +x_1090 = lean_ctor_get(x_1087, 1); lean_inc(x_1090); -x_1091 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 9); -x_1092 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 10); -x_1093 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 11); -x_1094 = lean_ctor_get(x_1064, 11); +if (lean_is_exclusive(x_1087)) { + lean_ctor_release(x_1087, 0); + lean_ctor_release(x_1087, 1); + x_1091 = x_1087; +} else { + lean_dec_ref(x_1087); + x_1091 = lean_box(0); +} +x_1092 = l_Lake_LogLevel_ofString_x3f(x_1089); +if (lean_obj_tag(x_1092) == 0) +{ +lean_object* x_1093; +lean_dec(x_1091); +lean_dec(x_1090); +lean_dec(x_1088); +lean_free_object(x_988); +x_1093 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34; +x_991 = x_1093; +goto block_994; +} +else +{ +lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; uint8_t x_1104; uint8_t x_1105; uint8_t x_1106; uint8_t x_1107; uint8_t x_1108; uint8_t x_1109; uint8_t x_1110; uint8_t x_1111; lean_object* x_1112; lean_object* x_1113; uint8_t x_1114; uint8_t x_1115; uint8_t x_1116; lean_object* x_1117; uint8_t x_1118; lean_object* x_1119; uint8_t x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; uint8_t x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; +lean_dec(x_990); +x_1094 = lean_ctor_get(x_1092, 0); lean_inc(x_1094); -x_1095 = lean_ctor_get_uint8(x_1064, sizeof(void*)*15 + 12); -x_1096 = lean_ctor_get(x_1064, 12); -lean_inc(x_1096); -x_1097 = lean_ctor_get(x_1064, 13); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_1064, 14); +lean_dec_ref(x_1092); +x_1095 = lean_ctor_get(x_1088, 0); +lean_inc(x_1095); +x_1096 = lean_ctor_get(x_1088, 1); +lean_inc_ref(x_1096); +x_1097 = lean_ctor_get(x_1088, 2); +lean_inc_ref(x_1097); +x_1098 = lean_ctor_get(x_1088, 3); lean_inc(x_1098); -if (lean_is_exclusive(x_1064)) { - lean_ctor_release(x_1064, 0); - lean_ctor_release(x_1064, 1); - lean_ctor_release(x_1064, 2); - lean_ctor_release(x_1064, 3); - lean_ctor_release(x_1064, 4); - lean_ctor_release(x_1064, 5); - lean_ctor_release(x_1064, 6); - lean_ctor_release(x_1064, 7); - lean_ctor_release(x_1064, 8); - lean_ctor_release(x_1064, 9); - lean_ctor_release(x_1064, 10); - lean_ctor_release(x_1064, 11); - lean_ctor_release(x_1064, 12); - lean_ctor_release(x_1064, 13); - lean_ctor_release(x_1064, 14); - x_1099 = x_1064; +x_1099 = lean_ctor_get(x_1088, 4); +lean_inc(x_1099); +x_1100 = lean_ctor_get(x_1088, 5); +lean_inc(x_1100); +x_1101 = lean_ctor_get(x_1088, 6); +lean_inc(x_1101); +x_1102 = lean_ctor_get(x_1088, 7); +lean_inc_ref(x_1102); +x_1103 = lean_ctor_get(x_1088, 8); +lean_inc(x_1103); +x_1104 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17); +x_1105 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 1); +x_1106 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 2); +x_1107 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 3); +x_1108 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 4); +x_1109 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 5); +x_1110 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 6); +x_1111 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 7); +x_1112 = lean_ctor_get(x_1088, 9); +lean_inc(x_1112); +x_1113 = lean_ctor_get(x_1088, 10); +lean_inc(x_1113); +x_1114 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 9); +x_1115 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 10); +x_1116 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 11); +x_1117 = lean_ctor_get(x_1088, 11); +lean_inc(x_1117); +x_1118 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 12); +x_1119 = lean_ctor_get(x_1088, 12); +lean_inc(x_1119); +x_1120 = lean_ctor_get_uint8(x_1088, sizeof(void*)*17 + 13); +x_1121 = lean_ctor_get(x_1088, 13); +lean_inc(x_1121); +x_1122 = lean_ctor_get(x_1088, 14); +lean_inc(x_1122); +x_1123 = lean_ctor_get(x_1088, 15); +lean_inc(x_1123); +x_1124 = lean_ctor_get(x_1088, 16); +lean_inc(x_1124); +if (lean_is_exclusive(x_1088)) { + lean_ctor_release(x_1088, 0); + lean_ctor_release(x_1088, 1); + lean_ctor_release(x_1088, 2); + lean_ctor_release(x_1088, 3); + lean_ctor_release(x_1088, 4); + lean_ctor_release(x_1088, 5); + lean_ctor_release(x_1088, 6); + lean_ctor_release(x_1088, 7); + lean_ctor_release(x_1088, 8); + lean_ctor_release(x_1088, 9); + lean_ctor_release(x_1088, 10); + lean_ctor_release(x_1088, 11); + lean_ctor_release(x_1088, 12); + lean_ctor_release(x_1088, 13); + lean_ctor_release(x_1088, 14); + lean_ctor_release(x_1088, 15); + lean_ctor_release(x_1088, 16); + x_1125 = x_1088; } else { - lean_dec_ref(x_1064); - x_1099 = lean_box(0); + lean_dec_ref(x_1088); + x_1125 = lean_box(0); } -x_1100 = lean_box(0); -if (lean_is_scalar(x_1099)) { - x_1101 = lean_alloc_ctor(0, 15, 13); +x_1126 = lean_box(0); +if (lean_is_scalar(x_1125)) { + x_1127 = lean_alloc_ctor(0, 17, 14); } else { - x_1101 = x_1099; + x_1127 = x_1125; } -lean_ctor_set(x_1101, 0, x_1072); -lean_ctor_set(x_1101, 1, x_1073); -lean_ctor_set(x_1101, 2, x_1074); -lean_ctor_set(x_1101, 3, x_1075); -lean_ctor_set(x_1101, 4, x_1076); -lean_ctor_set(x_1101, 5, x_1077); -lean_ctor_set(x_1101, 6, x_1078); -lean_ctor_set(x_1101, 7, x_1079); -lean_ctor_set(x_1101, 8, x_1080); -lean_ctor_set(x_1101, 9, x_1089); -lean_ctor_set(x_1101, 10, x_1090); -lean_ctor_set(x_1101, 11, x_1094); -lean_ctor_set(x_1101, 12, x_1096); -lean_ctor_set(x_1101, 13, x_1097); -lean_ctor_set(x_1101, 14, x_1098); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15, x_1081); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 1, x_1082); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 2, x_1083); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 3, x_1084); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 4, x_1085); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 5, x_1086); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 6, x_1087); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 7, x_1088); -x_1102 = lean_unbox(x_1071); -lean_dec(x_1071); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 8, x_1102); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 9, x_1091); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 10, x_1092); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 11, x_1093); -lean_ctor_set_uint8(x_1101, sizeof(void*)*15 + 12, x_1095); -if (lean_is_scalar(x_1068)) { - x_1103 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1127, 0, x_1095); +lean_ctor_set(x_1127, 1, x_1096); +lean_ctor_set(x_1127, 2, x_1097); +lean_ctor_set(x_1127, 3, x_1098); +lean_ctor_set(x_1127, 4, x_1099); +lean_ctor_set(x_1127, 5, x_1100); +lean_ctor_set(x_1127, 6, x_1101); +lean_ctor_set(x_1127, 7, x_1102); +lean_ctor_set(x_1127, 8, x_1103); +lean_ctor_set(x_1127, 9, x_1112); +lean_ctor_set(x_1127, 10, x_1113); +lean_ctor_set(x_1127, 11, x_1117); +lean_ctor_set(x_1127, 12, x_1119); +lean_ctor_set(x_1127, 13, x_1121); +lean_ctor_set(x_1127, 14, x_1122); +lean_ctor_set(x_1127, 15, x_1123); +lean_ctor_set(x_1127, 16, x_1124); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17, x_1104); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 1, x_1105); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 2, x_1106); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 3, x_1107); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 4, x_1108); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 5, x_1109); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 6, x_1110); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 7, x_1111); +x_1128 = lean_unbox(x_1094); +lean_dec(x_1094); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 8, x_1128); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 9, x_1114); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 10, x_1115); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 11, x_1116); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 12, x_1118); +lean_ctor_set_uint8(x_1127, sizeof(void*)*17 + 13, x_1120); +if (lean_is_scalar(x_1091)) { + x_1129 = lean_alloc_ctor(0, 2, 0); } else { - x_1103 = x_1068; + x_1129 = x_1091; } -lean_ctor_set(x_1103, 0, x_1100); -lean_ctor_set(x_1103, 1, x_1067); -if (lean_is_scalar(x_1065)) { - x_1104 = lean_alloc_ctor(0, 2, 0); -} else { - x_1104 = x_1065; -} -lean_ctor_set(x_1104, 0, x_1103); -lean_ctor_set(x_1104, 1, x_1101); -x_1105 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1105, 0, x_1104); -x_1106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1106, 0, x_1105); -lean_ctor_set(x_1106, 1, x_928); -return x_1106; -} -} -} -block_933: -{ -lean_object* x_931; lean_object* x_932; -x_931 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_931, 0, x_930); -if (lean_is_scalar(x_929)) { - x_932 = lean_alloc_ctor(0, 2, 0); -} else { - x_932 = x_929; -} -lean_ctor_set(x_932, 0, x_931); -lean_ctor_set(x_932, 1, x_928); -return x_932; -} -} -} -else -{ -lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; -lean_dec_ref(x_1); -x_1107 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; -x_1108 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_45, x_1107, x_2, x_3, x_4); -x_1109 = lean_ctor_get(x_1108, 0); -lean_inc(x_1109); -x_1110 = lean_ctor_get(x_1108, 1); -lean_inc(x_1110); -if (lean_is_exclusive(x_1108)) { - lean_ctor_release(x_1108, 0); - lean_ctor_release(x_1108, 1); - x_1111 = x_1108; -} else { - lean_dec_ref(x_1108); - x_1111 = lean_box(0); -} -if (lean_obj_tag(x_1109) == 0) -{ -lean_object* x_1116; -x_1116 = lean_ctor_get(x_1109, 0); -lean_inc(x_1116); -lean_dec_ref(x_1109); -x_1112 = x_1116; -goto block_1115; -} -else -{ -uint8_t x_1117; -x_1117 = !lean_is_exclusive(x_1109); -if (x_1117 == 0) -{ -lean_object* x_1118; uint8_t x_1119; -x_1118 = lean_ctor_get(x_1109, 0); -x_1119 = !lean_is_exclusive(x_1118); -if (x_1119 == 0) -{ -lean_object* x_1120; uint8_t x_1121; -x_1120 = lean_ctor_get(x_1118, 0); -x_1121 = !lean_is_exclusive(x_1120); -if (x_1121 == 0) -{ -lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; -x_1122 = lean_ctor_get(x_1118, 1); -x_1123 = lean_ctor_get(x_1120, 0); -x_1124 = lean_ctor_get(x_1120, 1); -x_1125 = l_Lake_LogLevel_ofString_x3f(x_1123); -if (lean_obj_tag(x_1125) == 0) -{ -lean_object* x_1126; -lean_free_object(x_1120); -lean_dec(x_1124); -lean_free_object(x_1118); -lean_dec(x_1122); -lean_free_object(x_1109); -x_1126 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; -x_1112 = x_1126; -goto block_1115; -} -else -{ -uint8_t x_1127; -lean_dec(x_1111); -x_1127 = !lean_is_exclusive(x_1122); -if (x_1127 == 0) -{ -lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; -x_1128 = lean_ctor_get(x_1122, 10); -lean_dec(x_1128); -x_1129 = lean_box(0); -lean_ctor_set(x_1122, 10, x_1125); -lean_ctor_set(x_1120, 0, x_1129); +lean_ctor_set(x_1129, 0, x_1126); +lean_ctor_set(x_1129, 1, x_1090); x_1130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1130, 0, x_1109); -lean_ctor_set(x_1130, 1, x_1110); -return x_1130; +lean_ctor_set(x_1130, 0, x_1129); +lean_ctor_set(x_1130, 1, x_1127); +lean_ctor_set(x_988, 0, x_1130); +x_1131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1131, 0, x_988); +lean_ctor_set(x_1131, 1, x_989); +return x_1131; +} +} } else { -lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; uint8_t x_1140; uint8_t x_1141; uint8_t x_1142; uint8_t x_1143; uint8_t x_1144; uint8_t x_1145; uint8_t x_1146; uint8_t x_1147; lean_object* x_1148; uint8_t x_1149; uint8_t x_1150; uint8_t x_1151; uint8_t x_1152; lean_object* x_1153; uint8_t x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; -x_1131 = lean_ctor_get(x_1122, 0); -x_1132 = lean_ctor_get(x_1122, 1); -x_1133 = lean_ctor_get(x_1122, 2); -x_1134 = lean_ctor_get(x_1122, 3); -x_1135 = lean_ctor_get(x_1122, 4); -x_1136 = lean_ctor_get(x_1122, 5); -x_1137 = lean_ctor_get(x_1122, 6); -x_1138 = lean_ctor_get(x_1122, 7); -x_1139 = lean_ctor_get(x_1122, 8); -x_1140 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15); -x_1141 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 1); -x_1142 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 2); -x_1143 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 3); -x_1144 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 4); -x_1145 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 5); -x_1146 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 6); -x_1147 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 7); -x_1148 = lean_ctor_get(x_1122, 9); -x_1149 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 8); -x_1150 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 9); -x_1151 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 10); -x_1152 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 11); -x_1153 = lean_ctor_get(x_1122, 11); -x_1154 = lean_ctor_get_uint8(x_1122, sizeof(void*)*15 + 12); -x_1155 = lean_ctor_get(x_1122, 12); -x_1156 = lean_ctor_get(x_1122, 13); -x_1157 = lean_ctor_get(x_1122, 14); -lean_inc(x_1157); -lean_inc(x_1156); -lean_inc(x_1155); -lean_inc(x_1153); -lean_inc(x_1148); -lean_inc(x_1139); -lean_inc(x_1138); -lean_inc(x_1137); -lean_inc(x_1136); -lean_inc(x_1135); -lean_inc(x_1134); -lean_inc(x_1133); +lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; +x_1132 = lean_ctor_get(x_988, 0); lean_inc(x_1132); -lean_inc(x_1131); -lean_dec(x_1122); -x_1158 = lean_box(0); -x_1159 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_1159, 0, x_1131); -lean_ctor_set(x_1159, 1, x_1132); -lean_ctor_set(x_1159, 2, x_1133); -lean_ctor_set(x_1159, 3, x_1134); -lean_ctor_set(x_1159, 4, x_1135); -lean_ctor_set(x_1159, 5, x_1136); -lean_ctor_set(x_1159, 6, x_1137); -lean_ctor_set(x_1159, 7, x_1138); -lean_ctor_set(x_1159, 8, x_1139); -lean_ctor_set(x_1159, 9, x_1148); -lean_ctor_set(x_1159, 10, x_1125); -lean_ctor_set(x_1159, 11, x_1153); -lean_ctor_set(x_1159, 12, x_1155); -lean_ctor_set(x_1159, 13, x_1156); -lean_ctor_set(x_1159, 14, x_1157); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15, x_1140); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 1, x_1141); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 2, x_1142); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 3, x_1143); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 4, x_1144); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 5, x_1145); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 6, x_1146); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 7, x_1147); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 8, x_1149); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 9, x_1150); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 10, x_1151); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 11, x_1152); -lean_ctor_set_uint8(x_1159, sizeof(void*)*15 + 12, x_1154); -lean_ctor_set(x_1120, 0, x_1158); -lean_ctor_set(x_1118, 1, x_1159); -x_1160 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1160, 0, x_1109); -lean_ctor_set(x_1160, 1, x_1110); -return x_1160; +lean_dec(x_988); +x_1133 = lean_ctor_get(x_1132, 0); +lean_inc(x_1133); +x_1134 = lean_ctor_get(x_1132, 1); +lean_inc(x_1134); +if (lean_is_exclusive(x_1132)) { + lean_ctor_release(x_1132, 0); + lean_ctor_release(x_1132, 1); + x_1135 = x_1132; +} else { + lean_dec_ref(x_1132); + x_1135 = lean_box(0); } +x_1136 = lean_ctor_get(x_1133, 0); +lean_inc(x_1136); +x_1137 = lean_ctor_get(x_1133, 1); +lean_inc(x_1137); +if (lean_is_exclusive(x_1133)) { + lean_ctor_release(x_1133, 0); + lean_ctor_release(x_1133, 1); + x_1138 = x_1133; +} else { + lean_dec_ref(x_1133); + x_1138 = lean_box(0); } +x_1139 = l_Lake_LogLevel_ofString_x3f(x_1136); +if (lean_obj_tag(x_1139) == 0) +{ +lean_object* x_1140; +lean_dec(x_1138); +lean_dec(x_1137); +lean_dec(x_1135); +lean_dec(x_1134); +x_1140 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34; +x_991 = x_1140; +goto block_994; } else { -lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; -x_1161 = lean_ctor_get(x_1118, 1); -x_1162 = lean_ctor_get(x_1120, 0); -x_1163 = lean_ctor_get(x_1120, 1); -lean_inc(x_1163); -lean_inc(x_1162); -lean_dec(x_1120); -x_1164 = l_Lake_LogLevel_ofString_x3f(x_1162); -if (lean_obj_tag(x_1164) == 0) -{ -lean_object* x_1165; -lean_dec(x_1163); -lean_free_object(x_1118); -lean_dec(x_1161); -lean_free_object(x_1109); -x_1165 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; -x_1112 = x_1165; -goto block_1115; -} -else -{ -lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; uint8_t x_1175; uint8_t x_1176; uint8_t x_1177; uint8_t x_1178; uint8_t x_1179; uint8_t x_1180; uint8_t x_1181; uint8_t x_1182; lean_object* x_1183; uint8_t x_1184; uint8_t x_1185; uint8_t x_1186; uint8_t x_1187; lean_object* x_1188; uint8_t x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; -lean_dec(x_1111); -x_1166 = lean_ctor_get(x_1161, 0); +lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; uint8_t x_1151; uint8_t x_1152; uint8_t x_1153; uint8_t x_1154; uint8_t x_1155; uint8_t x_1156; uint8_t x_1157; uint8_t x_1158; lean_object* x_1159; lean_object* x_1160; uint8_t x_1161; uint8_t x_1162; uint8_t x_1163; lean_object* x_1164; uint8_t x_1165; lean_object* x_1166; uint8_t x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; uint8_t x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; +lean_dec(x_990); +x_1141 = lean_ctor_get(x_1139, 0); +lean_inc(x_1141); +lean_dec_ref(x_1139); +x_1142 = lean_ctor_get(x_1134, 0); +lean_inc(x_1142); +x_1143 = lean_ctor_get(x_1134, 1); +lean_inc_ref(x_1143); +x_1144 = lean_ctor_get(x_1134, 2); +lean_inc_ref(x_1144); +x_1145 = lean_ctor_get(x_1134, 3); +lean_inc(x_1145); +x_1146 = lean_ctor_get(x_1134, 4); +lean_inc(x_1146); +x_1147 = lean_ctor_get(x_1134, 5); +lean_inc(x_1147); +x_1148 = lean_ctor_get(x_1134, 6); +lean_inc(x_1148); +x_1149 = lean_ctor_get(x_1134, 7); +lean_inc_ref(x_1149); +x_1150 = lean_ctor_get(x_1134, 8); +lean_inc(x_1150); +x_1151 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17); +x_1152 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 1); +x_1153 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 2); +x_1154 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 3); +x_1155 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 4); +x_1156 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 5); +x_1157 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 6); +x_1158 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 7); +x_1159 = lean_ctor_get(x_1134, 9); +lean_inc(x_1159); +x_1160 = lean_ctor_get(x_1134, 10); +lean_inc(x_1160); +x_1161 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 9); +x_1162 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 10); +x_1163 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 11); +x_1164 = lean_ctor_get(x_1134, 11); +lean_inc(x_1164); +x_1165 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 12); +x_1166 = lean_ctor_get(x_1134, 12); lean_inc(x_1166); -x_1167 = lean_ctor_get(x_1161, 1); -lean_inc_ref(x_1167); -x_1168 = lean_ctor_get(x_1161, 2); -lean_inc_ref(x_1168); -x_1169 = lean_ctor_get(x_1161, 3); +x_1167 = lean_ctor_get_uint8(x_1134, sizeof(void*)*17 + 13); +x_1168 = lean_ctor_get(x_1134, 13); +lean_inc(x_1168); +x_1169 = lean_ctor_get(x_1134, 14); lean_inc(x_1169); -x_1170 = lean_ctor_get(x_1161, 4); +x_1170 = lean_ctor_get(x_1134, 15); lean_inc(x_1170); -x_1171 = lean_ctor_get(x_1161, 5); +x_1171 = lean_ctor_get(x_1134, 16); lean_inc(x_1171); -x_1172 = lean_ctor_get(x_1161, 6); -lean_inc(x_1172); -x_1173 = lean_ctor_get(x_1161, 7); -lean_inc_ref(x_1173); -x_1174 = lean_ctor_get(x_1161, 8); -lean_inc(x_1174); -x_1175 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15); -x_1176 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 1); -x_1177 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 2); -x_1178 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 3); -x_1179 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 4); -x_1180 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 5); -x_1181 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 6); -x_1182 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 7); -x_1183 = lean_ctor_get(x_1161, 9); -lean_inc(x_1183); -x_1184 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 8); -x_1185 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 9); -x_1186 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 10); -x_1187 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 11); -x_1188 = lean_ctor_get(x_1161, 11); -lean_inc(x_1188); -x_1189 = lean_ctor_get_uint8(x_1161, sizeof(void*)*15 + 12); -x_1190 = lean_ctor_get(x_1161, 12); -lean_inc(x_1190); -x_1191 = lean_ctor_get(x_1161, 13); -lean_inc(x_1191); -x_1192 = lean_ctor_get(x_1161, 14); -lean_inc(x_1192); -if (lean_is_exclusive(x_1161)) { - lean_ctor_release(x_1161, 0); - lean_ctor_release(x_1161, 1); - lean_ctor_release(x_1161, 2); - lean_ctor_release(x_1161, 3); - lean_ctor_release(x_1161, 4); - lean_ctor_release(x_1161, 5); - lean_ctor_release(x_1161, 6); - lean_ctor_release(x_1161, 7); - lean_ctor_release(x_1161, 8); - lean_ctor_release(x_1161, 9); - lean_ctor_release(x_1161, 10); - lean_ctor_release(x_1161, 11); - lean_ctor_release(x_1161, 12); - lean_ctor_release(x_1161, 13); - lean_ctor_release(x_1161, 14); - x_1193 = x_1161; +if (lean_is_exclusive(x_1134)) { + lean_ctor_release(x_1134, 0); + lean_ctor_release(x_1134, 1); + lean_ctor_release(x_1134, 2); + lean_ctor_release(x_1134, 3); + lean_ctor_release(x_1134, 4); + lean_ctor_release(x_1134, 5); + lean_ctor_release(x_1134, 6); + lean_ctor_release(x_1134, 7); + lean_ctor_release(x_1134, 8); + lean_ctor_release(x_1134, 9); + lean_ctor_release(x_1134, 10); + lean_ctor_release(x_1134, 11); + lean_ctor_release(x_1134, 12); + lean_ctor_release(x_1134, 13); + lean_ctor_release(x_1134, 14); + lean_ctor_release(x_1134, 15); + lean_ctor_release(x_1134, 16); + x_1172 = x_1134; } else { - lean_dec_ref(x_1161); - x_1193 = lean_box(0); + lean_dec_ref(x_1134); + x_1172 = lean_box(0); } -x_1194 = lean_box(0); -if (lean_is_scalar(x_1193)) { - x_1195 = lean_alloc_ctor(0, 15, 13); +x_1173 = lean_box(0); +if (lean_is_scalar(x_1172)) { + x_1174 = lean_alloc_ctor(0, 17, 14); } else { - x_1195 = x_1193; + x_1174 = x_1172; } -lean_ctor_set(x_1195, 0, x_1166); -lean_ctor_set(x_1195, 1, x_1167); -lean_ctor_set(x_1195, 2, x_1168); -lean_ctor_set(x_1195, 3, x_1169); -lean_ctor_set(x_1195, 4, x_1170); -lean_ctor_set(x_1195, 5, x_1171); -lean_ctor_set(x_1195, 6, x_1172); -lean_ctor_set(x_1195, 7, x_1173); -lean_ctor_set(x_1195, 8, x_1174); -lean_ctor_set(x_1195, 9, x_1183); -lean_ctor_set(x_1195, 10, x_1164); -lean_ctor_set(x_1195, 11, x_1188); -lean_ctor_set(x_1195, 12, x_1190); -lean_ctor_set(x_1195, 13, x_1191); -lean_ctor_set(x_1195, 14, x_1192); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15, x_1175); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 1, x_1176); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 2, x_1177); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 3, x_1178); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 4, x_1179); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 5, x_1180); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 6, x_1181); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 7, x_1182); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 8, x_1184); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 9, x_1185); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 10, x_1186); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 11, x_1187); -lean_ctor_set_uint8(x_1195, sizeof(void*)*15 + 12, x_1189); -x_1196 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1196, 0, x_1194); -lean_ctor_set(x_1196, 1, x_1163); -lean_ctor_set(x_1118, 1, x_1195); -lean_ctor_set(x_1118, 0, x_1196); -x_1197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1197, 0, x_1109); -lean_ctor_set(x_1197, 1, x_1110); -return x_1197; +lean_ctor_set(x_1174, 0, x_1142); +lean_ctor_set(x_1174, 1, x_1143); +lean_ctor_set(x_1174, 2, x_1144); +lean_ctor_set(x_1174, 3, x_1145); +lean_ctor_set(x_1174, 4, x_1146); +lean_ctor_set(x_1174, 5, x_1147); +lean_ctor_set(x_1174, 6, x_1148); +lean_ctor_set(x_1174, 7, x_1149); +lean_ctor_set(x_1174, 8, x_1150); +lean_ctor_set(x_1174, 9, x_1159); +lean_ctor_set(x_1174, 10, x_1160); +lean_ctor_set(x_1174, 11, x_1164); +lean_ctor_set(x_1174, 12, x_1166); +lean_ctor_set(x_1174, 13, x_1168); +lean_ctor_set(x_1174, 14, x_1169); +lean_ctor_set(x_1174, 15, x_1170); +lean_ctor_set(x_1174, 16, x_1171); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17, x_1151); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 1, x_1152); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 2, x_1153); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 3, x_1154); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 4, x_1155); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 5, x_1156); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 6, x_1157); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 7, x_1158); +x_1175 = lean_unbox(x_1141); +lean_dec(x_1141); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 8, x_1175); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 9, x_1161); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 10, x_1162); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 11, x_1163); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 12, x_1165); +lean_ctor_set_uint8(x_1174, sizeof(void*)*17 + 13, x_1167); +if (lean_is_scalar(x_1138)) { + x_1176 = lean_alloc_ctor(0, 2, 0); +} else { + x_1176 = x_1138; +} +lean_ctor_set(x_1176, 0, x_1173); +lean_ctor_set(x_1176, 1, x_1137); +if (lean_is_scalar(x_1135)) { + x_1177 = lean_alloc_ctor(0, 2, 0); +} else { + x_1177 = x_1135; +} +lean_ctor_set(x_1177, 0, x_1176); +lean_ctor_set(x_1177, 1, x_1174); +x_1178 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1178, 0, x_1177); +x_1179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1179, 0, x_1178); +lean_ctor_set(x_1179, 1, x_989); +return x_1179; +} +} +} +block_994: +{ +lean_object* x_992; lean_object* x_993; +x_992 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_992, 0, x_991); +if (lean_is_scalar(x_990)) { + x_993 = lean_alloc_ctor(0, 2, 0); +} else { + x_993 = x_990; +} +lean_ctor_set(x_993, 0, x_992); +lean_ctor_set(x_993, 1, x_989); +return x_993; } } } else { -lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; -x_1198 = lean_ctor_get(x_1118, 0); -x_1199 = lean_ctor_get(x_1118, 1); -lean_inc(x_1199); -lean_inc(x_1198); -lean_dec(x_1118); -x_1200 = lean_ctor_get(x_1198, 0); -lean_inc(x_1200); -x_1201 = lean_ctor_get(x_1198, 1); -lean_inc(x_1201); -if (lean_is_exclusive(x_1198)) { - lean_ctor_release(x_1198, 0); - lean_ctor_release(x_1198, 1); - x_1202 = x_1198; -} else { - lean_dec_ref(x_1198); - x_1202 = lean_box(0); -} -x_1203 = l_Lake_LogLevel_ofString_x3f(x_1200); -if (lean_obj_tag(x_1203) == 0) -{ -lean_object* x_1204; -lean_dec(x_1202); -lean_dec(x_1201); -lean_dec(x_1199); -lean_free_object(x_1109); -x_1204 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; -x_1112 = x_1204; -goto block_1115; -} -else -{ -lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; uint8_t x_1214; uint8_t x_1215; uint8_t x_1216; uint8_t x_1217; uint8_t x_1218; uint8_t x_1219; uint8_t x_1220; uint8_t x_1221; lean_object* x_1222; uint8_t x_1223; uint8_t x_1224; uint8_t x_1225; uint8_t x_1226; lean_object* x_1227; uint8_t x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; -lean_dec(x_1111); -x_1205 = lean_ctor_get(x_1199, 0); -lean_inc(x_1205); -x_1206 = lean_ctor_get(x_1199, 1); -lean_inc_ref(x_1206); -x_1207 = lean_ctor_get(x_1199, 2); -lean_inc_ref(x_1207); -x_1208 = lean_ctor_get(x_1199, 3); -lean_inc(x_1208); -x_1209 = lean_ctor_get(x_1199, 4); -lean_inc(x_1209); -x_1210 = lean_ctor_get(x_1199, 5); -lean_inc(x_1210); -x_1211 = lean_ctor_get(x_1199, 6); -lean_inc(x_1211); -x_1212 = lean_ctor_get(x_1199, 7); -lean_inc_ref(x_1212); -x_1213 = lean_ctor_get(x_1199, 8); -lean_inc(x_1213); -x_1214 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15); -x_1215 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 1); -x_1216 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 2); -x_1217 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 3); -x_1218 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 4); -x_1219 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 5); -x_1220 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 6); -x_1221 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 7); -x_1222 = lean_ctor_get(x_1199, 9); -lean_inc(x_1222); -x_1223 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 8); -x_1224 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 9); -x_1225 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 10); -x_1226 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 11); -x_1227 = lean_ctor_get(x_1199, 11); -lean_inc(x_1227); -x_1228 = lean_ctor_get_uint8(x_1199, sizeof(void*)*15 + 12); -x_1229 = lean_ctor_get(x_1199, 12); -lean_inc(x_1229); -x_1230 = lean_ctor_get(x_1199, 13); -lean_inc(x_1230); -x_1231 = lean_ctor_get(x_1199, 14); -lean_inc(x_1231); -if (lean_is_exclusive(x_1199)) { - lean_ctor_release(x_1199, 0); - lean_ctor_release(x_1199, 1); - lean_ctor_release(x_1199, 2); - lean_ctor_release(x_1199, 3); - lean_ctor_release(x_1199, 4); - lean_ctor_release(x_1199, 5); - lean_ctor_release(x_1199, 6); - lean_ctor_release(x_1199, 7); - lean_ctor_release(x_1199, 8); - lean_ctor_release(x_1199, 9); - lean_ctor_release(x_1199, 10); - lean_ctor_release(x_1199, 11); - lean_ctor_release(x_1199, 12); - lean_ctor_release(x_1199, 13); - lean_ctor_release(x_1199, 14); - x_1232 = x_1199; -} else { - lean_dec_ref(x_1199); - x_1232 = lean_box(0); -} -x_1233 = lean_box(0); -if (lean_is_scalar(x_1232)) { - x_1234 = lean_alloc_ctor(0, 15, 13); -} else { - x_1234 = x_1232; -} -lean_ctor_set(x_1234, 0, x_1205); -lean_ctor_set(x_1234, 1, x_1206); -lean_ctor_set(x_1234, 2, x_1207); -lean_ctor_set(x_1234, 3, x_1208); -lean_ctor_set(x_1234, 4, x_1209); -lean_ctor_set(x_1234, 5, x_1210); -lean_ctor_set(x_1234, 6, x_1211); -lean_ctor_set(x_1234, 7, x_1212); -lean_ctor_set(x_1234, 8, x_1213); -lean_ctor_set(x_1234, 9, x_1222); -lean_ctor_set(x_1234, 10, x_1203); -lean_ctor_set(x_1234, 11, x_1227); -lean_ctor_set(x_1234, 12, x_1229); -lean_ctor_set(x_1234, 13, x_1230); -lean_ctor_set(x_1234, 14, x_1231); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15, x_1214); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 1, x_1215); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 2, x_1216); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 3, x_1217); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 4, x_1218); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 5, x_1219); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 6, x_1220); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 7, x_1221); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 8, x_1223); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 9, x_1224); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 10, x_1225); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 11, x_1226); -lean_ctor_set_uint8(x_1234, sizeof(void*)*15 + 12, x_1228); -if (lean_is_scalar(x_1202)) { - x_1235 = lean_alloc_ctor(0, 2, 0); -} else { - x_1235 = x_1202; -} -lean_ctor_set(x_1235, 0, x_1233); -lean_ctor_set(x_1235, 1, x_1201); -x_1236 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1236, 0, x_1235); -lean_ctor_set(x_1236, 1, x_1234); -lean_ctor_set(x_1109, 0, x_1236); -x_1237 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1237, 0, x_1109); -lean_ctor_set(x_1237, 1, x_1110); -return x_1237; -} -} -} -else -{ -lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; -x_1238 = lean_ctor_get(x_1109, 0); -lean_inc(x_1238); -lean_dec(x_1109); -x_1239 = lean_ctor_get(x_1238, 0); -lean_inc(x_1239); -x_1240 = lean_ctor_get(x_1238, 1); -lean_inc(x_1240); -if (lean_is_exclusive(x_1238)) { - lean_ctor_release(x_1238, 0); - lean_ctor_release(x_1238, 1); - x_1241 = x_1238; -} else { - lean_dec_ref(x_1238); - x_1241 = lean_box(0); -} -x_1242 = lean_ctor_get(x_1239, 0); -lean_inc(x_1242); -x_1243 = lean_ctor_get(x_1239, 1); -lean_inc(x_1243); -if (lean_is_exclusive(x_1239)) { - lean_ctor_release(x_1239, 0); - lean_ctor_release(x_1239, 1); - x_1244 = x_1239; -} else { - lean_dec_ref(x_1239); - x_1244 = lean_box(0); -} -x_1245 = l_Lake_LogLevel_ofString_x3f(x_1242); -if (lean_obj_tag(x_1245) == 0) -{ -lean_object* x_1246; -lean_dec(x_1244); -lean_dec(x_1243); -lean_dec(x_1241); -lean_dec(x_1240); -x_1246 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; -x_1112 = x_1246; -goto block_1115; -} -else -{ -lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; uint8_t x_1256; uint8_t x_1257; uint8_t x_1258; uint8_t x_1259; uint8_t x_1260; uint8_t x_1261; uint8_t x_1262; uint8_t x_1263; lean_object* x_1264; uint8_t x_1265; uint8_t x_1266; uint8_t x_1267; uint8_t x_1268; lean_object* x_1269; uint8_t x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; -lean_dec(x_1111); -x_1247 = lean_ctor_get(x_1240, 0); -lean_inc(x_1247); -x_1248 = lean_ctor_get(x_1240, 1); -lean_inc_ref(x_1248); -x_1249 = lean_ctor_get(x_1240, 2); -lean_inc_ref(x_1249); -x_1250 = lean_ctor_get(x_1240, 3); -lean_inc(x_1250); -x_1251 = lean_ctor_get(x_1240, 4); -lean_inc(x_1251); -x_1252 = lean_ctor_get(x_1240, 5); -lean_inc(x_1252); -x_1253 = lean_ctor_get(x_1240, 6); -lean_inc(x_1253); -x_1254 = lean_ctor_get(x_1240, 7); -lean_inc_ref(x_1254); -x_1255 = lean_ctor_get(x_1240, 8); -lean_inc(x_1255); -x_1256 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15); -x_1257 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 1); -x_1258 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 2); -x_1259 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 3); -x_1260 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 4); -x_1261 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 5); -x_1262 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 6); -x_1263 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 7); -x_1264 = lean_ctor_get(x_1240, 9); -lean_inc(x_1264); -x_1265 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 8); -x_1266 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 9); -x_1267 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 10); -x_1268 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 11); -x_1269 = lean_ctor_get(x_1240, 11); -lean_inc(x_1269); -x_1270 = lean_ctor_get_uint8(x_1240, sizeof(void*)*15 + 12); -x_1271 = lean_ctor_get(x_1240, 12); -lean_inc(x_1271); -x_1272 = lean_ctor_get(x_1240, 13); -lean_inc(x_1272); -x_1273 = lean_ctor_get(x_1240, 14); -lean_inc(x_1273); -if (lean_is_exclusive(x_1240)) { - lean_ctor_release(x_1240, 0); - lean_ctor_release(x_1240, 1); - lean_ctor_release(x_1240, 2); - lean_ctor_release(x_1240, 3); - lean_ctor_release(x_1240, 4); - lean_ctor_release(x_1240, 5); - lean_ctor_release(x_1240, 6); - lean_ctor_release(x_1240, 7); - lean_ctor_release(x_1240, 8); - lean_ctor_release(x_1240, 9); - lean_ctor_release(x_1240, 10); - lean_ctor_release(x_1240, 11); - lean_ctor_release(x_1240, 12); - lean_ctor_release(x_1240, 13); - lean_ctor_release(x_1240, 14); - x_1274 = x_1240; -} else { - lean_dec_ref(x_1240); - x_1274 = lean_box(0); -} -x_1275 = lean_box(0); -if (lean_is_scalar(x_1274)) { - x_1276 = lean_alloc_ctor(0, 15, 13); -} else { - x_1276 = x_1274; -} -lean_ctor_set(x_1276, 0, x_1247); -lean_ctor_set(x_1276, 1, x_1248); -lean_ctor_set(x_1276, 2, x_1249); -lean_ctor_set(x_1276, 3, x_1250); -lean_ctor_set(x_1276, 4, x_1251); -lean_ctor_set(x_1276, 5, x_1252); -lean_ctor_set(x_1276, 6, x_1253); -lean_ctor_set(x_1276, 7, x_1254); -lean_ctor_set(x_1276, 8, x_1255); -lean_ctor_set(x_1276, 9, x_1264); -lean_ctor_set(x_1276, 10, x_1245); -lean_ctor_set(x_1276, 11, x_1269); -lean_ctor_set(x_1276, 12, x_1271); -lean_ctor_set(x_1276, 13, x_1272); -lean_ctor_set(x_1276, 14, x_1273); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15, x_1256); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 1, x_1257); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 2, x_1258); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 3, x_1259); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 4, x_1260); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 5, x_1261); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 6, x_1262); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 7, x_1263); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 8, x_1265); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 9, x_1266); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 10, x_1267); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 11, x_1268); -lean_ctor_set_uint8(x_1276, sizeof(void*)*15 + 12, x_1270); -if (lean_is_scalar(x_1244)) { - x_1277 = lean_alloc_ctor(0, 2, 0); -} else { - x_1277 = x_1244; -} -lean_ctor_set(x_1277, 0, x_1275); -lean_ctor_set(x_1277, 1, x_1243); -if (lean_is_scalar(x_1241)) { - x_1278 = lean_alloc_ctor(0, 2, 0); -} else { - x_1278 = x_1241; -} -lean_ctor_set(x_1278, 0, x_1277); -lean_ctor_set(x_1278, 1, x_1276); -x_1279 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1279, 0, x_1278); -x_1280 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1280, 0, x_1279); -lean_ctor_set(x_1280, 1, x_1110); -return x_1280; -} -} -} -block_1115: -{ -lean_object* x_1113; lean_object* x_1114; -x_1113 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1113, 0, x_1112); -if (lean_is_scalar(x_1111)) { - x_1114 = lean_alloc_ctor(0, 2, 0); -} else { - x_1114 = x_1111; -} -lean_ctor_set(x_1114, 0, x_1113); -lean_ctor_set(x_1114, 1, x_1110); -return x_1114; -} -} -} -else -{ -lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; +lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_dec_ref(x_1); -x_1281 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__34; -x_1282 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_43, x_1281, x_2, x_3, x_4); -x_1283 = lean_ctor_get(x_1282, 0); -lean_inc(x_1283); -if (lean_obj_tag(x_1283) == 0) +x_1180 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__33; +x_1181 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_49, x_1180, x_2, x_3, x_4); +x_1182 = lean_ctor_get(x_1181, 0); +lean_inc(x_1182); +x_1183 = lean_ctor_get(x_1181, 1); +lean_inc(x_1183); +if (lean_is_exclusive(x_1181)) { + lean_ctor_release(x_1181, 0); + lean_ctor_release(x_1181, 1); + x_1184 = x_1181; +} else { + lean_dec_ref(x_1181); + x_1184 = lean_box(0); +} +if (lean_obj_tag(x_1182) == 0) { -uint8_t x_1284; -x_1284 = !lean_is_exclusive(x_1282); -if (x_1284 == 0) -{ -lean_object* x_1285; uint8_t x_1286; -x_1285 = lean_ctor_get(x_1282, 0); -lean_dec(x_1285); -x_1286 = !lean_is_exclusive(x_1283); -if (x_1286 == 0) -{ -return x_1282; +lean_object* x_1189; +x_1189 = lean_ctor_get(x_1182, 0); +lean_inc(x_1189); +lean_dec_ref(x_1182); +x_1185 = x_1189; +goto block_1188; } else { -lean_object* x_1287; lean_object* x_1288; -x_1287 = lean_ctor_get(x_1283, 0); +uint8_t x_1190; +x_1190 = !lean_is_exclusive(x_1182); +if (x_1190 == 0) +{ +lean_object* x_1191; uint8_t x_1192; +x_1191 = lean_ctor_get(x_1182, 0); +x_1192 = !lean_is_exclusive(x_1191); +if (x_1192 == 0) +{ +lean_object* x_1193; uint8_t x_1194; +x_1193 = lean_ctor_get(x_1191, 0); +x_1194 = !lean_is_exclusive(x_1193); +if (x_1194 == 0) +{ +lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; +x_1195 = lean_ctor_get(x_1191, 1); +x_1196 = lean_ctor_get(x_1193, 0); +x_1197 = lean_ctor_get(x_1193, 1); +x_1198 = l_Lake_LogLevel_ofString_x3f(x_1196); +if (lean_obj_tag(x_1198) == 0) +{ +lean_object* x_1199; +lean_free_object(x_1193); +lean_dec(x_1197); +lean_free_object(x_1191); +lean_dec(x_1195); +lean_free_object(x_1182); +x_1199 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35; +x_1185 = x_1199; +goto block_1188; +} +else +{ +uint8_t x_1200; +lean_dec(x_1184); +x_1200 = !lean_is_exclusive(x_1195); +if (x_1200 == 0) +{ +lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; +x_1201 = lean_ctor_get(x_1195, 10); +lean_dec(x_1201); +x_1202 = lean_box(0); +lean_ctor_set(x_1195, 10, x_1198); +lean_ctor_set(x_1193, 0, x_1202); +x_1203 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1203, 0, x_1182); +lean_ctor_set(x_1203, 1, x_1183); +return x_1203; +} +else +{ +lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; uint8_t x_1213; uint8_t x_1214; uint8_t x_1215; uint8_t x_1216; uint8_t x_1217; uint8_t x_1218; uint8_t x_1219; uint8_t x_1220; lean_object* x_1221; uint8_t x_1222; uint8_t x_1223; uint8_t x_1224; uint8_t x_1225; lean_object* x_1226; uint8_t x_1227; lean_object* x_1228; uint8_t x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; +x_1204 = lean_ctor_get(x_1195, 0); +x_1205 = lean_ctor_get(x_1195, 1); +x_1206 = lean_ctor_get(x_1195, 2); +x_1207 = lean_ctor_get(x_1195, 3); +x_1208 = lean_ctor_get(x_1195, 4); +x_1209 = lean_ctor_get(x_1195, 5); +x_1210 = lean_ctor_get(x_1195, 6); +x_1211 = lean_ctor_get(x_1195, 7); +x_1212 = lean_ctor_get(x_1195, 8); +x_1213 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17); +x_1214 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 1); +x_1215 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 2); +x_1216 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 3); +x_1217 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 4); +x_1218 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 5); +x_1219 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 6); +x_1220 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 7); +x_1221 = lean_ctor_get(x_1195, 9); +x_1222 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 8); +x_1223 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 9); +x_1224 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 10); +x_1225 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 11); +x_1226 = lean_ctor_get(x_1195, 11); +x_1227 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 12); +x_1228 = lean_ctor_get(x_1195, 12); +x_1229 = lean_ctor_get_uint8(x_1195, sizeof(void*)*17 + 13); +x_1230 = lean_ctor_get(x_1195, 13); +x_1231 = lean_ctor_get(x_1195, 14); +x_1232 = lean_ctor_get(x_1195, 15); +x_1233 = lean_ctor_get(x_1195, 16); +lean_inc(x_1233); +lean_inc(x_1232); +lean_inc(x_1231); +lean_inc(x_1230); +lean_inc(x_1228); +lean_inc(x_1226); +lean_inc(x_1221); +lean_inc(x_1212); +lean_inc(x_1211); +lean_inc(x_1210); +lean_inc(x_1209); +lean_inc(x_1208); +lean_inc(x_1207); +lean_inc(x_1206); +lean_inc(x_1205); +lean_inc(x_1204); +lean_dec(x_1195); +x_1234 = lean_box(0); +x_1235 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1235, 0, x_1204); +lean_ctor_set(x_1235, 1, x_1205); +lean_ctor_set(x_1235, 2, x_1206); +lean_ctor_set(x_1235, 3, x_1207); +lean_ctor_set(x_1235, 4, x_1208); +lean_ctor_set(x_1235, 5, x_1209); +lean_ctor_set(x_1235, 6, x_1210); +lean_ctor_set(x_1235, 7, x_1211); +lean_ctor_set(x_1235, 8, x_1212); +lean_ctor_set(x_1235, 9, x_1221); +lean_ctor_set(x_1235, 10, x_1198); +lean_ctor_set(x_1235, 11, x_1226); +lean_ctor_set(x_1235, 12, x_1228); +lean_ctor_set(x_1235, 13, x_1230); +lean_ctor_set(x_1235, 14, x_1231); +lean_ctor_set(x_1235, 15, x_1232); +lean_ctor_set(x_1235, 16, x_1233); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17, x_1213); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 1, x_1214); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 2, x_1215); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 3, x_1216); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 4, x_1217); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 5, x_1218); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 6, x_1219); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 7, x_1220); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 8, x_1222); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 9, x_1223); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 10, x_1224); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 11, x_1225); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 12, x_1227); +lean_ctor_set_uint8(x_1235, sizeof(void*)*17 + 13, x_1229); +lean_ctor_set(x_1193, 0, x_1234); +lean_ctor_set(x_1191, 1, x_1235); +x_1236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1236, 0, x_1182); +lean_ctor_set(x_1236, 1, x_1183); +return x_1236; +} +} +} +else +{ +lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; +x_1237 = lean_ctor_get(x_1191, 1); +x_1238 = lean_ctor_get(x_1193, 0); +x_1239 = lean_ctor_get(x_1193, 1); +lean_inc(x_1239); +lean_inc(x_1238); +lean_dec(x_1193); +x_1240 = l_Lake_LogLevel_ofString_x3f(x_1238); +if (lean_obj_tag(x_1240) == 0) +{ +lean_object* x_1241; +lean_dec(x_1239); +lean_free_object(x_1191); +lean_dec(x_1237); +lean_free_object(x_1182); +x_1241 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35; +x_1185 = x_1241; +goto block_1188; +} +else +{ +lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; uint8_t x_1251; uint8_t x_1252; uint8_t x_1253; uint8_t x_1254; uint8_t x_1255; uint8_t x_1256; uint8_t x_1257; uint8_t x_1258; lean_object* x_1259; uint8_t x_1260; uint8_t x_1261; uint8_t x_1262; uint8_t x_1263; lean_object* x_1264; uint8_t x_1265; lean_object* x_1266; uint8_t x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; +lean_dec(x_1184); +x_1242 = lean_ctor_get(x_1237, 0); +lean_inc(x_1242); +x_1243 = lean_ctor_get(x_1237, 1); +lean_inc_ref(x_1243); +x_1244 = lean_ctor_get(x_1237, 2); +lean_inc_ref(x_1244); +x_1245 = lean_ctor_get(x_1237, 3); +lean_inc(x_1245); +x_1246 = lean_ctor_get(x_1237, 4); +lean_inc(x_1246); +x_1247 = lean_ctor_get(x_1237, 5); +lean_inc(x_1247); +x_1248 = lean_ctor_get(x_1237, 6); +lean_inc(x_1248); +x_1249 = lean_ctor_get(x_1237, 7); +lean_inc_ref(x_1249); +x_1250 = lean_ctor_get(x_1237, 8); +lean_inc(x_1250); +x_1251 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17); +x_1252 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 1); +x_1253 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 2); +x_1254 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 3); +x_1255 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 4); +x_1256 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 5); +x_1257 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 6); +x_1258 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 7); +x_1259 = lean_ctor_get(x_1237, 9); +lean_inc(x_1259); +x_1260 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 8); +x_1261 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 9); +x_1262 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 10); +x_1263 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 11); +x_1264 = lean_ctor_get(x_1237, 11); +lean_inc(x_1264); +x_1265 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 12); +x_1266 = lean_ctor_get(x_1237, 12); +lean_inc(x_1266); +x_1267 = lean_ctor_get_uint8(x_1237, sizeof(void*)*17 + 13); +x_1268 = lean_ctor_get(x_1237, 13); +lean_inc(x_1268); +x_1269 = lean_ctor_get(x_1237, 14); +lean_inc(x_1269); +x_1270 = lean_ctor_get(x_1237, 15); +lean_inc(x_1270); +x_1271 = lean_ctor_get(x_1237, 16); +lean_inc(x_1271); +if (lean_is_exclusive(x_1237)) { + lean_ctor_release(x_1237, 0); + lean_ctor_release(x_1237, 1); + lean_ctor_release(x_1237, 2); + lean_ctor_release(x_1237, 3); + lean_ctor_release(x_1237, 4); + lean_ctor_release(x_1237, 5); + lean_ctor_release(x_1237, 6); + lean_ctor_release(x_1237, 7); + lean_ctor_release(x_1237, 8); + lean_ctor_release(x_1237, 9); + lean_ctor_release(x_1237, 10); + lean_ctor_release(x_1237, 11); + lean_ctor_release(x_1237, 12); + lean_ctor_release(x_1237, 13); + lean_ctor_release(x_1237, 14); + lean_ctor_release(x_1237, 15); + lean_ctor_release(x_1237, 16); + x_1272 = x_1237; +} else { + lean_dec_ref(x_1237); + x_1272 = lean_box(0); +} +x_1273 = lean_box(0); +if (lean_is_scalar(x_1272)) { + x_1274 = lean_alloc_ctor(0, 17, 14); +} else { + x_1274 = x_1272; +} +lean_ctor_set(x_1274, 0, x_1242); +lean_ctor_set(x_1274, 1, x_1243); +lean_ctor_set(x_1274, 2, x_1244); +lean_ctor_set(x_1274, 3, x_1245); +lean_ctor_set(x_1274, 4, x_1246); +lean_ctor_set(x_1274, 5, x_1247); +lean_ctor_set(x_1274, 6, x_1248); +lean_ctor_set(x_1274, 7, x_1249); +lean_ctor_set(x_1274, 8, x_1250); +lean_ctor_set(x_1274, 9, x_1259); +lean_ctor_set(x_1274, 10, x_1240); +lean_ctor_set(x_1274, 11, x_1264); +lean_ctor_set(x_1274, 12, x_1266); +lean_ctor_set(x_1274, 13, x_1268); +lean_ctor_set(x_1274, 14, x_1269); +lean_ctor_set(x_1274, 15, x_1270); +lean_ctor_set(x_1274, 16, x_1271); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17, x_1251); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 1, x_1252); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 2, x_1253); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 3, x_1254); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 4, x_1255); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 5, x_1256); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 6, x_1257); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 7, x_1258); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 8, x_1260); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 9, x_1261); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 10, x_1262); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 11, x_1263); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 12, x_1265); +lean_ctor_set_uint8(x_1274, sizeof(void*)*17 + 13, x_1267); +x_1275 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1275, 0, x_1273); +lean_ctor_set(x_1275, 1, x_1239); +lean_ctor_set(x_1191, 1, x_1274); +lean_ctor_set(x_1191, 0, x_1275); +x_1276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1276, 0, x_1182); +lean_ctor_set(x_1276, 1, x_1183); +return x_1276; +} +} +} +else +{ +lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; +x_1277 = lean_ctor_get(x_1191, 0); +x_1278 = lean_ctor_get(x_1191, 1); +lean_inc(x_1278); +lean_inc(x_1277); +lean_dec(x_1191); +x_1279 = lean_ctor_get(x_1277, 0); +lean_inc(x_1279); +x_1280 = lean_ctor_get(x_1277, 1); +lean_inc(x_1280); +if (lean_is_exclusive(x_1277)) { + lean_ctor_release(x_1277, 0); + lean_ctor_release(x_1277, 1); + x_1281 = x_1277; +} else { + lean_dec_ref(x_1277); + x_1281 = lean_box(0); +} +x_1282 = l_Lake_LogLevel_ofString_x3f(x_1279); +if (lean_obj_tag(x_1282) == 0) +{ +lean_object* x_1283; +lean_dec(x_1281); +lean_dec(x_1280); +lean_dec(x_1278); +lean_free_object(x_1182); +x_1283 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35; +x_1185 = x_1283; +goto block_1188; +} +else +{ +lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; uint8_t x_1293; uint8_t x_1294; uint8_t x_1295; uint8_t x_1296; uint8_t x_1297; uint8_t x_1298; uint8_t x_1299; uint8_t x_1300; lean_object* x_1301; uint8_t x_1302; uint8_t x_1303; uint8_t x_1304; uint8_t x_1305; lean_object* x_1306; uint8_t x_1307; lean_object* x_1308; uint8_t x_1309; lean_object* x_1310; lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; +lean_dec(x_1184); +x_1284 = lean_ctor_get(x_1278, 0); +lean_inc(x_1284); +x_1285 = lean_ctor_get(x_1278, 1); +lean_inc_ref(x_1285); +x_1286 = lean_ctor_get(x_1278, 2); +lean_inc_ref(x_1286); +x_1287 = lean_ctor_get(x_1278, 3); lean_inc(x_1287); -lean_dec(x_1283); -x_1288 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1288, 0, x_1287); -lean_ctor_set(x_1282, 0, x_1288); -return x_1282; -} -} -else -{ -lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; -x_1289 = lean_ctor_get(x_1282, 1); +x_1288 = lean_ctor_get(x_1278, 4); +lean_inc(x_1288); +x_1289 = lean_ctor_get(x_1278, 5); lean_inc(x_1289); -lean_dec(x_1282); -x_1290 = lean_ctor_get(x_1283, 0); +x_1290 = lean_ctor_get(x_1278, 6); lean_inc(x_1290); -if (lean_is_exclusive(x_1283)) { - lean_ctor_release(x_1283, 0); - x_1291 = x_1283; +x_1291 = lean_ctor_get(x_1278, 7); +lean_inc_ref(x_1291); +x_1292 = lean_ctor_get(x_1278, 8); +lean_inc(x_1292); +x_1293 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17); +x_1294 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 1); +x_1295 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 2); +x_1296 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 3); +x_1297 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 4); +x_1298 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 5); +x_1299 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 6); +x_1300 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 7); +x_1301 = lean_ctor_get(x_1278, 9); +lean_inc(x_1301); +x_1302 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 8); +x_1303 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 9); +x_1304 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 10); +x_1305 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 11); +x_1306 = lean_ctor_get(x_1278, 11); +lean_inc(x_1306); +x_1307 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 12); +x_1308 = lean_ctor_get(x_1278, 12); +lean_inc(x_1308); +x_1309 = lean_ctor_get_uint8(x_1278, sizeof(void*)*17 + 13); +x_1310 = lean_ctor_get(x_1278, 13); +lean_inc(x_1310); +x_1311 = lean_ctor_get(x_1278, 14); +lean_inc(x_1311); +x_1312 = lean_ctor_get(x_1278, 15); +lean_inc(x_1312); +x_1313 = lean_ctor_get(x_1278, 16); +lean_inc(x_1313); +if (lean_is_exclusive(x_1278)) { + lean_ctor_release(x_1278, 0); + lean_ctor_release(x_1278, 1); + lean_ctor_release(x_1278, 2); + lean_ctor_release(x_1278, 3); + lean_ctor_release(x_1278, 4); + lean_ctor_release(x_1278, 5); + lean_ctor_release(x_1278, 6); + lean_ctor_release(x_1278, 7); + lean_ctor_release(x_1278, 8); + lean_ctor_release(x_1278, 9); + lean_ctor_release(x_1278, 10); + lean_ctor_release(x_1278, 11); + lean_ctor_release(x_1278, 12); + lean_ctor_release(x_1278, 13); + lean_ctor_release(x_1278, 14); + lean_ctor_release(x_1278, 15); + lean_ctor_release(x_1278, 16); + x_1314 = x_1278; } else { - lean_dec_ref(x_1283); - x_1291 = lean_box(0); + lean_dec_ref(x_1278); + x_1314 = lean_box(0); } -if (lean_is_scalar(x_1291)) { - x_1292 = lean_alloc_ctor(0, 1, 0); +x_1315 = lean_box(0); +if (lean_is_scalar(x_1314)) { + x_1316 = lean_alloc_ctor(0, 17, 14); } else { - x_1292 = x_1291; + x_1316 = x_1314; +} +lean_ctor_set(x_1316, 0, x_1284); +lean_ctor_set(x_1316, 1, x_1285); +lean_ctor_set(x_1316, 2, x_1286); +lean_ctor_set(x_1316, 3, x_1287); +lean_ctor_set(x_1316, 4, x_1288); +lean_ctor_set(x_1316, 5, x_1289); +lean_ctor_set(x_1316, 6, x_1290); +lean_ctor_set(x_1316, 7, x_1291); +lean_ctor_set(x_1316, 8, x_1292); +lean_ctor_set(x_1316, 9, x_1301); +lean_ctor_set(x_1316, 10, x_1282); +lean_ctor_set(x_1316, 11, x_1306); +lean_ctor_set(x_1316, 12, x_1308); +lean_ctor_set(x_1316, 13, x_1310); +lean_ctor_set(x_1316, 14, x_1311); +lean_ctor_set(x_1316, 15, x_1312); +lean_ctor_set(x_1316, 16, x_1313); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17, x_1293); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 1, x_1294); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 2, x_1295); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 3, x_1296); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 4, x_1297); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 5, x_1298); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 6, x_1299); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 7, x_1300); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 8, x_1302); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 9, x_1303); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 10, x_1304); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 11, x_1305); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 12, x_1307); +lean_ctor_set_uint8(x_1316, sizeof(void*)*17 + 13, x_1309); +if (lean_is_scalar(x_1281)) { + x_1317 = lean_alloc_ctor(0, 2, 0); +} else { + x_1317 = x_1281; +} +lean_ctor_set(x_1317, 0, x_1315); +lean_ctor_set(x_1317, 1, x_1280); +x_1318 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1318, 0, x_1317); +lean_ctor_set(x_1318, 1, x_1316); +lean_ctor_set(x_1182, 0, x_1318); +x_1319 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1319, 0, x_1182); +lean_ctor_set(x_1319, 1, x_1183); +return x_1319; } -lean_ctor_set(x_1292, 0, x_1290); -x_1293 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1293, 0, x_1292); -lean_ctor_set(x_1293, 1, x_1289); -return x_1293; } } else { -uint8_t x_1294; -x_1294 = !lean_is_exclusive(x_1283); -if (x_1294 == 0) -{ -lean_object* x_1295; lean_object* x_1296; uint8_t x_1297; -x_1295 = lean_ctor_get(x_1283, 0); -x_1296 = lean_ctor_get(x_1295, 0); -lean_inc(x_1296); -x_1297 = !lean_is_exclusive(x_1282); -if (x_1297 == 0) -{ -lean_object* x_1298; lean_object* x_1299; uint8_t x_1300; -x_1298 = lean_ctor_get(x_1282, 1); -x_1299 = lean_ctor_get(x_1282, 0); -lean_dec(x_1299); -x_1300 = !lean_is_exclusive(x_1295); -if (x_1300 == 0) -{ -lean_object* x_1301; lean_object* x_1302; uint8_t x_1303; -x_1301 = lean_ctor_get(x_1295, 1); -x_1302 = lean_ctor_get(x_1295, 0); -lean_dec(x_1302); -x_1303 = !lean_is_exclusive(x_1296); -if (x_1303 == 0) -{ -lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; -x_1304 = lean_ctor_get(x_1296, 0); -x_1305 = lean_ctor_get(x_1296, 1); -x_1306 = l_String_toNat_x3f(x_1304); -lean_dec(x_1304); -if (lean_obj_tag(x_1306) == 0) -{ -uint8_t x_1307; uint8_t x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; uint8_t x_1312; -lean_free_object(x_1296); -lean_dec(x_1305); -lean_free_object(x_1295); -lean_dec(x_1301); -lean_free_object(x_1282); -lean_free_object(x_1283); -x_1307 = 1; -x_1308 = 0; -x_1309 = lean_box(1); -x_1310 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; -x_1311 = l_Lake_OutStream_logEntry(x_1309, x_1310, x_1307, x_1308, x_1298); -x_1312 = !lean_is_exclusive(x_1311); -if (x_1312 == 0) -{ -lean_object* x_1313; lean_object* x_1314; -x_1313 = lean_ctor_get(x_1311, 0); -lean_dec(x_1313); -x_1314 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -lean_ctor_set_tag(x_1311, 1); -lean_ctor_set(x_1311, 0, x_1314); -return x_1311; -} -else -{ -lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; -x_1315 = lean_ctor_get(x_1311, 1); -lean_inc(x_1315); -lean_dec(x_1311); -x_1316 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -x_1317 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1317, 0, x_1316); -lean_ctor_set(x_1317, 1, x_1315); -return x_1317; -} -} -else -{ -lean_object* x_1318; uint8_t x_1319; -x_1318 = lean_ctor_get(x_1306, 0); -lean_inc(x_1318); -lean_dec_ref(x_1306); -x_1319 = !lean_is_exclusive(x_1301); -if (x_1319 == 0) -{ -lean_object* x_1320; lean_object* x_1321; -x_1320 = lean_ctor_get(x_1301, 14); -lean_dec(x_1320); -x_1321 = lean_box(0); -lean_ctor_set(x_1301, 14, x_1318); -lean_ctor_set(x_1296, 0, x_1321); -return x_1282; -} -else -{ -lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; uint8_t x_1331; uint8_t x_1332; uint8_t x_1333; uint8_t x_1334; uint8_t x_1335; uint8_t x_1336; uint8_t x_1337; uint8_t x_1338; lean_object* x_1339; uint8_t x_1340; lean_object* x_1341; uint8_t x_1342; uint8_t x_1343; uint8_t x_1344; lean_object* x_1345; uint8_t x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; -x_1322 = lean_ctor_get(x_1301, 0); -x_1323 = lean_ctor_get(x_1301, 1); -x_1324 = lean_ctor_get(x_1301, 2); -x_1325 = lean_ctor_get(x_1301, 3); -x_1326 = lean_ctor_get(x_1301, 4); -x_1327 = lean_ctor_get(x_1301, 5); -x_1328 = lean_ctor_get(x_1301, 6); -x_1329 = lean_ctor_get(x_1301, 7); -x_1330 = lean_ctor_get(x_1301, 8); -x_1331 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15); -x_1332 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 1); -x_1333 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 2); -x_1334 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 3); -x_1335 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 4); -x_1336 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 5); -x_1337 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 6); -x_1338 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 7); -x_1339 = lean_ctor_get(x_1301, 9); -x_1340 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 8); -x_1341 = lean_ctor_get(x_1301, 10); -x_1342 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 9); -x_1343 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 10); -x_1344 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 11); -x_1345 = lean_ctor_get(x_1301, 11); -x_1346 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 12); -x_1347 = lean_ctor_get(x_1301, 12); -x_1348 = lean_ctor_get(x_1301, 13); -lean_inc(x_1348); -lean_inc(x_1347); -lean_inc(x_1345); -lean_inc(x_1341); -lean_inc(x_1339); -lean_inc(x_1330); -lean_inc(x_1329); -lean_inc(x_1328); -lean_inc(x_1327); -lean_inc(x_1326); -lean_inc(x_1325); -lean_inc(x_1324); -lean_inc(x_1323); +lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; +x_1320 = lean_ctor_get(x_1182, 0); +lean_inc(x_1320); +lean_dec(x_1182); +x_1321 = lean_ctor_get(x_1320, 0); +lean_inc(x_1321); +x_1322 = lean_ctor_get(x_1320, 1); lean_inc(x_1322); -lean_dec(x_1301); -x_1349 = lean_box(0); -x_1350 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_1350, 0, x_1322); -lean_ctor_set(x_1350, 1, x_1323); -lean_ctor_set(x_1350, 2, x_1324); -lean_ctor_set(x_1350, 3, x_1325); -lean_ctor_set(x_1350, 4, x_1326); -lean_ctor_set(x_1350, 5, x_1327); -lean_ctor_set(x_1350, 6, x_1328); -lean_ctor_set(x_1350, 7, x_1329); -lean_ctor_set(x_1350, 8, x_1330); -lean_ctor_set(x_1350, 9, x_1339); -lean_ctor_set(x_1350, 10, x_1341); -lean_ctor_set(x_1350, 11, x_1345); -lean_ctor_set(x_1350, 12, x_1347); -lean_ctor_set(x_1350, 13, x_1348); -lean_ctor_set(x_1350, 14, x_1318); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15, x_1331); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 1, x_1332); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 2, x_1333); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 3, x_1334); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 4, x_1335); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 5, x_1336); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 6, x_1337); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 7, x_1338); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 8, x_1340); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 9, x_1342); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 10, x_1343); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 11, x_1344); -lean_ctor_set_uint8(x_1350, sizeof(void*)*15 + 12, x_1346); -lean_ctor_set(x_1296, 0, x_1349); -lean_ctor_set(x_1295, 1, x_1350); -return x_1282; +if (lean_is_exclusive(x_1320)) { + lean_ctor_release(x_1320, 0); + lean_ctor_release(x_1320, 1); + x_1323 = x_1320; +} else { + lean_dec_ref(x_1320); + x_1323 = lean_box(0); } +x_1324 = lean_ctor_get(x_1321, 0); +lean_inc(x_1324); +x_1325 = lean_ctor_get(x_1321, 1); +lean_inc(x_1325); +if (lean_is_exclusive(x_1321)) { + lean_ctor_release(x_1321, 0); + lean_ctor_release(x_1321, 1); + x_1326 = x_1321; +} else { + lean_dec_ref(x_1321); + x_1326 = lean_box(0); } +x_1327 = l_Lake_LogLevel_ofString_x3f(x_1324); +if (lean_obj_tag(x_1327) == 0) +{ +lean_object* x_1328; +lean_dec(x_1326); +lean_dec(x_1325); +lean_dec(x_1323); +lean_dec(x_1322); +x_1328 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__35; +x_1185 = x_1328; +goto block_1188; } else { -lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; -x_1351 = lean_ctor_get(x_1296, 0); -x_1352 = lean_ctor_get(x_1296, 1); -lean_inc(x_1352); +lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; uint8_t x_1338; uint8_t x_1339; uint8_t x_1340; uint8_t x_1341; uint8_t x_1342; uint8_t x_1343; uint8_t x_1344; uint8_t x_1345; lean_object* x_1346; uint8_t x_1347; uint8_t x_1348; uint8_t x_1349; uint8_t x_1350; lean_object* x_1351; uint8_t x_1352; lean_object* x_1353; uint8_t x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; +lean_dec(x_1184); +x_1329 = lean_ctor_get(x_1322, 0); +lean_inc(x_1329); +x_1330 = lean_ctor_get(x_1322, 1); +lean_inc_ref(x_1330); +x_1331 = lean_ctor_get(x_1322, 2); +lean_inc_ref(x_1331); +x_1332 = lean_ctor_get(x_1322, 3); +lean_inc(x_1332); +x_1333 = lean_ctor_get(x_1322, 4); +lean_inc(x_1333); +x_1334 = lean_ctor_get(x_1322, 5); +lean_inc(x_1334); +x_1335 = lean_ctor_get(x_1322, 6); +lean_inc(x_1335); +x_1336 = lean_ctor_get(x_1322, 7); +lean_inc_ref(x_1336); +x_1337 = lean_ctor_get(x_1322, 8); +lean_inc(x_1337); +x_1338 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17); +x_1339 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 1); +x_1340 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 2); +x_1341 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 3); +x_1342 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 4); +x_1343 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 5); +x_1344 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 6); +x_1345 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 7); +x_1346 = lean_ctor_get(x_1322, 9); +lean_inc(x_1346); +x_1347 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 8); +x_1348 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 9); +x_1349 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 10); +x_1350 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 11); +x_1351 = lean_ctor_get(x_1322, 11); lean_inc(x_1351); -lean_dec(x_1296); -x_1353 = l_String_toNat_x3f(x_1351); -lean_dec(x_1351); -if (lean_obj_tag(x_1353) == 0) +x_1352 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 12); +x_1353 = lean_ctor_get(x_1322, 12); +lean_inc(x_1353); +x_1354 = lean_ctor_get_uint8(x_1322, sizeof(void*)*17 + 13); +x_1355 = lean_ctor_get(x_1322, 13); +lean_inc(x_1355); +x_1356 = lean_ctor_get(x_1322, 14); +lean_inc(x_1356); +x_1357 = lean_ctor_get(x_1322, 15); +lean_inc(x_1357); +x_1358 = lean_ctor_get(x_1322, 16); +lean_inc(x_1358); +if (lean_is_exclusive(x_1322)) { + lean_ctor_release(x_1322, 0); + lean_ctor_release(x_1322, 1); + lean_ctor_release(x_1322, 2); + lean_ctor_release(x_1322, 3); + lean_ctor_release(x_1322, 4); + lean_ctor_release(x_1322, 5); + lean_ctor_release(x_1322, 6); + lean_ctor_release(x_1322, 7); + lean_ctor_release(x_1322, 8); + lean_ctor_release(x_1322, 9); + lean_ctor_release(x_1322, 10); + lean_ctor_release(x_1322, 11); + lean_ctor_release(x_1322, 12); + lean_ctor_release(x_1322, 13); + lean_ctor_release(x_1322, 14); + lean_ctor_release(x_1322, 15); + lean_ctor_release(x_1322, 16); + x_1359 = x_1322; +} else { + lean_dec_ref(x_1322); + x_1359 = lean_box(0); +} +x_1360 = lean_box(0); +if (lean_is_scalar(x_1359)) { + x_1361 = lean_alloc_ctor(0, 17, 14); +} else { + x_1361 = x_1359; +} +lean_ctor_set(x_1361, 0, x_1329); +lean_ctor_set(x_1361, 1, x_1330); +lean_ctor_set(x_1361, 2, x_1331); +lean_ctor_set(x_1361, 3, x_1332); +lean_ctor_set(x_1361, 4, x_1333); +lean_ctor_set(x_1361, 5, x_1334); +lean_ctor_set(x_1361, 6, x_1335); +lean_ctor_set(x_1361, 7, x_1336); +lean_ctor_set(x_1361, 8, x_1337); +lean_ctor_set(x_1361, 9, x_1346); +lean_ctor_set(x_1361, 10, x_1327); +lean_ctor_set(x_1361, 11, x_1351); +lean_ctor_set(x_1361, 12, x_1353); +lean_ctor_set(x_1361, 13, x_1355); +lean_ctor_set(x_1361, 14, x_1356); +lean_ctor_set(x_1361, 15, x_1357); +lean_ctor_set(x_1361, 16, x_1358); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17, x_1338); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 1, x_1339); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 2, x_1340); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 3, x_1341); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 4, x_1342); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 5, x_1343); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 6, x_1344); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 7, x_1345); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 8, x_1347); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 9, x_1348); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 10, x_1349); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 11, x_1350); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 12, x_1352); +lean_ctor_set_uint8(x_1361, sizeof(void*)*17 + 13, x_1354); +if (lean_is_scalar(x_1326)) { + x_1362 = lean_alloc_ctor(0, 2, 0); +} else { + x_1362 = x_1326; +} +lean_ctor_set(x_1362, 0, x_1360); +lean_ctor_set(x_1362, 1, x_1325); +if (lean_is_scalar(x_1323)) { + x_1363 = lean_alloc_ctor(0, 2, 0); +} else { + x_1363 = x_1323; +} +lean_ctor_set(x_1363, 0, x_1362); +lean_ctor_set(x_1363, 1, x_1361); +x_1364 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1364, 0, x_1363); +x_1365 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1365, 0, x_1364); +lean_ctor_set(x_1365, 1, x_1183); +return x_1365; +} +} +} +block_1188: { -uint8_t x_1354; uint8_t x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; -lean_dec(x_1352); -lean_free_object(x_1295); -lean_dec(x_1301); -lean_free_object(x_1282); -lean_free_object(x_1283); -x_1354 = 1; -x_1355 = 0; -x_1356 = lean_box(1); -x_1357 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; -x_1358 = l_Lake_OutStream_logEntry(x_1356, x_1357, x_1354, x_1355, x_1298); -x_1359 = lean_ctor_get(x_1358, 1); -lean_inc(x_1359); -if (lean_is_exclusive(x_1358)) { - lean_ctor_release(x_1358, 0); - lean_ctor_release(x_1358, 1); - x_1360 = x_1358; +lean_object* x_1186; lean_object* x_1187; +x_1186 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1186, 0, x_1185); +if (lean_is_scalar(x_1184)) { + x_1187 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1358); - x_1360 = lean_box(0); + x_1187 = x_1184; +} +lean_ctor_set(x_1187, 0, x_1186); +lean_ctor_set(x_1187, 1, x_1183); +return x_1187; } -x_1361 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_1360)) { - x_1362 = lean_alloc_ctor(1, 2, 0); -} else { - x_1362 = x_1360; - lean_ctor_set_tag(x_1362, 1); } -lean_ctor_set(x_1362, 0, x_1361); -lean_ctor_set(x_1362, 1, x_1359); -return x_1362; } else { -lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; uint8_t x_1373; uint8_t x_1374; uint8_t x_1375; uint8_t x_1376; uint8_t x_1377; uint8_t x_1378; uint8_t x_1379; uint8_t x_1380; lean_object* x_1381; uint8_t x_1382; lean_object* x_1383; uint8_t x_1384; uint8_t x_1385; uint8_t x_1386; lean_object* x_1387; uint8_t x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; -x_1363 = lean_ctor_get(x_1353, 0); -lean_inc(x_1363); -lean_dec_ref(x_1353); -x_1364 = lean_ctor_get(x_1301, 0); -lean_inc(x_1364); -x_1365 = lean_ctor_get(x_1301, 1); -lean_inc_ref(x_1365); -x_1366 = lean_ctor_get(x_1301, 2); -lean_inc_ref(x_1366); -x_1367 = lean_ctor_get(x_1301, 3); -lean_inc(x_1367); -x_1368 = lean_ctor_get(x_1301, 4); +lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; +lean_dec_ref(x_1); +x_1366 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; +x_1367 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_47, x_1366, x_2, x_3, x_4); +x_1368 = lean_ctor_get(x_1367, 0); lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1301, 5); -lean_inc(x_1369); -x_1370 = lean_ctor_get(x_1301, 6); -lean_inc(x_1370); -x_1371 = lean_ctor_get(x_1301, 7); -lean_inc_ref(x_1371); -x_1372 = lean_ctor_get(x_1301, 8); +if (lean_obj_tag(x_1368) == 0) +{ +uint8_t x_1369; +x_1369 = !lean_is_exclusive(x_1367); +if (x_1369 == 0) +{ +lean_object* x_1370; uint8_t x_1371; +x_1370 = lean_ctor_get(x_1367, 0); +lean_dec(x_1370); +x_1371 = !lean_is_exclusive(x_1368); +if (x_1371 == 0) +{ +return x_1367; +} +else +{ +lean_object* x_1372; lean_object* x_1373; +x_1372 = lean_ctor_get(x_1368, 0); lean_inc(x_1372); -x_1373 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15); -x_1374 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 1); -x_1375 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 2); -x_1376 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 3); -x_1377 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 4); -x_1378 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 5); -x_1379 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 6); -x_1380 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 7); -x_1381 = lean_ctor_get(x_1301, 9); +lean_dec(x_1368); +x_1373 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1373, 0, x_1372); +lean_ctor_set(x_1367, 0, x_1373); +return x_1367; +} +} +else +{ +lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; +x_1374 = lean_ctor_get(x_1367, 1); +lean_inc(x_1374); +lean_dec(x_1367); +x_1375 = lean_ctor_get(x_1368, 0); +lean_inc(x_1375); +if (lean_is_exclusive(x_1368)) { + lean_ctor_release(x_1368, 0); + x_1376 = x_1368; +} else { + lean_dec_ref(x_1368); + x_1376 = lean_box(0); +} +if (lean_is_scalar(x_1376)) { + x_1377 = lean_alloc_ctor(0, 1, 0); +} else { + x_1377 = x_1376; +} +lean_ctor_set(x_1377, 0, x_1375); +x_1378 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1378, 0, x_1377); +lean_ctor_set(x_1378, 1, x_1374); +return x_1378; +} +} +else +{ +uint8_t x_1379; +x_1379 = !lean_is_exclusive(x_1368); +if (x_1379 == 0) +{ +lean_object* x_1380; lean_object* x_1381; uint8_t x_1382; +x_1380 = lean_ctor_get(x_1368, 0); +x_1381 = lean_ctor_get(x_1380, 0); lean_inc(x_1381); -x_1382 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 8); -x_1383 = lean_ctor_get(x_1301, 10); -lean_inc(x_1383); -x_1384 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 9); -x_1385 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 10); -x_1386 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 11); -x_1387 = lean_ctor_get(x_1301, 11); -lean_inc(x_1387); -x_1388 = lean_ctor_get_uint8(x_1301, sizeof(void*)*15 + 12); -x_1389 = lean_ctor_get(x_1301, 12); -lean_inc(x_1389); -x_1390 = lean_ctor_get(x_1301, 13); -lean_inc(x_1390); -if (lean_is_exclusive(x_1301)) { - lean_ctor_release(x_1301, 0); - lean_ctor_release(x_1301, 1); - lean_ctor_release(x_1301, 2); - lean_ctor_release(x_1301, 3); - lean_ctor_release(x_1301, 4); - lean_ctor_release(x_1301, 5); - lean_ctor_release(x_1301, 6); - lean_ctor_release(x_1301, 7); - lean_ctor_release(x_1301, 8); - lean_ctor_release(x_1301, 9); - lean_ctor_release(x_1301, 10); - lean_ctor_release(x_1301, 11); - lean_ctor_release(x_1301, 12); - lean_ctor_release(x_1301, 13); - lean_ctor_release(x_1301, 14); - x_1391 = x_1301; -} else { - lean_dec_ref(x_1301); - x_1391 = lean_box(0); -} -x_1392 = lean_box(0); -if (lean_is_scalar(x_1391)) { - x_1393 = lean_alloc_ctor(0, 15, 13); -} else { - x_1393 = x_1391; -} -lean_ctor_set(x_1393, 0, x_1364); -lean_ctor_set(x_1393, 1, x_1365); -lean_ctor_set(x_1393, 2, x_1366); -lean_ctor_set(x_1393, 3, x_1367); -lean_ctor_set(x_1393, 4, x_1368); -lean_ctor_set(x_1393, 5, x_1369); -lean_ctor_set(x_1393, 6, x_1370); -lean_ctor_set(x_1393, 7, x_1371); -lean_ctor_set(x_1393, 8, x_1372); -lean_ctor_set(x_1393, 9, x_1381); -lean_ctor_set(x_1393, 10, x_1383); -lean_ctor_set(x_1393, 11, x_1387); -lean_ctor_set(x_1393, 12, x_1389); -lean_ctor_set(x_1393, 13, x_1390); -lean_ctor_set(x_1393, 14, x_1363); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15, x_1373); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 1, x_1374); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 2, x_1375); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 3, x_1376); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 4, x_1377); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 5, x_1378); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 6, x_1379); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 7, x_1380); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 8, x_1382); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 9, x_1384); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 10, x_1385); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 11, x_1386); -lean_ctor_set_uint8(x_1393, sizeof(void*)*15 + 12, x_1388); -x_1394 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1394, 0, x_1392); -lean_ctor_set(x_1394, 1, x_1352); -lean_ctor_set(x_1295, 1, x_1393); -lean_ctor_set(x_1295, 0, x_1394); -return x_1282; -} -} -} -else +x_1382 = !lean_is_exclusive(x_1367); +if (x_1382 == 0) { -lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; -x_1395 = lean_ctor_get(x_1295, 1); -lean_inc(x_1395); -lean_dec(x_1295); -x_1396 = lean_ctor_get(x_1296, 0); -lean_inc(x_1396); -x_1397 = lean_ctor_get(x_1296, 1); -lean_inc(x_1397); -if (lean_is_exclusive(x_1296)) { - lean_ctor_release(x_1296, 0); - lean_ctor_release(x_1296, 1); - x_1398 = x_1296; -} else { - lean_dec_ref(x_1296); - x_1398 = lean_box(0); -} -x_1399 = l_String_toNat_x3f(x_1396); -lean_dec(x_1396); -if (lean_obj_tag(x_1399) == 0) +lean_object* x_1383; lean_object* x_1384; uint8_t x_1385; +x_1383 = lean_ctor_get(x_1367, 1); +x_1384 = lean_ctor_get(x_1367, 0); +lean_dec(x_1384); +x_1385 = !lean_is_exclusive(x_1380); +if (x_1385 == 0) { -uint8_t x_1400; uint8_t x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; +lean_object* x_1386; lean_object* x_1387; uint8_t x_1388; +x_1386 = lean_ctor_get(x_1380, 1); +x_1387 = lean_ctor_get(x_1380, 0); +lean_dec(x_1387); +x_1388 = !lean_is_exclusive(x_1381); +if (x_1388 == 0) +{ +lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; +x_1389 = lean_ctor_get(x_1381, 0); +x_1390 = lean_ctor_get(x_1381, 1); +x_1391 = l_String_toNat_x3f(x_1389); +lean_dec(x_1389); +if (lean_obj_tag(x_1391) == 0) +{ +uint8_t x_1392; uint8_t x_1393; lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; uint8_t x_1397; +lean_free_object(x_1381); +lean_dec(x_1390); +lean_free_object(x_1380); +lean_dec(x_1386); +lean_free_object(x_1367); +lean_free_object(x_1368); +x_1392 = 1; +x_1393 = 0; +x_1394 = lean_box(1); +x_1395 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; +x_1396 = l_Lake_OutStream_logEntry(x_1394, x_1395, x_1392, x_1393, x_1383); +x_1397 = !lean_is_exclusive(x_1396); +if (x_1397 == 0) +{ +lean_object* x_1398; lean_object* x_1399; +x_1398 = lean_ctor_get(x_1396, 0); lean_dec(x_1398); -lean_dec(x_1397); -lean_dec(x_1395); -lean_free_object(x_1282); -lean_free_object(x_1283); -x_1400 = 1; -x_1401 = 0; -x_1402 = lean_box(1); -x_1403 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; -x_1404 = l_Lake_OutStream_logEntry(x_1402, x_1403, x_1400, x_1401, x_1298); -x_1405 = lean_ctor_get(x_1404, 1); -lean_inc(x_1405); -if (lean_is_exclusive(x_1404)) { - lean_ctor_release(x_1404, 0); - lean_ctor_release(x_1404, 1); - x_1406 = x_1404; -} else { - lean_dec_ref(x_1404); - x_1406 = lean_box(0); -} -x_1407 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_1406)) { - x_1408 = lean_alloc_ctor(1, 2, 0); -} else { - x_1408 = x_1406; - lean_ctor_set_tag(x_1408, 1); -} -lean_ctor_set(x_1408, 0, x_1407); -lean_ctor_set(x_1408, 1, x_1405); -return x_1408; +x_1399 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +lean_ctor_set_tag(x_1396, 1); +lean_ctor_set(x_1396, 0, x_1399); +return x_1396; } else { -lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; uint8_t x_1419; uint8_t x_1420; uint8_t x_1421; uint8_t x_1422; uint8_t x_1423; uint8_t x_1424; uint8_t x_1425; uint8_t x_1426; lean_object* x_1427; uint8_t x_1428; lean_object* x_1429; uint8_t x_1430; uint8_t x_1431; uint8_t x_1432; lean_object* x_1433; uint8_t x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; -x_1409 = lean_ctor_get(x_1399, 0); -lean_inc(x_1409); -lean_dec_ref(x_1399); -x_1410 = lean_ctor_get(x_1395, 0); -lean_inc(x_1410); -x_1411 = lean_ctor_get(x_1395, 1); -lean_inc_ref(x_1411); -x_1412 = lean_ctor_get(x_1395, 2); -lean_inc_ref(x_1412); -x_1413 = lean_ctor_get(x_1395, 3); -lean_inc(x_1413); -x_1414 = lean_ctor_get(x_1395, 4); -lean_inc(x_1414); -x_1415 = lean_ctor_get(x_1395, 5); -lean_inc(x_1415); -x_1416 = lean_ctor_get(x_1395, 6); -lean_inc(x_1416); -x_1417 = lean_ctor_get(x_1395, 7); -lean_inc_ref(x_1417); -x_1418 = lean_ctor_get(x_1395, 8); -lean_inc(x_1418); -x_1419 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15); -x_1420 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 1); -x_1421 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 2); -x_1422 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 3); -x_1423 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 4); -x_1424 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 5); -x_1425 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 6); -x_1426 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 7); -x_1427 = lean_ctor_get(x_1395, 9); -lean_inc(x_1427); -x_1428 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 8); -x_1429 = lean_ctor_get(x_1395, 10); -lean_inc(x_1429); -x_1430 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 9); -x_1431 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 10); -x_1432 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 11); -x_1433 = lean_ctor_get(x_1395, 11); -lean_inc(x_1433); -x_1434 = lean_ctor_get_uint8(x_1395, sizeof(void*)*15 + 12); -x_1435 = lean_ctor_get(x_1395, 12); -lean_inc(x_1435); -x_1436 = lean_ctor_get(x_1395, 13); +lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; +x_1400 = lean_ctor_get(x_1396, 1); +lean_inc(x_1400); +lean_dec(x_1396); +x_1401 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +x_1402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1402, 0, x_1401); +lean_ctor_set(x_1402, 1, x_1400); +return x_1402; +} +} +else +{ +lean_object* x_1403; uint8_t x_1404; +x_1403 = lean_ctor_get(x_1391, 0); +lean_inc(x_1403); +lean_dec_ref(x_1391); +x_1404 = !lean_is_exclusive(x_1386); +if (x_1404 == 0) +{ +lean_object* x_1405; lean_object* x_1406; +x_1405 = lean_ctor_get(x_1386, 16); +lean_dec(x_1405); +x_1406 = lean_box(0); +lean_ctor_set(x_1386, 16, x_1403); +lean_ctor_set(x_1381, 0, x_1406); +return x_1367; +} +else +{ +lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; uint8_t x_1416; uint8_t x_1417; uint8_t x_1418; uint8_t x_1419; uint8_t x_1420; uint8_t x_1421; uint8_t x_1422; uint8_t x_1423; lean_object* x_1424; uint8_t x_1425; lean_object* x_1426; uint8_t x_1427; uint8_t x_1428; uint8_t x_1429; lean_object* x_1430; uint8_t x_1431; lean_object* x_1432; uint8_t x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; +x_1407 = lean_ctor_get(x_1386, 0); +x_1408 = lean_ctor_get(x_1386, 1); +x_1409 = lean_ctor_get(x_1386, 2); +x_1410 = lean_ctor_get(x_1386, 3); +x_1411 = lean_ctor_get(x_1386, 4); +x_1412 = lean_ctor_get(x_1386, 5); +x_1413 = lean_ctor_get(x_1386, 6); +x_1414 = lean_ctor_get(x_1386, 7); +x_1415 = lean_ctor_get(x_1386, 8); +x_1416 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17); +x_1417 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 1); +x_1418 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 2); +x_1419 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 3); +x_1420 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 4); +x_1421 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 5); +x_1422 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 6); +x_1423 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 7); +x_1424 = lean_ctor_get(x_1386, 9); +x_1425 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 8); +x_1426 = lean_ctor_get(x_1386, 10); +x_1427 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 9); +x_1428 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 10); +x_1429 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 11); +x_1430 = lean_ctor_get(x_1386, 11); +x_1431 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 12); +x_1432 = lean_ctor_get(x_1386, 12); +x_1433 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 13); +x_1434 = lean_ctor_get(x_1386, 13); +x_1435 = lean_ctor_get(x_1386, 14); +x_1436 = lean_ctor_get(x_1386, 15); lean_inc(x_1436); -if (lean_is_exclusive(x_1395)) { - lean_ctor_release(x_1395, 0); - lean_ctor_release(x_1395, 1); - lean_ctor_release(x_1395, 2); - lean_ctor_release(x_1395, 3); - lean_ctor_release(x_1395, 4); - lean_ctor_release(x_1395, 5); - lean_ctor_release(x_1395, 6); - lean_ctor_release(x_1395, 7); - lean_ctor_release(x_1395, 8); - lean_ctor_release(x_1395, 9); - lean_ctor_release(x_1395, 10); - lean_ctor_release(x_1395, 11); - lean_ctor_release(x_1395, 12); - lean_ctor_release(x_1395, 13); - lean_ctor_release(x_1395, 14); - x_1437 = x_1395; -} else { - lean_dec_ref(x_1395); - x_1437 = lean_box(0); -} -x_1438 = lean_box(0); -if (lean_is_scalar(x_1437)) { - x_1439 = lean_alloc_ctor(0, 15, 13); -} else { - x_1439 = x_1437; -} -lean_ctor_set(x_1439, 0, x_1410); -lean_ctor_set(x_1439, 1, x_1411); -lean_ctor_set(x_1439, 2, x_1412); -lean_ctor_set(x_1439, 3, x_1413); -lean_ctor_set(x_1439, 4, x_1414); -lean_ctor_set(x_1439, 5, x_1415); -lean_ctor_set(x_1439, 6, x_1416); -lean_ctor_set(x_1439, 7, x_1417); -lean_ctor_set(x_1439, 8, x_1418); -lean_ctor_set(x_1439, 9, x_1427); -lean_ctor_set(x_1439, 10, x_1429); -lean_ctor_set(x_1439, 11, x_1433); -lean_ctor_set(x_1439, 12, x_1435); -lean_ctor_set(x_1439, 13, x_1436); -lean_ctor_set(x_1439, 14, x_1409); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15, x_1419); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 1, x_1420); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 2, x_1421); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 3, x_1422); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 4, x_1423); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 5, x_1424); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 6, x_1425); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 7, x_1426); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 8, x_1428); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 9, x_1430); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 10, x_1431); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 11, x_1432); -lean_ctor_set_uint8(x_1439, sizeof(void*)*15 + 12, x_1434); -if (lean_is_scalar(x_1398)) { - x_1440 = lean_alloc_ctor(0, 2, 0); -} else { - x_1440 = x_1398; -} -lean_ctor_set(x_1440, 0, x_1438); -lean_ctor_set(x_1440, 1, x_1397); -x_1441 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1441, 0, x_1440); -lean_ctor_set(x_1441, 1, x_1439); -lean_ctor_set(x_1283, 0, x_1441); -return x_1282; +lean_inc(x_1435); +lean_inc(x_1434); +lean_inc(x_1432); +lean_inc(x_1430); +lean_inc(x_1426); +lean_inc(x_1424); +lean_inc(x_1415); +lean_inc(x_1414); +lean_inc(x_1413); +lean_inc(x_1412); +lean_inc(x_1411); +lean_inc(x_1410); +lean_inc(x_1409); +lean_inc(x_1408); +lean_inc(x_1407); +lean_dec(x_1386); +x_1437 = lean_box(0); +x_1438 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1438, 0, x_1407); +lean_ctor_set(x_1438, 1, x_1408); +lean_ctor_set(x_1438, 2, x_1409); +lean_ctor_set(x_1438, 3, x_1410); +lean_ctor_set(x_1438, 4, x_1411); +lean_ctor_set(x_1438, 5, x_1412); +lean_ctor_set(x_1438, 6, x_1413); +lean_ctor_set(x_1438, 7, x_1414); +lean_ctor_set(x_1438, 8, x_1415); +lean_ctor_set(x_1438, 9, x_1424); +lean_ctor_set(x_1438, 10, x_1426); +lean_ctor_set(x_1438, 11, x_1430); +lean_ctor_set(x_1438, 12, x_1432); +lean_ctor_set(x_1438, 13, x_1434); +lean_ctor_set(x_1438, 14, x_1435); +lean_ctor_set(x_1438, 15, x_1436); +lean_ctor_set(x_1438, 16, x_1403); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17, x_1416); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 1, x_1417); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 2, x_1418); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 3, x_1419); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 4, x_1420); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 5, x_1421); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 6, x_1422); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 7, x_1423); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 8, x_1425); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 9, x_1427); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 10, x_1428); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 11, x_1429); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 12, x_1431); +lean_ctor_set_uint8(x_1438, sizeof(void*)*17 + 13, x_1433); +lean_ctor_set(x_1381, 0, x_1437); +lean_ctor_set(x_1380, 1, x_1438); +return x_1367; } } } else { -lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; -x_1442 = lean_ctor_get(x_1282, 1); -lean_inc(x_1442); -lean_dec(x_1282); -x_1443 = lean_ctor_get(x_1295, 1); -lean_inc(x_1443); -if (lean_is_exclusive(x_1295)) { - lean_ctor_release(x_1295, 0); - lean_ctor_release(x_1295, 1); - x_1444 = x_1295; -} else { - lean_dec_ref(x_1295); - x_1444 = lean_box(0); -} -x_1445 = lean_ctor_get(x_1296, 0); -lean_inc(x_1445); -x_1446 = lean_ctor_get(x_1296, 1); -lean_inc(x_1446); -if (lean_is_exclusive(x_1296)) { - lean_ctor_release(x_1296, 0); - lean_ctor_release(x_1296, 1); - x_1447 = x_1296; -} else { - lean_dec_ref(x_1296); - x_1447 = lean_box(0); -} -x_1448 = l_String_toNat_x3f(x_1445); -lean_dec(x_1445); -if (lean_obj_tag(x_1448) == 0) +lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; +x_1439 = lean_ctor_get(x_1381, 0); +x_1440 = lean_ctor_get(x_1381, 1); +lean_inc(x_1440); +lean_inc(x_1439); +lean_dec(x_1381); +x_1441 = l_String_toNat_x3f(x_1439); +lean_dec(x_1439); +if (lean_obj_tag(x_1441) == 0) { -uint8_t x_1449; uint8_t x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; -lean_dec(x_1447); -lean_dec(x_1446); -lean_dec(x_1444); -lean_dec(x_1443); -lean_free_object(x_1283); -x_1449 = 1; -x_1450 = 0; -x_1451 = lean_box(1); -x_1452 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; -x_1453 = l_Lake_OutStream_logEntry(x_1451, x_1452, x_1449, x_1450, x_1442); -x_1454 = lean_ctor_get(x_1453, 1); -lean_inc(x_1454); -if (lean_is_exclusive(x_1453)) { - lean_ctor_release(x_1453, 0); - lean_ctor_release(x_1453, 1); - x_1455 = x_1453; +uint8_t x_1442; uint8_t x_1443; lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; +lean_dec(x_1440); +lean_free_object(x_1380); +lean_dec(x_1386); +lean_free_object(x_1367); +lean_free_object(x_1368); +x_1442 = 1; +x_1443 = 0; +x_1444 = lean_box(1); +x_1445 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; +x_1446 = l_Lake_OutStream_logEntry(x_1444, x_1445, x_1442, x_1443, x_1383); +x_1447 = lean_ctor_get(x_1446, 1); +lean_inc(x_1447); +if (lean_is_exclusive(x_1446)) { + lean_ctor_release(x_1446, 0); + lean_ctor_release(x_1446, 1); + x_1448 = x_1446; } else { - lean_dec_ref(x_1453); - x_1455 = lean_box(0); + lean_dec_ref(x_1446); + x_1448 = lean_box(0); } -x_1456 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_1455)) { - x_1457 = lean_alloc_ctor(1, 2, 0); +x_1449 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_1448)) { + x_1450 = lean_alloc_ctor(1, 2, 0); } else { - x_1457 = x_1455; - lean_ctor_set_tag(x_1457, 1); + x_1450 = x_1448; + lean_ctor_set_tag(x_1450, 1); } -lean_ctor_set(x_1457, 0, x_1456); -lean_ctor_set(x_1457, 1, x_1454); -return x_1457; +lean_ctor_set(x_1450, 0, x_1449); +lean_ctor_set(x_1450, 1, x_1447); +return x_1450; } else { -lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; uint8_t x_1468; uint8_t x_1469; uint8_t x_1470; uint8_t x_1471; uint8_t x_1472; uint8_t x_1473; uint8_t x_1474; uint8_t x_1475; lean_object* x_1476; uint8_t x_1477; lean_object* x_1478; uint8_t x_1479; uint8_t x_1480; uint8_t x_1481; lean_object* x_1482; uint8_t x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; -x_1458 = lean_ctor_get(x_1448, 0); +lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; uint8_t x_1461; uint8_t x_1462; uint8_t x_1463; uint8_t x_1464; uint8_t x_1465; uint8_t x_1466; uint8_t x_1467; uint8_t x_1468; lean_object* x_1469; uint8_t x_1470; lean_object* x_1471; uint8_t x_1472; uint8_t x_1473; uint8_t x_1474; lean_object* x_1475; uint8_t x_1476; lean_object* x_1477; uint8_t x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; +x_1451 = lean_ctor_get(x_1441, 0); +lean_inc(x_1451); +lean_dec_ref(x_1441); +x_1452 = lean_ctor_get(x_1386, 0); +lean_inc(x_1452); +x_1453 = lean_ctor_get(x_1386, 1); +lean_inc_ref(x_1453); +x_1454 = lean_ctor_get(x_1386, 2); +lean_inc_ref(x_1454); +x_1455 = lean_ctor_get(x_1386, 3); +lean_inc(x_1455); +x_1456 = lean_ctor_get(x_1386, 4); +lean_inc(x_1456); +x_1457 = lean_ctor_get(x_1386, 5); +lean_inc(x_1457); +x_1458 = lean_ctor_get(x_1386, 6); lean_inc(x_1458); -lean_dec_ref(x_1448); -x_1459 = lean_ctor_get(x_1443, 0); -lean_inc(x_1459); -x_1460 = lean_ctor_get(x_1443, 1); -lean_inc_ref(x_1460); -x_1461 = lean_ctor_get(x_1443, 2); -lean_inc_ref(x_1461); -x_1462 = lean_ctor_get(x_1443, 3); -lean_inc(x_1462); -x_1463 = lean_ctor_get(x_1443, 4); -lean_inc(x_1463); -x_1464 = lean_ctor_get(x_1443, 5); -lean_inc(x_1464); -x_1465 = lean_ctor_get(x_1443, 6); -lean_inc(x_1465); -x_1466 = lean_ctor_get(x_1443, 7); -lean_inc_ref(x_1466); -x_1467 = lean_ctor_get(x_1443, 8); -lean_inc(x_1467); -x_1468 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15); -x_1469 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 1); -x_1470 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 2); -x_1471 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 3); -x_1472 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 4); -x_1473 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 5); -x_1474 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 6); -x_1475 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 7); -x_1476 = lean_ctor_get(x_1443, 9); -lean_inc(x_1476); -x_1477 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 8); -x_1478 = lean_ctor_get(x_1443, 10); -lean_inc(x_1478); -x_1479 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 9); -x_1480 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 10); -x_1481 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 11); -x_1482 = lean_ctor_get(x_1443, 11); -lean_inc(x_1482); -x_1483 = lean_ctor_get_uint8(x_1443, sizeof(void*)*15 + 12); -x_1484 = lean_ctor_get(x_1443, 12); -lean_inc(x_1484); -x_1485 = lean_ctor_get(x_1443, 13); -lean_inc(x_1485); -if (lean_is_exclusive(x_1443)) { - lean_ctor_release(x_1443, 0); - lean_ctor_release(x_1443, 1); - lean_ctor_release(x_1443, 2); - lean_ctor_release(x_1443, 3); - lean_ctor_release(x_1443, 4); - lean_ctor_release(x_1443, 5); - lean_ctor_release(x_1443, 6); - lean_ctor_release(x_1443, 7); - lean_ctor_release(x_1443, 8); - lean_ctor_release(x_1443, 9); - lean_ctor_release(x_1443, 10); - lean_ctor_release(x_1443, 11); - lean_ctor_release(x_1443, 12); - lean_ctor_release(x_1443, 13); - lean_ctor_release(x_1443, 14); - x_1486 = x_1443; +x_1459 = lean_ctor_get(x_1386, 7); +lean_inc_ref(x_1459); +x_1460 = lean_ctor_get(x_1386, 8); +lean_inc(x_1460); +x_1461 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17); +x_1462 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 1); +x_1463 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 2); +x_1464 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 3); +x_1465 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 4); +x_1466 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 5); +x_1467 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 6); +x_1468 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 7); +x_1469 = lean_ctor_get(x_1386, 9); +lean_inc(x_1469); +x_1470 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 8); +x_1471 = lean_ctor_get(x_1386, 10); +lean_inc(x_1471); +x_1472 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 9); +x_1473 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 10); +x_1474 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 11); +x_1475 = lean_ctor_get(x_1386, 11); +lean_inc(x_1475); +x_1476 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 12); +x_1477 = lean_ctor_get(x_1386, 12); +lean_inc(x_1477); +x_1478 = lean_ctor_get_uint8(x_1386, sizeof(void*)*17 + 13); +x_1479 = lean_ctor_get(x_1386, 13); +lean_inc(x_1479); +x_1480 = lean_ctor_get(x_1386, 14); +lean_inc(x_1480); +x_1481 = lean_ctor_get(x_1386, 15); +lean_inc(x_1481); +if (lean_is_exclusive(x_1386)) { + lean_ctor_release(x_1386, 0); + lean_ctor_release(x_1386, 1); + lean_ctor_release(x_1386, 2); + lean_ctor_release(x_1386, 3); + lean_ctor_release(x_1386, 4); + lean_ctor_release(x_1386, 5); + lean_ctor_release(x_1386, 6); + lean_ctor_release(x_1386, 7); + lean_ctor_release(x_1386, 8); + lean_ctor_release(x_1386, 9); + lean_ctor_release(x_1386, 10); + lean_ctor_release(x_1386, 11); + lean_ctor_release(x_1386, 12); + lean_ctor_release(x_1386, 13); + lean_ctor_release(x_1386, 14); + lean_ctor_release(x_1386, 15); + lean_ctor_release(x_1386, 16); + x_1482 = x_1386; } else { - lean_dec_ref(x_1443); - x_1486 = lean_box(0); + lean_dec_ref(x_1386); + x_1482 = lean_box(0); } -x_1487 = lean_box(0); -if (lean_is_scalar(x_1486)) { - x_1488 = lean_alloc_ctor(0, 15, 13); +x_1483 = lean_box(0); +if (lean_is_scalar(x_1482)) { + x_1484 = lean_alloc_ctor(0, 17, 14); } else { - x_1488 = x_1486; + x_1484 = x_1482; } -lean_ctor_set(x_1488, 0, x_1459); -lean_ctor_set(x_1488, 1, x_1460); -lean_ctor_set(x_1488, 2, x_1461); -lean_ctor_set(x_1488, 3, x_1462); -lean_ctor_set(x_1488, 4, x_1463); -lean_ctor_set(x_1488, 5, x_1464); -lean_ctor_set(x_1488, 6, x_1465); -lean_ctor_set(x_1488, 7, x_1466); -lean_ctor_set(x_1488, 8, x_1467); -lean_ctor_set(x_1488, 9, x_1476); -lean_ctor_set(x_1488, 10, x_1478); -lean_ctor_set(x_1488, 11, x_1482); -lean_ctor_set(x_1488, 12, x_1484); -lean_ctor_set(x_1488, 13, x_1485); -lean_ctor_set(x_1488, 14, x_1458); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15, x_1468); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 1, x_1469); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 2, x_1470); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 3, x_1471); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 4, x_1472); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 5, x_1473); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 6, x_1474); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 7, x_1475); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 8, x_1477); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 9, x_1479); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 10, x_1480); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 11, x_1481); -lean_ctor_set_uint8(x_1488, sizeof(void*)*15 + 12, x_1483); -if (lean_is_scalar(x_1447)) { - x_1489 = lean_alloc_ctor(0, 2, 0); -} else { - x_1489 = x_1447; -} -lean_ctor_set(x_1489, 0, x_1487); -lean_ctor_set(x_1489, 1, x_1446); -if (lean_is_scalar(x_1444)) { - x_1490 = lean_alloc_ctor(0, 2, 0); -} else { - x_1490 = x_1444; -} -lean_ctor_set(x_1490, 0, x_1489); -lean_ctor_set(x_1490, 1, x_1488); -lean_ctor_set(x_1283, 0, x_1490); -x_1491 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1491, 0, x_1283); -lean_ctor_set(x_1491, 1, x_1442); -return x_1491; +lean_ctor_set(x_1484, 0, x_1452); +lean_ctor_set(x_1484, 1, x_1453); +lean_ctor_set(x_1484, 2, x_1454); +lean_ctor_set(x_1484, 3, x_1455); +lean_ctor_set(x_1484, 4, x_1456); +lean_ctor_set(x_1484, 5, x_1457); +lean_ctor_set(x_1484, 6, x_1458); +lean_ctor_set(x_1484, 7, x_1459); +lean_ctor_set(x_1484, 8, x_1460); +lean_ctor_set(x_1484, 9, x_1469); +lean_ctor_set(x_1484, 10, x_1471); +lean_ctor_set(x_1484, 11, x_1475); +lean_ctor_set(x_1484, 12, x_1477); +lean_ctor_set(x_1484, 13, x_1479); +lean_ctor_set(x_1484, 14, x_1480); +lean_ctor_set(x_1484, 15, x_1481); +lean_ctor_set(x_1484, 16, x_1451); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17, x_1461); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 1, x_1462); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 2, x_1463); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 3, x_1464); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 4, x_1465); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 5, x_1466); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 6, x_1467); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 7, x_1468); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 8, x_1470); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 9, x_1472); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 10, x_1473); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 11, x_1474); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 12, x_1476); +lean_ctor_set_uint8(x_1484, sizeof(void*)*17 + 13, x_1478); +x_1485 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1485, 0, x_1483); +lean_ctor_set(x_1485, 1, x_1440); +lean_ctor_set(x_1380, 1, x_1484); +lean_ctor_set(x_1380, 0, x_1485); +return x_1367; } } } else { -lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; -x_1492 = lean_ctor_get(x_1283, 0); -lean_inc(x_1492); -lean_dec(x_1283); -x_1493 = lean_ctor_get(x_1492, 0); -lean_inc(x_1493); -x_1494 = lean_ctor_get(x_1282, 1); -lean_inc(x_1494); -if (lean_is_exclusive(x_1282)) { - lean_ctor_release(x_1282, 0); - lean_ctor_release(x_1282, 1); - x_1495 = x_1282; +lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; +x_1486 = lean_ctor_get(x_1380, 1); +lean_inc(x_1486); +lean_dec(x_1380); +x_1487 = lean_ctor_get(x_1381, 0); +lean_inc(x_1487); +x_1488 = lean_ctor_get(x_1381, 1); +lean_inc(x_1488); +if (lean_is_exclusive(x_1381)) { + lean_ctor_release(x_1381, 0); + lean_ctor_release(x_1381, 1); + x_1489 = x_1381; } else { - lean_dec_ref(x_1282); - x_1495 = lean_box(0); + lean_dec_ref(x_1381); + x_1489 = lean_box(0); } -x_1496 = lean_ctor_get(x_1492, 1); +x_1490 = l_String_toNat_x3f(x_1487); +lean_dec(x_1487); +if (lean_obj_tag(x_1490) == 0) +{ +uint8_t x_1491; uint8_t x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; +lean_dec(x_1489); +lean_dec(x_1488); +lean_dec(x_1486); +lean_free_object(x_1367); +lean_free_object(x_1368); +x_1491 = 1; +x_1492 = 0; +x_1493 = lean_box(1); +x_1494 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; +x_1495 = l_Lake_OutStream_logEntry(x_1493, x_1494, x_1491, x_1492, x_1383); +x_1496 = lean_ctor_get(x_1495, 1); lean_inc(x_1496); -if (lean_is_exclusive(x_1492)) { - lean_ctor_release(x_1492, 0); - lean_ctor_release(x_1492, 1); - x_1497 = x_1492; +if (lean_is_exclusive(x_1495)) { + lean_ctor_release(x_1495, 0); + lean_ctor_release(x_1495, 1); + x_1497 = x_1495; } else { - lean_dec_ref(x_1492); + lean_dec_ref(x_1495); x_1497 = lean_box(0); } -x_1498 = lean_ctor_get(x_1493, 0); -lean_inc(x_1498); -x_1499 = lean_ctor_get(x_1493, 1); -lean_inc(x_1499); -if (lean_is_exclusive(x_1493)) { - lean_ctor_release(x_1493, 0); - lean_ctor_release(x_1493, 1); - x_1500 = x_1493; -} else { - lean_dec_ref(x_1493); - x_1500 = lean_box(0); -} -x_1501 = l_String_toNat_x3f(x_1498); -lean_dec(x_1498); -if (lean_obj_tag(x_1501) == 0) -{ -uint8_t x_1502; uint8_t x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; -lean_dec(x_1500); -lean_dec(x_1499); -lean_dec(x_1497); -lean_dec(x_1496); -lean_dec(x_1495); -x_1502 = 1; -x_1503 = 0; -x_1504 = lean_box(1); -x_1505 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__36; -x_1506 = l_Lake_OutStream_logEntry(x_1504, x_1505, x_1502, x_1503, x_1494); -x_1507 = lean_ctor_get(x_1506, 1); -lean_inc(x_1507); -if (lean_is_exclusive(x_1506)) { - lean_ctor_release(x_1506, 0); - lean_ctor_release(x_1506, 1); - x_1508 = x_1506; -} else { - lean_dec_ref(x_1506); - x_1508 = lean_box(0); -} -x_1509 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; -if (lean_is_scalar(x_1508)) { - x_1510 = lean_alloc_ctor(1, 2, 0); -} else { - x_1510 = x_1508; - lean_ctor_set_tag(x_1510, 1); -} -lean_ctor_set(x_1510, 0, x_1509); -lean_ctor_set(x_1510, 1, x_1507); -return x_1510; -} -else -{ -lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; uint8_t x_1521; uint8_t x_1522; uint8_t x_1523; uint8_t x_1524; uint8_t x_1525; uint8_t x_1526; uint8_t x_1527; uint8_t x_1528; lean_object* x_1529; uint8_t x_1530; lean_object* x_1531; uint8_t x_1532; uint8_t x_1533; uint8_t x_1534; lean_object* x_1535; uint8_t x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; -x_1511 = lean_ctor_get(x_1501, 0); -lean_inc(x_1511); -lean_dec_ref(x_1501); -x_1512 = lean_ctor_get(x_1496, 0); -lean_inc(x_1512); -x_1513 = lean_ctor_get(x_1496, 1); -lean_inc_ref(x_1513); -x_1514 = lean_ctor_get(x_1496, 2); -lean_inc_ref(x_1514); -x_1515 = lean_ctor_get(x_1496, 3); -lean_inc(x_1515); -x_1516 = lean_ctor_get(x_1496, 4); -lean_inc(x_1516); -x_1517 = lean_ctor_get(x_1496, 5); -lean_inc(x_1517); -x_1518 = lean_ctor_get(x_1496, 6); -lean_inc(x_1518); -x_1519 = lean_ctor_get(x_1496, 7); -lean_inc_ref(x_1519); -x_1520 = lean_ctor_get(x_1496, 8); -lean_inc(x_1520); -x_1521 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15); -x_1522 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 1); -x_1523 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 2); -x_1524 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 3); -x_1525 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 4); -x_1526 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 5); -x_1527 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 6); -x_1528 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 7); -x_1529 = lean_ctor_get(x_1496, 9); -lean_inc(x_1529); -x_1530 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 8); -x_1531 = lean_ctor_get(x_1496, 10); -lean_inc(x_1531); -x_1532 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 9); -x_1533 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 10); -x_1534 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 11); -x_1535 = lean_ctor_get(x_1496, 11); -lean_inc(x_1535); -x_1536 = lean_ctor_get_uint8(x_1496, sizeof(void*)*15 + 12); -x_1537 = lean_ctor_get(x_1496, 12); -lean_inc(x_1537); -x_1538 = lean_ctor_get(x_1496, 13); -lean_inc(x_1538); -if (lean_is_exclusive(x_1496)) { - lean_ctor_release(x_1496, 0); - lean_ctor_release(x_1496, 1); - lean_ctor_release(x_1496, 2); - lean_ctor_release(x_1496, 3); - lean_ctor_release(x_1496, 4); - lean_ctor_release(x_1496, 5); - lean_ctor_release(x_1496, 6); - lean_ctor_release(x_1496, 7); - lean_ctor_release(x_1496, 8); - lean_ctor_release(x_1496, 9); - lean_ctor_release(x_1496, 10); - lean_ctor_release(x_1496, 11); - lean_ctor_release(x_1496, 12); - lean_ctor_release(x_1496, 13); - lean_ctor_release(x_1496, 14); - x_1539 = x_1496; -} else { - lean_dec_ref(x_1496); - x_1539 = lean_box(0); -} -x_1540 = lean_box(0); -if (lean_is_scalar(x_1539)) { - x_1541 = lean_alloc_ctor(0, 15, 13); -} else { - x_1541 = x_1539; -} -lean_ctor_set(x_1541, 0, x_1512); -lean_ctor_set(x_1541, 1, x_1513); -lean_ctor_set(x_1541, 2, x_1514); -lean_ctor_set(x_1541, 3, x_1515); -lean_ctor_set(x_1541, 4, x_1516); -lean_ctor_set(x_1541, 5, x_1517); -lean_ctor_set(x_1541, 6, x_1518); -lean_ctor_set(x_1541, 7, x_1519); -lean_ctor_set(x_1541, 8, x_1520); -lean_ctor_set(x_1541, 9, x_1529); -lean_ctor_set(x_1541, 10, x_1531); -lean_ctor_set(x_1541, 11, x_1535); -lean_ctor_set(x_1541, 12, x_1537); -lean_ctor_set(x_1541, 13, x_1538); -lean_ctor_set(x_1541, 14, x_1511); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15, x_1521); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 1, x_1522); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 2, x_1523); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 3, x_1524); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 4, x_1525); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 5, x_1526); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 6, x_1527); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 7, x_1528); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 8, x_1530); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 9, x_1532); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 10, x_1533); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 11, x_1534); -lean_ctor_set_uint8(x_1541, sizeof(void*)*15 + 12, x_1536); -if (lean_is_scalar(x_1500)) { - x_1542 = lean_alloc_ctor(0, 2, 0); -} else { - x_1542 = x_1500; -} -lean_ctor_set(x_1542, 0, x_1540); -lean_ctor_set(x_1542, 1, x_1499); +x_1498 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; if (lean_is_scalar(x_1497)) { - x_1543 = lean_alloc_ctor(0, 2, 0); + x_1499 = lean_alloc_ctor(1, 2, 0); } else { - x_1543 = x_1497; + x_1499 = x_1497; + lean_ctor_set_tag(x_1499, 1); } -lean_ctor_set(x_1543, 0, x_1542); -lean_ctor_set(x_1543, 1, x_1541); -x_1544 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1544, 0, x_1543); -if (lean_is_scalar(x_1495)) { - x_1545 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1499, 0, x_1498); +lean_ctor_set(x_1499, 1, x_1496); +return x_1499; +} +else +{ +lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; uint8_t x_1510; uint8_t x_1511; uint8_t x_1512; uint8_t x_1513; uint8_t x_1514; uint8_t x_1515; uint8_t x_1516; uint8_t x_1517; lean_object* x_1518; uint8_t x_1519; lean_object* x_1520; uint8_t x_1521; uint8_t x_1522; uint8_t x_1523; lean_object* x_1524; uint8_t x_1525; lean_object* x_1526; uint8_t x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; +x_1500 = lean_ctor_get(x_1490, 0); +lean_inc(x_1500); +lean_dec_ref(x_1490); +x_1501 = lean_ctor_get(x_1486, 0); +lean_inc(x_1501); +x_1502 = lean_ctor_get(x_1486, 1); +lean_inc_ref(x_1502); +x_1503 = lean_ctor_get(x_1486, 2); +lean_inc_ref(x_1503); +x_1504 = lean_ctor_get(x_1486, 3); +lean_inc(x_1504); +x_1505 = lean_ctor_get(x_1486, 4); +lean_inc(x_1505); +x_1506 = lean_ctor_get(x_1486, 5); +lean_inc(x_1506); +x_1507 = lean_ctor_get(x_1486, 6); +lean_inc(x_1507); +x_1508 = lean_ctor_get(x_1486, 7); +lean_inc_ref(x_1508); +x_1509 = lean_ctor_get(x_1486, 8); +lean_inc(x_1509); +x_1510 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17); +x_1511 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 1); +x_1512 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 2); +x_1513 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 3); +x_1514 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 4); +x_1515 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 5); +x_1516 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 6); +x_1517 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 7); +x_1518 = lean_ctor_get(x_1486, 9); +lean_inc(x_1518); +x_1519 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 8); +x_1520 = lean_ctor_get(x_1486, 10); +lean_inc(x_1520); +x_1521 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 9); +x_1522 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 10); +x_1523 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 11); +x_1524 = lean_ctor_get(x_1486, 11); +lean_inc(x_1524); +x_1525 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 12); +x_1526 = lean_ctor_get(x_1486, 12); +lean_inc(x_1526); +x_1527 = lean_ctor_get_uint8(x_1486, sizeof(void*)*17 + 13); +x_1528 = lean_ctor_get(x_1486, 13); +lean_inc(x_1528); +x_1529 = lean_ctor_get(x_1486, 14); +lean_inc(x_1529); +x_1530 = lean_ctor_get(x_1486, 15); +lean_inc(x_1530); +if (lean_is_exclusive(x_1486)) { + lean_ctor_release(x_1486, 0); + lean_ctor_release(x_1486, 1); + lean_ctor_release(x_1486, 2); + lean_ctor_release(x_1486, 3); + lean_ctor_release(x_1486, 4); + lean_ctor_release(x_1486, 5); + lean_ctor_release(x_1486, 6); + lean_ctor_release(x_1486, 7); + lean_ctor_release(x_1486, 8); + lean_ctor_release(x_1486, 9); + lean_ctor_release(x_1486, 10); + lean_ctor_release(x_1486, 11); + lean_ctor_release(x_1486, 12); + lean_ctor_release(x_1486, 13); + lean_ctor_release(x_1486, 14); + lean_ctor_release(x_1486, 15); + lean_ctor_release(x_1486, 16); + x_1531 = x_1486; } else { - x_1545 = x_1495; + lean_dec_ref(x_1486); + x_1531 = lean_box(0); } -lean_ctor_set(x_1545, 0, x_1544); -lean_ctor_set(x_1545, 1, x_1494); -return x_1545; +x_1532 = lean_box(0); +if (lean_is_scalar(x_1531)) { + x_1533 = lean_alloc_ctor(0, 17, 14); +} else { + x_1533 = x_1531; } +lean_ctor_set(x_1533, 0, x_1501); +lean_ctor_set(x_1533, 1, x_1502); +lean_ctor_set(x_1533, 2, x_1503); +lean_ctor_set(x_1533, 3, x_1504); +lean_ctor_set(x_1533, 4, x_1505); +lean_ctor_set(x_1533, 5, x_1506); +lean_ctor_set(x_1533, 6, x_1507); +lean_ctor_set(x_1533, 7, x_1508); +lean_ctor_set(x_1533, 8, x_1509); +lean_ctor_set(x_1533, 9, x_1518); +lean_ctor_set(x_1533, 10, x_1520); +lean_ctor_set(x_1533, 11, x_1524); +lean_ctor_set(x_1533, 12, x_1526); +lean_ctor_set(x_1533, 13, x_1528); +lean_ctor_set(x_1533, 14, x_1529); +lean_ctor_set(x_1533, 15, x_1530); +lean_ctor_set(x_1533, 16, x_1500); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17, x_1510); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 1, x_1511); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 2, x_1512); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 3, x_1513); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 4, x_1514); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 5, x_1515); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 6, x_1516); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 7, x_1517); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 8, x_1519); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 9, x_1521); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 10, x_1522); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 11, x_1523); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 12, x_1525); +lean_ctor_set_uint8(x_1533, sizeof(void*)*17 + 13, x_1527); +if (lean_is_scalar(x_1489)) { + x_1534 = lean_alloc_ctor(0, 2, 0); +} else { + x_1534 = x_1489; } +lean_ctor_set(x_1534, 0, x_1532); +lean_ctor_set(x_1534, 1, x_1488); +x_1535 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1535, 0, x_1534); +lean_ctor_set(x_1535, 1, x_1533); +lean_ctor_set(x_1368, 0, x_1535); +return x_1367; } } } else { -lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; -lean_dec_ref(x_1); -x_1546 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__37; -x_1547 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_41, x_1546, x_2, x_3, x_4); -x_1548 = lean_ctor_get(x_1547, 0); +lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; +x_1536 = lean_ctor_get(x_1367, 1); +lean_inc(x_1536); +lean_dec(x_1367); +x_1537 = lean_ctor_get(x_1380, 1); +lean_inc(x_1537); +if (lean_is_exclusive(x_1380)) { + lean_ctor_release(x_1380, 0); + lean_ctor_release(x_1380, 1); + x_1538 = x_1380; +} else { + lean_dec_ref(x_1380); + x_1538 = lean_box(0); +} +x_1539 = lean_ctor_get(x_1381, 0); +lean_inc(x_1539); +x_1540 = lean_ctor_get(x_1381, 1); +lean_inc(x_1540); +if (lean_is_exclusive(x_1381)) { + lean_ctor_release(x_1381, 0); + lean_ctor_release(x_1381, 1); + x_1541 = x_1381; +} else { + lean_dec_ref(x_1381); + x_1541 = lean_box(0); +} +x_1542 = l_String_toNat_x3f(x_1539); +lean_dec(x_1539); +if (lean_obj_tag(x_1542) == 0) +{ +uint8_t x_1543; uint8_t x_1544; lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; +lean_dec(x_1541); +lean_dec(x_1540); +lean_dec(x_1538); +lean_dec(x_1537); +lean_free_object(x_1368); +x_1543 = 1; +x_1544 = 0; +x_1545 = lean_box(1); +x_1546 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; +x_1547 = l_Lake_OutStream_logEntry(x_1545, x_1546, x_1543, x_1544, x_1536); +x_1548 = lean_ctor_get(x_1547, 1); lean_inc(x_1548); -if (lean_obj_tag(x_1548) == 0) -{ -uint8_t x_1549; -x_1549 = !lean_is_exclusive(x_1547); -if (x_1549 == 0) -{ -lean_object* x_1550; uint8_t x_1551; -x_1550 = lean_ctor_get(x_1547, 0); -lean_dec(x_1550); -x_1551 = !lean_is_exclusive(x_1548); -if (x_1551 == 0) -{ -return x_1547; +if (lean_is_exclusive(x_1547)) { + lean_ctor_release(x_1547, 0); + lean_ctor_release(x_1547, 1); + x_1549 = x_1547; +} else { + lean_dec_ref(x_1547); + x_1549 = lean_box(0); +} +x_1550 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_1549)) { + x_1551 = lean_alloc_ctor(1, 2, 0); +} else { + x_1551 = x_1549; + lean_ctor_set_tag(x_1551, 1); +} +lean_ctor_set(x_1551, 0, x_1550); +lean_ctor_set(x_1551, 1, x_1548); +return x_1551; } else { -lean_object* x_1552; lean_object* x_1553; -x_1552 = lean_ctor_get(x_1548, 0); +lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; uint8_t x_1562; uint8_t x_1563; uint8_t x_1564; uint8_t x_1565; uint8_t x_1566; uint8_t x_1567; uint8_t x_1568; uint8_t x_1569; lean_object* x_1570; uint8_t x_1571; lean_object* x_1572; uint8_t x_1573; uint8_t x_1574; uint8_t x_1575; lean_object* x_1576; uint8_t x_1577; lean_object* x_1578; uint8_t x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; +x_1552 = lean_ctor_get(x_1542, 0); lean_inc(x_1552); -lean_dec(x_1548); -x_1553 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1553, 0, x_1552); -lean_ctor_set(x_1547, 0, x_1553); -return x_1547; -} -} -else -{ -lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; -x_1554 = lean_ctor_get(x_1547, 1); -lean_inc(x_1554); -lean_dec(x_1547); -x_1555 = lean_ctor_get(x_1548, 0); -lean_inc(x_1555); -if (lean_is_exclusive(x_1548)) { - lean_ctor_release(x_1548, 0); - x_1556 = x_1548; -} else { - lean_dec_ref(x_1548); - x_1556 = lean_box(0); -} -if (lean_is_scalar(x_1556)) { - x_1557 = lean_alloc_ctor(0, 1, 0); -} else { - x_1557 = x_1556; -} -lean_ctor_set(x_1557, 0, x_1555); -x_1558 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1558, 0, x_1557); -lean_ctor_set(x_1558, 1, x_1554); -return x_1558; -} -} -else -{ -uint8_t x_1559; -x_1559 = !lean_is_exclusive(x_1548); -if (x_1559 == 0) -{ -lean_object* x_1560; uint8_t x_1561; -x_1560 = lean_ctor_get(x_1548, 0); -x_1561 = !lean_is_exclusive(x_1560); -if (x_1561 == 0) -{ -uint8_t x_1562; -x_1562 = !lean_is_exclusive(x_1547); -if (x_1562 == 0) -{ -lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; uint8_t x_1566; -x_1563 = lean_ctor_get(x_1560, 0); -x_1564 = lean_ctor_get(x_1560, 1); -x_1565 = lean_ctor_get(x_1547, 0); -lean_dec(x_1565); -x_1566 = !lean_is_exclusive(x_1563); -if (x_1566 == 0) -{ -uint8_t x_1567; -x_1567 = !lean_is_exclusive(x_1564); -if (x_1567 == 0) -{ -lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; -x_1568 = lean_ctor_get(x_1563, 0); -x_1569 = lean_ctor_get(x_1564, 13); -lean_dec(x_1569); -x_1570 = lean_box(0); -x_1571 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1571, 0, x_1568); -lean_ctor_set(x_1564, 13, x_1571); -lean_ctor_set(x_1563, 0, x_1570); -return x_1547; -} -else -{ -lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; uint8_t x_1582; uint8_t x_1583; uint8_t x_1584; uint8_t x_1585; uint8_t x_1586; uint8_t x_1587; uint8_t x_1588; uint8_t x_1589; lean_object* x_1590; uint8_t x_1591; lean_object* x_1592; uint8_t x_1593; uint8_t x_1594; uint8_t x_1595; lean_object* x_1596; uint8_t x_1597; lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; lean_object* x_1601; lean_object* x_1602; -x_1572 = lean_ctor_get(x_1563, 0); -x_1573 = lean_ctor_get(x_1564, 0); -x_1574 = lean_ctor_get(x_1564, 1); -x_1575 = lean_ctor_get(x_1564, 2); -x_1576 = lean_ctor_get(x_1564, 3); -x_1577 = lean_ctor_get(x_1564, 4); -x_1578 = lean_ctor_get(x_1564, 5); -x_1579 = lean_ctor_get(x_1564, 6); -x_1580 = lean_ctor_get(x_1564, 7); -x_1581 = lean_ctor_get(x_1564, 8); -x_1582 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15); -x_1583 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 1); -x_1584 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 2); -x_1585 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 3); -x_1586 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 4); -x_1587 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 5); -x_1588 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 6); -x_1589 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 7); -x_1590 = lean_ctor_get(x_1564, 9); -x_1591 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 8); -x_1592 = lean_ctor_get(x_1564, 10); -x_1593 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 9); -x_1594 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 10); -x_1595 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 11); -x_1596 = lean_ctor_get(x_1564, 11); -x_1597 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 12); -x_1598 = lean_ctor_get(x_1564, 12); -x_1599 = lean_ctor_get(x_1564, 14); -lean_inc(x_1599); -lean_inc(x_1598); -lean_inc(x_1596); -lean_inc(x_1592); -lean_inc(x_1590); -lean_inc(x_1581); -lean_inc(x_1580); -lean_inc(x_1579); -lean_inc(x_1578); -lean_inc(x_1577); +lean_dec_ref(x_1542); +x_1553 = lean_ctor_get(x_1537, 0); +lean_inc(x_1553); +x_1554 = lean_ctor_get(x_1537, 1); +lean_inc_ref(x_1554); +x_1555 = lean_ctor_get(x_1537, 2); +lean_inc_ref(x_1555); +x_1556 = lean_ctor_get(x_1537, 3); +lean_inc(x_1556); +x_1557 = lean_ctor_get(x_1537, 4); +lean_inc(x_1557); +x_1558 = lean_ctor_get(x_1537, 5); +lean_inc(x_1558); +x_1559 = lean_ctor_get(x_1537, 6); +lean_inc(x_1559); +x_1560 = lean_ctor_get(x_1537, 7); +lean_inc_ref(x_1560); +x_1561 = lean_ctor_get(x_1537, 8); +lean_inc(x_1561); +x_1562 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17); +x_1563 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 1); +x_1564 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 2); +x_1565 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 3); +x_1566 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 4); +x_1567 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 5); +x_1568 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 6); +x_1569 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 7); +x_1570 = lean_ctor_get(x_1537, 9); +lean_inc(x_1570); +x_1571 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 8); +x_1572 = lean_ctor_get(x_1537, 10); +lean_inc(x_1572); +x_1573 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 9); +x_1574 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 10); +x_1575 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 11); +x_1576 = lean_ctor_get(x_1537, 11); lean_inc(x_1576); -lean_inc(x_1575); -lean_inc(x_1574); -lean_inc(x_1573); -lean_dec(x_1564); -x_1600 = lean_box(0); -x_1601 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1601, 0, x_1572); -x_1602 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_1602, 0, x_1573); -lean_ctor_set(x_1602, 1, x_1574); -lean_ctor_set(x_1602, 2, x_1575); -lean_ctor_set(x_1602, 3, x_1576); -lean_ctor_set(x_1602, 4, x_1577); -lean_ctor_set(x_1602, 5, x_1578); -lean_ctor_set(x_1602, 6, x_1579); -lean_ctor_set(x_1602, 7, x_1580); -lean_ctor_set(x_1602, 8, x_1581); -lean_ctor_set(x_1602, 9, x_1590); -lean_ctor_set(x_1602, 10, x_1592); -lean_ctor_set(x_1602, 11, x_1596); -lean_ctor_set(x_1602, 12, x_1598); -lean_ctor_set(x_1602, 13, x_1601); -lean_ctor_set(x_1602, 14, x_1599); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15, x_1582); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 1, x_1583); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 2, x_1584); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 3, x_1585); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 4, x_1586); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 5, x_1587); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 6, x_1588); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 7, x_1589); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 8, x_1591); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 9, x_1593); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 10, x_1594); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 11, x_1595); -lean_ctor_set_uint8(x_1602, sizeof(void*)*15 + 12, x_1597); -lean_ctor_set(x_1563, 0, x_1600); -lean_ctor_set(x_1560, 1, x_1602); -return x_1547; +x_1577 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 12); +x_1578 = lean_ctor_get(x_1537, 12); +lean_inc(x_1578); +x_1579 = lean_ctor_get_uint8(x_1537, sizeof(void*)*17 + 13); +x_1580 = lean_ctor_get(x_1537, 13); +lean_inc(x_1580); +x_1581 = lean_ctor_get(x_1537, 14); +lean_inc(x_1581); +x_1582 = lean_ctor_get(x_1537, 15); +lean_inc(x_1582); +if (lean_is_exclusive(x_1537)) { + lean_ctor_release(x_1537, 0); + lean_ctor_release(x_1537, 1); + lean_ctor_release(x_1537, 2); + lean_ctor_release(x_1537, 3); + lean_ctor_release(x_1537, 4); + lean_ctor_release(x_1537, 5); + lean_ctor_release(x_1537, 6); + lean_ctor_release(x_1537, 7); + lean_ctor_release(x_1537, 8); + lean_ctor_release(x_1537, 9); + lean_ctor_release(x_1537, 10); + lean_ctor_release(x_1537, 11); + lean_ctor_release(x_1537, 12); + lean_ctor_release(x_1537, 13); + lean_ctor_release(x_1537, 14); + lean_ctor_release(x_1537, 15); + lean_ctor_release(x_1537, 16); + x_1583 = x_1537; +} else { + lean_dec_ref(x_1537); + x_1583 = lean_box(0); +} +x_1584 = lean_box(0); +if (lean_is_scalar(x_1583)) { + x_1585 = lean_alloc_ctor(0, 17, 14); +} else { + x_1585 = x_1583; +} +lean_ctor_set(x_1585, 0, x_1553); +lean_ctor_set(x_1585, 1, x_1554); +lean_ctor_set(x_1585, 2, x_1555); +lean_ctor_set(x_1585, 3, x_1556); +lean_ctor_set(x_1585, 4, x_1557); +lean_ctor_set(x_1585, 5, x_1558); +lean_ctor_set(x_1585, 6, x_1559); +lean_ctor_set(x_1585, 7, x_1560); +lean_ctor_set(x_1585, 8, x_1561); +lean_ctor_set(x_1585, 9, x_1570); +lean_ctor_set(x_1585, 10, x_1572); +lean_ctor_set(x_1585, 11, x_1576); +lean_ctor_set(x_1585, 12, x_1578); +lean_ctor_set(x_1585, 13, x_1580); +lean_ctor_set(x_1585, 14, x_1581); +lean_ctor_set(x_1585, 15, x_1582); +lean_ctor_set(x_1585, 16, x_1552); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17, x_1562); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 1, x_1563); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 2, x_1564); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 3, x_1565); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 4, x_1566); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 5, x_1567); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 6, x_1568); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 7, x_1569); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 8, x_1571); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 9, x_1573); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 10, x_1574); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 11, x_1575); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 12, x_1577); +lean_ctor_set_uint8(x_1585, sizeof(void*)*17 + 13, x_1579); +if (lean_is_scalar(x_1541)) { + x_1586 = lean_alloc_ctor(0, 2, 0); +} else { + x_1586 = x_1541; +} +lean_ctor_set(x_1586, 0, x_1584); +lean_ctor_set(x_1586, 1, x_1540); +if (lean_is_scalar(x_1538)) { + x_1587 = lean_alloc_ctor(0, 2, 0); +} else { + x_1587 = x_1538; +} +lean_ctor_set(x_1587, 0, x_1586); +lean_ctor_set(x_1587, 1, x_1585); +lean_ctor_set(x_1368, 0, x_1587); +x_1588 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1588, 0, x_1368); +lean_ctor_set(x_1588, 1, x_1536); +return x_1588; +} } } else { -lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; uint8_t x_1614; uint8_t x_1615; uint8_t x_1616; uint8_t x_1617; uint8_t x_1618; uint8_t x_1619; uint8_t x_1620; uint8_t x_1621; lean_object* x_1622; uint8_t x_1623; lean_object* x_1624; uint8_t x_1625; uint8_t x_1626; uint8_t x_1627; lean_object* x_1628; uint8_t x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; -x_1603 = lean_ctor_get(x_1563, 0); -x_1604 = lean_ctor_get(x_1563, 1); +lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; +x_1589 = lean_ctor_get(x_1368, 0); +lean_inc(x_1589); +lean_dec(x_1368); +x_1590 = lean_ctor_get(x_1589, 0); +lean_inc(x_1590); +x_1591 = lean_ctor_get(x_1367, 1); +lean_inc(x_1591); +if (lean_is_exclusive(x_1367)) { + lean_ctor_release(x_1367, 0); + lean_ctor_release(x_1367, 1); + x_1592 = x_1367; +} else { + lean_dec_ref(x_1367); + x_1592 = lean_box(0); +} +x_1593 = lean_ctor_get(x_1589, 1); +lean_inc(x_1593); +if (lean_is_exclusive(x_1589)) { + lean_ctor_release(x_1589, 0); + lean_ctor_release(x_1589, 1); + x_1594 = x_1589; +} else { + lean_dec_ref(x_1589); + x_1594 = lean_box(0); +} +x_1595 = lean_ctor_get(x_1590, 0); +lean_inc(x_1595); +x_1596 = lean_ctor_get(x_1590, 1); +lean_inc(x_1596); +if (lean_is_exclusive(x_1590)) { + lean_ctor_release(x_1590, 0); + lean_ctor_release(x_1590, 1); + x_1597 = x_1590; +} else { + lean_dec_ref(x_1590); + x_1597 = lean_box(0); +} +x_1598 = l_String_toNat_x3f(x_1595); +lean_dec(x_1595); +if (lean_obj_tag(x_1598) == 0) +{ +uint8_t x_1599; uint8_t x_1600; lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; +lean_dec(x_1597); +lean_dec(x_1596); +lean_dec(x_1594); +lean_dec(x_1593); +lean_dec(x_1592); +x_1599 = 1; +x_1600 = 0; +x_1601 = lean_box(1); +x_1602 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; +x_1603 = l_Lake_OutStream_logEntry(x_1601, x_1602, x_1599, x_1600, x_1591); +x_1604 = lean_ctor_get(x_1603, 1); lean_inc(x_1604); -lean_inc(x_1603); -lean_dec(x_1563); -x_1605 = lean_ctor_get(x_1564, 0); -lean_inc(x_1605); -x_1606 = lean_ctor_get(x_1564, 1); -lean_inc_ref(x_1606); -x_1607 = lean_ctor_get(x_1564, 2); -lean_inc_ref(x_1607); -x_1608 = lean_ctor_get(x_1564, 3); +if (lean_is_exclusive(x_1603)) { + lean_ctor_release(x_1603, 0); + lean_ctor_release(x_1603, 1); + x_1605 = x_1603; +} else { + lean_dec_ref(x_1603); + x_1605 = lean_box(0); +} +x_1606 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_1605)) { + x_1607 = lean_alloc_ctor(1, 2, 0); +} else { + x_1607 = x_1605; + lean_ctor_set_tag(x_1607, 1); +} +lean_ctor_set(x_1607, 0, x_1606); +lean_ctor_set(x_1607, 1, x_1604); +return x_1607; +} +else +{ +lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; uint8_t x_1618; uint8_t x_1619; uint8_t x_1620; uint8_t x_1621; uint8_t x_1622; uint8_t x_1623; uint8_t x_1624; uint8_t x_1625; lean_object* x_1626; uint8_t x_1627; lean_object* x_1628; uint8_t x_1629; uint8_t x_1630; uint8_t x_1631; lean_object* x_1632; uint8_t x_1633; lean_object* x_1634; uint8_t x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; +x_1608 = lean_ctor_get(x_1598, 0); lean_inc(x_1608); -x_1609 = lean_ctor_get(x_1564, 4); +lean_dec_ref(x_1598); +x_1609 = lean_ctor_get(x_1593, 0); lean_inc(x_1609); -x_1610 = lean_ctor_get(x_1564, 5); -lean_inc(x_1610); -x_1611 = lean_ctor_get(x_1564, 6); -lean_inc(x_1611); -x_1612 = lean_ctor_get(x_1564, 7); -lean_inc_ref(x_1612); -x_1613 = lean_ctor_get(x_1564, 8); +x_1610 = lean_ctor_get(x_1593, 1); +lean_inc_ref(x_1610); +x_1611 = lean_ctor_get(x_1593, 2); +lean_inc_ref(x_1611); +x_1612 = lean_ctor_get(x_1593, 3); +lean_inc(x_1612); +x_1613 = lean_ctor_get(x_1593, 4); lean_inc(x_1613); -x_1614 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15); -x_1615 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 1); -x_1616 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 2); -x_1617 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 3); -x_1618 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 4); -x_1619 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 5); -x_1620 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 6); -x_1621 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 7); -x_1622 = lean_ctor_get(x_1564, 9); -lean_inc(x_1622); -x_1623 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 8); -x_1624 = lean_ctor_get(x_1564, 10); -lean_inc(x_1624); -x_1625 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 9); -x_1626 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 10); -x_1627 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 11); -x_1628 = lean_ctor_get(x_1564, 11); +x_1614 = lean_ctor_get(x_1593, 5); +lean_inc(x_1614); +x_1615 = lean_ctor_get(x_1593, 6); +lean_inc(x_1615); +x_1616 = lean_ctor_get(x_1593, 7); +lean_inc_ref(x_1616); +x_1617 = lean_ctor_get(x_1593, 8); +lean_inc(x_1617); +x_1618 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17); +x_1619 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 1); +x_1620 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 2); +x_1621 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 3); +x_1622 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 4); +x_1623 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 5); +x_1624 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 6); +x_1625 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 7); +x_1626 = lean_ctor_get(x_1593, 9); +lean_inc(x_1626); +x_1627 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 8); +x_1628 = lean_ctor_get(x_1593, 10); lean_inc(x_1628); -x_1629 = lean_ctor_get_uint8(x_1564, sizeof(void*)*15 + 12); -x_1630 = lean_ctor_get(x_1564, 12); -lean_inc(x_1630); -x_1631 = lean_ctor_get(x_1564, 14); -lean_inc(x_1631); -if (lean_is_exclusive(x_1564)) { - lean_ctor_release(x_1564, 0); - lean_ctor_release(x_1564, 1); - lean_ctor_release(x_1564, 2); - lean_ctor_release(x_1564, 3); - lean_ctor_release(x_1564, 4); - lean_ctor_release(x_1564, 5); - lean_ctor_release(x_1564, 6); - lean_ctor_release(x_1564, 7); - lean_ctor_release(x_1564, 8); - lean_ctor_release(x_1564, 9); - lean_ctor_release(x_1564, 10); - lean_ctor_release(x_1564, 11); - lean_ctor_release(x_1564, 12); - lean_ctor_release(x_1564, 13); - lean_ctor_release(x_1564, 14); - x_1632 = x_1564; +x_1629 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 9); +x_1630 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 10); +x_1631 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 11); +x_1632 = lean_ctor_get(x_1593, 11); +lean_inc(x_1632); +x_1633 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 12); +x_1634 = lean_ctor_get(x_1593, 12); +lean_inc(x_1634); +x_1635 = lean_ctor_get_uint8(x_1593, sizeof(void*)*17 + 13); +x_1636 = lean_ctor_get(x_1593, 13); +lean_inc(x_1636); +x_1637 = lean_ctor_get(x_1593, 14); +lean_inc(x_1637); +x_1638 = lean_ctor_get(x_1593, 15); +lean_inc(x_1638); +if (lean_is_exclusive(x_1593)) { + lean_ctor_release(x_1593, 0); + lean_ctor_release(x_1593, 1); + lean_ctor_release(x_1593, 2); + lean_ctor_release(x_1593, 3); + lean_ctor_release(x_1593, 4); + lean_ctor_release(x_1593, 5); + lean_ctor_release(x_1593, 6); + lean_ctor_release(x_1593, 7); + lean_ctor_release(x_1593, 8); + lean_ctor_release(x_1593, 9); + lean_ctor_release(x_1593, 10); + lean_ctor_release(x_1593, 11); + lean_ctor_release(x_1593, 12); + lean_ctor_release(x_1593, 13); + lean_ctor_release(x_1593, 14); + lean_ctor_release(x_1593, 15); + lean_ctor_release(x_1593, 16); + x_1639 = x_1593; } else { - lean_dec_ref(x_1564); - x_1632 = lean_box(0); + lean_dec_ref(x_1593); + x_1639 = lean_box(0); } -x_1633 = lean_box(0); -x_1634 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1634, 0, x_1603); -if (lean_is_scalar(x_1632)) { - x_1635 = lean_alloc_ctor(0, 15, 13); +x_1640 = lean_box(0); +if (lean_is_scalar(x_1639)) { + x_1641 = lean_alloc_ctor(0, 17, 14); } else { - x_1635 = x_1632; + x_1641 = x_1639; +} +lean_ctor_set(x_1641, 0, x_1609); +lean_ctor_set(x_1641, 1, x_1610); +lean_ctor_set(x_1641, 2, x_1611); +lean_ctor_set(x_1641, 3, x_1612); +lean_ctor_set(x_1641, 4, x_1613); +lean_ctor_set(x_1641, 5, x_1614); +lean_ctor_set(x_1641, 6, x_1615); +lean_ctor_set(x_1641, 7, x_1616); +lean_ctor_set(x_1641, 8, x_1617); +lean_ctor_set(x_1641, 9, x_1626); +lean_ctor_set(x_1641, 10, x_1628); +lean_ctor_set(x_1641, 11, x_1632); +lean_ctor_set(x_1641, 12, x_1634); +lean_ctor_set(x_1641, 13, x_1636); +lean_ctor_set(x_1641, 14, x_1637); +lean_ctor_set(x_1641, 15, x_1638); +lean_ctor_set(x_1641, 16, x_1608); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17, x_1618); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 1, x_1619); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 2, x_1620); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 3, x_1621); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 4, x_1622); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 5, x_1623); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 6, x_1624); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 7, x_1625); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 8, x_1627); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 9, x_1629); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 10, x_1630); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 11, x_1631); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 12, x_1633); +lean_ctor_set_uint8(x_1641, sizeof(void*)*17 + 13, x_1635); +if (lean_is_scalar(x_1597)) { + x_1642 = lean_alloc_ctor(0, 2, 0); +} else { + x_1642 = x_1597; +} +lean_ctor_set(x_1642, 0, x_1640); +lean_ctor_set(x_1642, 1, x_1596); +if (lean_is_scalar(x_1594)) { + x_1643 = lean_alloc_ctor(0, 2, 0); +} else { + x_1643 = x_1594; +} +lean_ctor_set(x_1643, 0, x_1642); +lean_ctor_set(x_1643, 1, x_1641); +x_1644 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1644, 0, x_1643); +if (lean_is_scalar(x_1592)) { + x_1645 = lean_alloc_ctor(0, 2, 0); +} else { + x_1645 = x_1592; +} +lean_ctor_set(x_1645, 0, x_1644); +lean_ctor_set(x_1645, 1, x_1591); +return x_1645; +} +} } -lean_ctor_set(x_1635, 0, x_1605); -lean_ctor_set(x_1635, 1, x_1606); -lean_ctor_set(x_1635, 2, x_1607); -lean_ctor_set(x_1635, 3, x_1608); -lean_ctor_set(x_1635, 4, x_1609); -lean_ctor_set(x_1635, 5, x_1610); -lean_ctor_set(x_1635, 6, x_1611); -lean_ctor_set(x_1635, 7, x_1612); -lean_ctor_set(x_1635, 8, x_1613); -lean_ctor_set(x_1635, 9, x_1622); -lean_ctor_set(x_1635, 10, x_1624); -lean_ctor_set(x_1635, 11, x_1628); -lean_ctor_set(x_1635, 12, x_1630); -lean_ctor_set(x_1635, 13, x_1634); -lean_ctor_set(x_1635, 14, x_1631); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15, x_1614); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 1, x_1615); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 2, x_1616); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 3, x_1617); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 4, x_1618); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 5, x_1619); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 6, x_1620); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 7, x_1621); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 8, x_1623); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 9, x_1625); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 10, x_1626); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 11, x_1627); -lean_ctor_set_uint8(x_1635, sizeof(void*)*15 + 12, x_1629); -x_1636 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1636, 0, x_1633); -lean_ctor_set(x_1636, 1, x_1604); -lean_ctor_set(x_1560, 1, x_1635); -lean_ctor_set(x_1560, 0, x_1636); -return x_1547; } } else { -lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; lean_object* x_1651; uint8_t x_1652; uint8_t x_1653; uint8_t x_1654; uint8_t x_1655; uint8_t x_1656; uint8_t x_1657; uint8_t x_1658; uint8_t x_1659; lean_object* x_1660; uint8_t x_1661; lean_object* x_1662; uint8_t x_1663; uint8_t x_1664; uint8_t x_1665; lean_object* x_1666; uint8_t x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; -x_1637 = lean_ctor_get(x_1560, 0); -x_1638 = lean_ctor_get(x_1560, 1); -x_1639 = lean_ctor_get(x_1547, 1); -lean_inc(x_1639); -lean_dec(x_1547); -x_1640 = lean_ctor_get(x_1637, 0); -lean_inc(x_1640); -x_1641 = lean_ctor_get(x_1637, 1); -lean_inc(x_1641); -if (lean_is_exclusive(x_1637)) { - lean_ctor_release(x_1637, 0); - lean_ctor_release(x_1637, 1); - x_1642 = x_1637; -} else { - lean_dec_ref(x_1637); - x_1642 = lean_box(0); -} -x_1643 = lean_ctor_get(x_1638, 0); -lean_inc(x_1643); -x_1644 = lean_ctor_get(x_1638, 1); -lean_inc_ref(x_1644); -x_1645 = lean_ctor_get(x_1638, 2); -lean_inc_ref(x_1645); -x_1646 = lean_ctor_get(x_1638, 3); -lean_inc(x_1646); -x_1647 = lean_ctor_get(x_1638, 4); -lean_inc(x_1647); -x_1648 = lean_ctor_get(x_1638, 5); +lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; +lean_dec_ref(x_1); +x_1646 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39; +x_1647 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_45, x_1646, x_2, x_3, x_4); +x_1648 = lean_ctor_get(x_1647, 0); lean_inc(x_1648); -x_1649 = lean_ctor_get(x_1638, 6); -lean_inc(x_1649); -x_1650 = lean_ctor_get(x_1638, 7); -lean_inc_ref(x_1650); -x_1651 = lean_ctor_get(x_1638, 8); -lean_inc(x_1651); -x_1652 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15); -x_1653 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 1); -x_1654 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 2); -x_1655 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 3); -x_1656 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 4); -x_1657 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 5); -x_1658 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 6); -x_1659 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 7); -x_1660 = lean_ctor_get(x_1638, 9); -lean_inc(x_1660); -x_1661 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 8); -x_1662 = lean_ctor_get(x_1638, 10); -lean_inc(x_1662); -x_1663 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 9); -x_1664 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 10); -x_1665 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 11); -x_1666 = lean_ctor_get(x_1638, 11); -lean_inc(x_1666); -x_1667 = lean_ctor_get_uint8(x_1638, sizeof(void*)*15 + 12); -x_1668 = lean_ctor_get(x_1638, 12); -lean_inc(x_1668); -x_1669 = lean_ctor_get(x_1638, 14); -lean_inc(x_1669); -if (lean_is_exclusive(x_1638)) { - lean_ctor_release(x_1638, 0); - lean_ctor_release(x_1638, 1); - lean_ctor_release(x_1638, 2); - lean_ctor_release(x_1638, 3); - lean_ctor_release(x_1638, 4); - lean_ctor_release(x_1638, 5); - lean_ctor_release(x_1638, 6); - lean_ctor_release(x_1638, 7); - lean_ctor_release(x_1638, 8); - lean_ctor_release(x_1638, 9); - lean_ctor_release(x_1638, 10); - lean_ctor_release(x_1638, 11); - lean_ctor_release(x_1638, 12); - lean_ctor_release(x_1638, 13); - lean_ctor_release(x_1638, 14); - x_1670 = x_1638; -} else { - lean_dec_ref(x_1638); - x_1670 = lean_box(0); +if (lean_obj_tag(x_1648) == 0) +{ +uint8_t x_1649; +x_1649 = !lean_is_exclusive(x_1647); +if (x_1649 == 0) +{ +lean_object* x_1650; uint8_t x_1651; +x_1650 = lean_ctor_get(x_1647, 0); +lean_dec(x_1650); +x_1651 = !lean_is_exclusive(x_1648); +if (x_1651 == 0) +{ +return x_1647; } -x_1671 = lean_box(0); -x_1672 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1672, 0, x_1640); -if (lean_is_scalar(x_1670)) { - x_1673 = lean_alloc_ctor(0, 15, 13); -} else { - x_1673 = x_1670; -} -lean_ctor_set(x_1673, 0, x_1643); -lean_ctor_set(x_1673, 1, x_1644); -lean_ctor_set(x_1673, 2, x_1645); -lean_ctor_set(x_1673, 3, x_1646); -lean_ctor_set(x_1673, 4, x_1647); -lean_ctor_set(x_1673, 5, x_1648); -lean_ctor_set(x_1673, 6, x_1649); -lean_ctor_set(x_1673, 7, x_1650); -lean_ctor_set(x_1673, 8, x_1651); -lean_ctor_set(x_1673, 9, x_1660); -lean_ctor_set(x_1673, 10, x_1662); -lean_ctor_set(x_1673, 11, x_1666); -lean_ctor_set(x_1673, 12, x_1668); -lean_ctor_set(x_1673, 13, x_1672); -lean_ctor_set(x_1673, 14, x_1669); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15, x_1652); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 1, x_1653); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 2, x_1654); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 3, x_1655); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 4, x_1656); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 5, x_1657); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 6, x_1658); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 7, x_1659); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 8, x_1661); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 9, x_1663); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 10, x_1664); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 11, x_1665); -lean_ctor_set_uint8(x_1673, sizeof(void*)*15 + 12, x_1667); -if (lean_is_scalar(x_1642)) { - x_1674 = lean_alloc_ctor(0, 2, 0); -} else { - x_1674 = x_1642; -} -lean_ctor_set(x_1674, 0, x_1671); -lean_ctor_set(x_1674, 1, x_1641); -lean_ctor_set(x_1560, 1, x_1673); -lean_ctor_set(x_1560, 0, x_1674); -x_1675 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1675, 0, x_1548); -lean_ctor_set(x_1675, 1, x_1639); -return x_1675; +else +{ +lean_object* x_1652; lean_object* x_1653; +x_1652 = lean_ctor_get(x_1648, 0); +lean_inc(x_1652); +lean_dec(x_1648); +x_1653 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1653, 0, x_1652); +lean_ctor_set(x_1647, 0, x_1653); +return x_1647; } } else { -lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; uint8_t x_1692; uint8_t x_1693; uint8_t x_1694; uint8_t x_1695; uint8_t x_1696; uint8_t x_1697; uint8_t x_1698; uint8_t x_1699; lean_object* x_1700; uint8_t x_1701; lean_object* x_1702; uint8_t x_1703; uint8_t x_1704; uint8_t x_1705; lean_object* x_1706; uint8_t x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; -x_1676 = lean_ctor_get(x_1560, 0); -x_1677 = lean_ctor_get(x_1560, 1); +lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; +x_1654 = lean_ctor_get(x_1647, 1); +lean_inc(x_1654); +lean_dec(x_1647); +x_1655 = lean_ctor_get(x_1648, 0); +lean_inc(x_1655); +if (lean_is_exclusive(x_1648)) { + lean_ctor_release(x_1648, 0); + x_1656 = x_1648; +} else { + lean_dec_ref(x_1648); + x_1656 = lean_box(0); +} +if (lean_is_scalar(x_1656)) { + x_1657 = lean_alloc_ctor(0, 1, 0); +} else { + x_1657 = x_1656; +} +lean_ctor_set(x_1657, 0, x_1655); +x_1658 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1658, 0, x_1657); +lean_ctor_set(x_1658, 1, x_1654); +return x_1658; +} +} +else +{ +uint8_t x_1659; +x_1659 = !lean_is_exclusive(x_1648); +if (x_1659 == 0) +{ +lean_object* x_1660; uint8_t x_1661; +x_1660 = lean_ctor_get(x_1648, 0); +x_1661 = !lean_is_exclusive(x_1660); +if (x_1661 == 0) +{ +uint8_t x_1662; +x_1662 = !lean_is_exclusive(x_1647); +if (x_1662 == 0) +{ +lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; uint8_t x_1666; +x_1663 = lean_ctor_get(x_1660, 0); +x_1664 = lean_ctor_get(x_1660, 1); +x_1665 = lean_ctor_get(x_1647, 0); +lean_dec(x_1665); +x_1666 = !lean_is_exclusive(x_1663); +if (x_1666 == 0) +{ +uint8_t x_1667; +x_1667 = !lean_is_exclusive(x_1664); +if (x_1667 == 0) +{ +lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; +x_1668 = lean_ctor_get(x_1663, 0); +x_1669 = lean_ctor_get(x_1664, 15); +lean_dec(x_1669); +x_1670 = lean_box(0); +x_1671 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1671, 0, x_1668); +lean_ctor_set(x_1664, 15, x_1671); +lean_ctor_set(x_1663, 0, x_1670); +return x_1647; +} +else +{ +lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; uint8_t x_1682; uint8_t x_1683; uint8_t x_1684; uint8_t x_1685; uint8_t x_1686; uint8_t x_1687; uint8_t x_1688; uint8_t x_1689; lean_object* x_1690; uint8_t x_1691; lean_object* x_1692; uint8_t x_1693; uint8_t x_1694; uint8_t x_1695; lean_object* x_1696; uint8_t x_1697; lean_object* x_1698; uint8_t x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; +x_1672 = lean_ctor_get(x_1663, 0); +x_1673 = lean_ctor_get(x_1664, 0); +x_1674 = lean_ctor_get(x_1664, 1); +x_1675 = lean_ctor_get(x_1664, 2); +x_1676 = lean_ctor_get(x_1664, 3); +x_1677 = lean_ctor_get(x_1664, 4); +x_1678 = lean_ctor_get(x_1664, 5); +x_1679 = lean_ctor_get(x_1664, 6); +x_1680 = lean_ctor_get(x_1664, 7); +x_1681 = lean_ctor_get(x_1664, 8); +x_1682 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17); +x_1683 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 1); +x_1684 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 2); +x_1685 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 3); +x_1686 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 4); +x_1687 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 5); +x_1688 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 6); +x_1689 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 7); +x_1690 = lean_ctor_get(x_1664, 9); +x_1691 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 8); +x_1692 = lean_ctor_get(x_1664, 10); +x_1693 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 9); +x_1694 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 10); +x_1695 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 11); +x_1696 = lean_ctor_get(x_1664, 11); +x_1697 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 12); +x_1698 = lean_ctor_get(x_1664, 12); +x_1699 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 13); +x_1700 = lean_ctor_get(x_1664, 13); +x_1701 = lean_ctor_get(x_1664, 14); +x_1702 = lean_ctor_get(x_1664, 16); +lean_inc(x_1702); +lean_inc(x_1701); +lean_inc(x_1700); +lean_inc(x_1698); +lean_inc(x_1696); +lean_inc(x_1692); +lean_inc(x_1690); +lean_inc(x_1681); +lean_inc(x_1680); +lean_inc(x_1679); +lean_inc(x_1678); lean_inc(x_1677); lean_inc(x_1676); -lean_dec(x_1560); -x_1678 = lean_ctor_get(x_1547, 1); -lean_inc(x_1678); -if (lean_is_exclusive(x_1547)) { - lean_ctor_release(x_1547, 0); - lean_ctor_release(x_1547, 1); - x_1679 = x_1547; -} else { - lean_dec_ref(x_1547); - x_1679 = lean_box(0); +lean_inc(x_1675); +lean_inc(x_1674); +lean_inc(x_1673); +lean_dec(x_1664); +x_1703 = lean_box(0); +x_1704 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1704, 0, x_1672); +x_1705 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1705, 0, x_1673); +lean_ctor_set(x_1705, 1, x_1674); +lean_ctor_set(x_1705, 2, x_1675); +lean_ctor_set(x_1705, 3, x_1676); +lean_ctor_set(x_1705, 4, x_1677); +lean_ctor_set(x_1705, 5, x_1678); +lean_ctor_set(x_1705, 6, x_1679); +lean_ctor_set(x_1705, 7, x_1680); +lean_ctor_set(x_1705, 8, x_1681); +lean_ctor_set(x_1705, 9, x_1690); +lean_ctor_set(x_1705, 10, x_1692); +lean_ctor_set(x_1705, 11, x_1696); +lean_ctor_set(x_1705, 12, x_1698); +lean_ctor_set(x_1705, 13, x_1700); +lean_ctor_set(x_1705, 14, x_1701); +lean_ctor_set(x_1705, 15, x_1704); +lean_ctor_set(x_1705, 16, x_1702); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17, x_1682); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 1, x_1683); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 2, x_1684); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 3, x_1685); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 4, x_1686); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 5, x_1687); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 6, x_1688); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 7, x_1689); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 8, x_1691); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 9, x_1693); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 10, x_1694); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 11, x_1695); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 12, x_1697); +lean_ctor_set_uint8(x_1705, sizeof(void*)*17 + 13, x_1699); +lean_ctor_set(x_1663, 0, x_1703); +lean_ctor_set(x_1660, 1, x_1705); +return x_1647; } -x_1680 = lean_ctor_get(x_1676, 0); -lean_inc(x_1680); -x_1681 = lean_ctor_get(x_1676, 1); -lean_inc(x_1681); -if (lean_is_exclusive(x_1676)) { - lean_ctor_release(x_1676, 0); - lean_ctor_release(x_1676, 1); - x_1682 = x_1676; -} else { - lean_dec_ref(x_1676); - x_1682 = lean_box(0); } -x_1683 = lean_ctor_get(x_1677, 0); -lean_inc(x_1683); -x_1684 = lean_ctor_get(x_1677, 1); -lean_inc_ref(x_1684); -x_1685 = lean_ctor_get(x_1677, 2); -lean_inc_ref(x_1685); -x_1686 = lean_ctor_get(x_1677, 3); -lean_inc(x_1686); -x_1687 = lean_ctor_get(x_1677, 4); -lean_inc(x_1687); -x_1688 = lean_ctor_get(x_1677, 5); -lean_inc(x_1688); -x_1689 = lean_ctor_get(x_1677, 6); -lean_inc(x_1689); -x_1690 = lean_ctor_get(x_1677, 7); -lean_inc_ref(x_1690); -x_1691 = lean_ctor_get(x_1677, 8); -lean_inc(x_1691); -x_1692 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15); -x_1693 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 1); -x_1694 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 2); -x_1695 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 3); -x_1696 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 4); -x_1697 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 5); -x_1698 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 6); -x_1699 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 7); -x_1700 = lean_ctor_get(x_1677, 9); -lean_inc(x_1700); -x_1701 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 8); -x_1702 = lean_ctor_get(x_1677, 10); -lean_inc(x_1702); -x_1703 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 9); -x_1704 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 10); -x_1705 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 11); -x_1706 = lean_ctor_get(x_1677, 11); +else +{ +lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; uint8_t x_1717; uint8_t x_1718; uint8_t x_1719; uint8_t x_1720; uint8_t x_1721; uint8_t x_1722; uint8_t x_1723; uint8_t x_1724; lean_object* x_1725; uint8_t x_1726; lean_object* x_1727; uint8_t x_1728; uint8_t x_1729; uint8_t x_1730; lean_object* x_1731; uint8_t x_1732; lean_object* x_1733; uint8_t x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; +x_1706 = lean_ctor_get(x_1663, 0); +x_1707 = lean_ctor_get(x_1663, 1); +lean_inc(x_1707); lean_inc(x_1706); -x_1707 = lean_ctor_get_uint8(x_1677, sizeof(void*)*15 + 12); -x_1708 = lean_ctor_get(x_1677, 12); +lean_dec(x_1663); +x_1708 = lean_ctor_get(x_1664, 0); lean_inc(x_1708); -x_1709 = lean_ctor_get(x_1677, 14); -lean_inc(x_1709); -if (lean_is_exclusive(x_1677)) { - lean_ctor_release(x_1677, 0); - lean_ctor_release(x_1677, 1); - lean_ctor_release(x_1677, 2); - lean_ctor_release(x_1677, 3); - lean_ctor_release(x_1677, 4); - lean_ctor_release(x_1677, 5); - lean_ctor_release(x_1677, 6); - lean_ctor_release(x_1677, 7); - lean_ctor_release(x_1677, 8); - lean_ctor_release(x_1677, 9); - lean_ctor_release(x_1677, 10); - lean_ctor_release(x_1677, 11); - lean_ctor_release(x_1677, 12); - lean_ctor_release(x_1677, 13); - lean_ctor_release(x_1677, 14); - x_1710 = x_1677; -} else { - lean_dec_ref(x_1677); - x_1710 = lean_box(0); -} -x_1711 = lean_box(0); -x_1712 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1712, 0, x_1680); -if (lean_is_scalar(x_1710)) { - x_1713 = lean_alloc_ctor(0, 15, 13); -} else { - x_1713 = x_1710; -} -lean_ctor_set(x_1713, 0, x_1683); -lean_ctor_set(x_1713, 1, x_1684); -lean_ctor_set(x_1713, 2, x_1685); -lean_ctor_set(x_1713, 3, x_1686); -lean_ctor_set(x_1713, 4, x_1687); -lean_ctor_set(x_1713, 5, x_1688); -lean_ctor_set(x_1713, 6, x_1689); -lean_ctor_set(x_1713, 7, x_1690); -lean_ctor_set(x_1713, 8, x_1691); -lean_ctor_set(x_1713, 9, x_1700); -lean_ctor_set(x_1713, 10, x_1702); -lean_ctor_set(x_1713, 11, x_1706); -lean_ctor_set(x_1713, 12, x_1708); -lean_ctor_set(x_1713, 13, x_1712); -lean_ctor_set(x_1713, 14, x_1709); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15, x_1692); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 1, x_1693); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 2, x_1694); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 3, x_1695); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 4, x_1696); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 5, x_1697); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 6, x_1698); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 7, x_1699); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 8, x_1701); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 9, x_1703); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 10, x_1704); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 11, x_1705); -lean_ctor_set_uint8(x_1713, sizeof(void*)*15 + 12, x_1707); -if (lean_is_scalar(x_1682)) { - x_1714 = lean_alloc_ctor(0, 2, 0); -} else { - x_1714 = x_1682; -} -lean_ctor_set(x_1714, 0, x_1711); -lean_ctor_set(x_1714, 1, x_1681); -x_1715 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1715, 0, x_1714); -lean_ctor_set(x_1715, 1, x_1713); -lean_ctor_set(x_1548, 0, x_1715); -if (lean_is_scalar(x_1679)) { - x_1716 = lean_alloc_ctor(0, 2, 0); -} else { - x_1716 = x_1679; -} -lean_ctor_set(x_1716, 0, x_1548); -lean_ctor_set(x_1716, 1, x_1678); -return x_1716; -} -} -else -{ -lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; uint8_t x_1735; uint8_t x_1736; uint8_t x_1737; uint8_t x_1738; uint8_t x_1739; uint8_t x_1740; uint8_t x_1741; uint8_t x_1742; lean_object* x_1743; uint8_t x_1744; lean_object* x_1745; uint8_t x_1746; uint8_t x_1747; uint8_t x_1748; lean_object* x_1749; uint8_t x_1750; lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; -x_1717 = lean_ctor_get(x_1548, 0); -lean_inc(x_1717); -lean_dec(x_1548); -x_1718 = lean_ctor_get(x_1717, 0); -lean_inc(x_1718); -x_1719 = lean_ctor_get(x_1717, 1); -lean_inc(x_1719); -if (lean_is_exclusive(x_1717)) { - lean_ctor_release(x_1717, 0); - lean_ctor_release(x_1717, 1); - x_1720 = x_1717; -} else { - lean_dec_ref(x_1717); - x_1720 = lean_box(0); -} -x_1721 = lean_ctor_get(x_1547, 1); -lean_inc(x_1721); -if (lean_is_exclusive(x_1547)) { - lean_ctor_release(x_1547, 0); - lean_ctor_release(x_1547, 1); - x_1722 = x_1547; -} else { - lean_dec_ref(x_1547); - x_1722 = lean_box(0); -} -x_1723 = lean_ctor_get(x_1718, 0); -lean_inc(x_1723); -x_1724 = lean_ctor_get(x_1718, 1); -lean_inc(x_1724); -if (lean_is_exclusive(x_1718)) { - lean_ctor_release(x_1718, 0); - lean_ctor_release(x_1718, 1); - x_1725 = x_1718; -} else { - lean_dec_ref(x_1718); - x_1725 = lean_box(0); -} -x_1726 = lean_ctor_get(x_1719, 0); -lean_inc(x_1726); -x_1727 = lean_ctor_get(x_1719, 1); -lean_inc_ref(x_1727); -x_1728 = lean_ctor_get(x_1719, 2); -lean_inc_ref(x_1728); -x_1729 = lean_ctor_get(x_1719, 3); -lean_inc(x_1729); -x_1730 = lean_ctor_get(x_1719, 4); -lean_inc(x_1730); -x_1731 = lean_ctor_get(x_1719, 5); +x_1709 = lean_ctor_get(x_1664, 1); +lean_inc_ref(x_1709); +x_1710 = lean_ctor_get(x_1664, 2); +lean_inc_ref(x_1710); +x_1711 = lean_ctor_get(x_1664, 3); +lean_inc(x_1711); +x_1712 = lean_ctor_get(x_1664, 4); +lean_inc(x_1712); +x_1713 = lean_ctor_get(x_1664, 5); +lean_inc(x_1713); +x_1714 = lean_ctor_get(x_1664, 6); +lean_inc(x_1714); +x_1715 = lean_ctor_get(x_1664, 7); +lean_inc_ref(x_1715); +x_1716 = lean_ctor_get(x_1664, 8); +lean_inc(x_1716); +x_1717 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17); +x_1718 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 1); +x_1719 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 2); +x_1720 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 3); +x_1721 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 4); +x_1722 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 5); +x_1723 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 6); +x_1724 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 7); +x_1725 = lean_ctor_get(x_1664, 9); +lean_inc(x_1725); +x_1726 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 8); +x_1727 = lean_ctor_get(x_1664, 10); +lean_inc(x_1727); +x_1728 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 9); +x_1729 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 10); +x_1730 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 11); +x_1731 = lean_ctor_get(x_1664, 11); lean_inc(x_1731); -x_1732 = lean_ctor_get(x_1719, 6); -lean_inc(x_1732); -x_1733 = lean_ctor_get(x_1719, 7); -lean_inc_ref(x_1733); -x_1734 = lean_ctor_get(x_1719, 8); -lean_inc(x_1734); -x_1735 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15); -x_1736 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 1); -x_1737 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 2); -x_1738 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 3); -x_1739 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 4); -x_1740 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 5); -x_1741 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 6); -x_1742 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 7); -x_1743 = lean_ctor_get(x_1719, 9); -lean_inc(x_1743); -x_1744 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 8); -x_1745 = lean_ctor_get(x_1719, 10); +x_1732 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 12); +x_1733 = lean_ctor_get(x_1664, 12); +lean_inc(x_1733); +x_1734 = lean_ctor_get_uint8(x_1664, sizeof(void*)*17 + 13); +x_1735 = lean_ctor_get(x_1664, 13); +lean_inc(x_1735); +x_1736 = lean_ctor_get(x_1664, 14); +lean_inc(x_1736); +x_1737 = lean_ctor_get(x_1664, 16); +lean_inc(x_1737); +if (lean_is_exclusive(x_1664)) { + lean_ctor_release(x_1664, 0); + lean_ctor_release(x_1664, 1); + lean_ctor_release(x_1664, 2); + lean_ctor_release(x_1664, 3); + lean_ctor_release(x_1664, 4); + lean_ctor_release(x_1664, 5); + lean_ctor_release(x_1664, 6); + lean_ctor_release(x_1664, 7); + lean_ctor_release(x_1664, 8); + lean_ctor_release(x_1664, 9); + lean_ctor_release(x_1664, 10); + lean_ctor_release(x_1664, 11); + lean_ctor_release(x_1664, 12); + lean_ctor_release(x_1664, 13); + lean_ctor_release(x_1664, 14); + lean_ctor_release(x_1664, 15); + lean_ctor_release(x_1664, 16); + x_1738 = x_1664; +} else { + lean_dec_ref(x_1664); + x_1738 = lean_box(0); +} +x_1739 = lean_box(0); +x_1740 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1740, 0, x_1706); +if (lean_is_scalar(x_1738)) { + x_1741 = lean_alloc_ctor(0, 17, 14); +} else { + x_1741 = x_1738; +} +lean_ctor_set(x_1741, 0, x_1708); +lean_ctor_set(x_1741, 1, x_1709); +lean_ctor_set(x_1741, 2, x_1710); +lean_ctor_set(x_1741, 3, x_1711); +lean_ctor_set(x_1741, 4, x_1712); +lean_ctor_set(x_1741, 5, x_1713); +lean_ctor_set(x_1741, 6, x_1714); +lean_ctor_set(x_1741, 7, x_1715); +lean_ctor_set(x_1741, 8, x_1716); +lean_ctor_set(x_1741, 9, x_1725); +lean_ctor_set(x_1741, 10, x_1727); +lean_ctor_set(x_1741, 11, x_1731); +lean_ctor_set(x_1741, 12, x_1733); +lean_ctor_set(x_1741, 13, x_1735); +lean_ctor_set(x_1741, 14, x_1736); +lean_ctor_set(x_1741, 15, x_1740); +lean_ctor_set(x_1741, 16, x_1737); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17, x_1717); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 1, x_1718); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 2, x_1719); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 3, x_1720); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 4, x_1721); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 5, x_1722); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 6, x_1723); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 7, x_1724); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 8, x_1726); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 9, x_1728); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 10, x_1729); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 11, x_1730); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 12, x_1732); +lean_ctor_set_uint8(x_1741, sizeof(void*)*17 + 13, x_1734); +x_1742 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1742, 0, x_1739); +lean_ctor_set(x_1742, 1, x_1707); +lean_ctor_set(x_1660, 1, x_1741); +lean_ctor_set(x_1660, 0, x_1742); +return x_1647; +} +} +else +{ +lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; lean_object* x_1748; lean_object* x_1749; lean_object* x_1750; lean_object* x_1751; lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; uint8_t x_1758; uint8_t x_1759; uint8_t x_1760; uint8_t x_1761; uint8_t x_1762; uint8_t x_1763; uint8_t x_1764; uint8_t x_1765; lean_object* x_1766; uint8_t x_1767; lean_object* x_1768; uint8_t x_1769; uint8_t x_1770; uint8_t x_1771; lean_object* x_1772; uint8_t x_1773; lean_object* x_1774; uint8_t x_1775; lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; +x_1743 = lean_ctor_get(x_1660, 0); +x_1744 = lean_ctor_get(x_1660, 1); +x_1745 = lean_ctor_get(x_1647, 1); lean_inc(x_1745); -x_1746 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 9); -x_1747 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 10); -x_1748 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 11); -x_1749 = lean_ctor_get(x_1719, 11); +lean_dec(x_1647); +x_1746 = lean_ctor_get(x_1743, 0); +lean_inc(x_1746); +x_1747 = lean_ctor_get(x_1743, 1); +lean_inc(x_1747); +if (lean_is_exclusive(x_1743)) { + lean_ctor_release(x_1743, 0); + lean_ctor_release(x_1743, 1); + x_1748 = x_1743; +} else { + lean_dec_ref(x_1743); + x_1748 = lean_box(0); +} +x_1749 = lean_ctor_get(x_1744, 0); lean_inc(x_1749); -x_1750 = lean_ctor_get_uint8(x_1719, sizeof(void*)*15 + 12); -x_1751 = lean_ctor_get(x_1719, 12); -lean_inc(x_1751); -x_1752 = lean_ctor_get(x_1719, 14); +x_1750 = lean_ctor_get(x_1744, 1); +lean_inc_ref(x_1750); +x_1751 = lean_ctor_get(x_1744, 2); +lean_inc_ref(x_1751); +x_1752 = lean_ctor_get(x_1744, 3); lean_inc(x_1752); -if (lean_is_exclusive(x_1719)) { - lean_ctor_release(x_1719, 0); - lean_ctor_release(x_1719, 1); - lean_ctor_release(x_1719, 2); - lean_ctor_release(x_1719, 3); - lean_ctor_release(x_1719, 4); - lean_ctor_release(x_1719, 5); - lean_ctor_release(x_1719, 6); - lean_ctor_release(x_1719, 7); - lean_ctor_release(x_1719, 8); - lean_ctor_release(x_1719, 9); - lean_ctor_release(x_1719, 10); - lean_ctor_release(x_1719, 11); - lean_ctor_release(x_1719, 12); - lean_ctor_release(x_1719, 13); - lean_ctor_release(x_1719, 14); - x_1753 = x_1719; +x_1753 = lean_ctor_get(x_1744, 4); +lean_inc(x_1753); +x_1754 = lean_ctor_get(x_1744, 5); +lean_inc(x_1754); +x_1755 = lean_ctor_get(x_1744, 6); +lean_inc(x_1755); +x_1756 = lean_ctor_get(x_1744, 7); +lean_inc_ref(x_1756); +x_1757 = lean_ctor_get(x_1744, 8); +lean_inc(x_1757); +x_1758 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17); +x_1759 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 1); +x_1760 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 2); +x_1761 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 3); +x_1762 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 4); +x_1763 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 5); +x_1764 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 6); +x_1765 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 7); +x_1766 = lean_ctor_get(x_1744, 9); +lean_inc(x_1766); +x_1767 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 8); +x_1768 = lean_ctor_get(x_1744, 10); +lean_inc(x_1768); +x_1769 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 9); +x_1770 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 10); +x_1771 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 11); +x_1772 = lean_ctor_get(x_1744, 11); +lean_inc(x_1772); +x_1773 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 12); +x_1774 = lean_ctor_get(x_1744, 12); +lean_inc(x_1774); +x_1775 = lean_ctor_get_uint8(x_1744, sizeof(void*)*17 + 13); +x_1776 = lean_ctor_get(x_1744, 13); +lean_inc(x_1776); +x_1777 = lean_ctor_get(x_1744, 14); +lean_inc(x_1777); +x_1778 = lean_ctor_get(x_1744, 16); +lean_inc(x_1778); +if (lean_is_exclusive(x_1744)) { + lean_ctor_release(x_1744, 0); + lean_ctor_release(x_1744, 1); + lean_ctor_release(x_1744, 2); + lean_ctor_release(x_1744, 3); + lean_ctor_release(x_1744, 4); + lean_ctor_release(x_1744, 5); + lean_ctor_release(x_1744, 6); + lean_ctor_release(x_1744, 7); + lean_ctor_release(x_1744, 8); + lean_ctor_release(x_1744, 9); + lean_ctor_release(x_1744, 10); + lean_ctor_release(x_1744, 11); + lean_ctor_release(x_1744, 12); + lean_ctor_release(x_1744, 13); + lean_ctor_release(x_1744, 14); + lean_ctor_release(x_1744, 15); + lean_ctor_release(x_1744, 16); + x_1779 = x_1744; } else { - lean_dec_ref(x_1719); - x_1753 = lean_box(0); + lean_dec_ref(x_1744); + x_1779 = lean_box(0); } -x_1754 = lean_box(0); -x_1755 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1755, 0, x_1723); -if (lean_is_scalar(x_1753)) { - x_1756 = lean_alloc_ctor(0, 15, 13); +x_1780 = lean_box(0); +x_1781 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1781, 0, x_1746); +if (lean_is_scalar(x_1779)) { + x_1782 = lean_alloc_ctor(0, 17, 14); } else { - x_1756 = x_1753; + x_1782 = x_1779; } -lean_ctor_set(x_1756, 0, x_1726); -lean_ctor_set(x_1756, 1, x_1727); -lean_ctor_set(x_1756, 2, x_1728); -lean_ctor_set(x_1756, 3, x_1729); -lean_ctor_set(x_1756, 4, x_1730); -lean_ctor_set(x_1756, 5, x_1731); -lean_ctor_set(x_1756, 6, x_1732); -lean_ctor_set(x_1756, 7, x_1733); -lean_ctor_set(x_1756, 8, x_1734); -lean_ctor_set(x_1756, 9, x_1743); -lean_ctor_set(x_1756, 10, x_1745); -lean_ctor_set(x_1756, 11, x_1749); -lean_ctor_set(x_1756, 12, x_1751); -lean_ctor_set(x_1756, 13, x_1755); -lean_ctor_set(x_1756, 14, x_1752); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15, x_1735); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 1, x_1736); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 2, x_1737); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 3, x_1738); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 4, x_1739); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 5, x_1740); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 6, x_1741); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 7, x_1742); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 8, x_1744); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 9, x_1746); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 10, x_1747); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 11, x_1748); -lean_ctor_set_uint8(x_1756, sizeof(void*)*15 + 12, x_1750); -if (lean_is_scalar(x_1725)) { - x_1757 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1782, 0, x_1749); +lean_ctor_set(x_1782, 1, x_1750); +lean_ctor_set(x_1782, 2, x_1751); +lean_ctor_set(x_1782, 3, x_1752); +lean_ctor_set(x_1782, 4, x_1753); +lean_ctor_set(x_1782, 5, x_1754); +lean_ctor_set(x_1782, 6, x_1755); +lean_ctor_set(x_1782, 7, x_1756); +lean_ctor_set(x_1782, 8, x_1757); +lean_ctor_set(x_1782, 9, x_1766); +lean_ctor_set(x_1782, 10, x_1768); +lean_ctor_set(x_1782, 11, x_1772); +lean_ctor_set(x_1782, 12, x_1774); +lean_ctor_set(x_1782, 13, x_1776); +lean_ctor_set(x_1782, 14, x_1777); +lean_ctor_set(x_1782, 15, x_1781); +lean_ctor_set(x_1782, 16, x_1778); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17, x_1758); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 1, x_1759); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 2, x_1760); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 3, x_1761); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 4, x_1762); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 5, x_1763); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 6, x_1764); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 7, x_1765); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 8, x_1767); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 9, x_1769); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 10, x_1770); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 11, x_1771); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 12, x_1773); +lean_ctor_set_uint8(x_1782, sizeof(void*)*17 + 13, x_1775); +if (lean_is_scalar(x_1748)) { + x_1783 = lean_alloc_ctor(0, 2, 0); } else { - x_1757 = x_1725; -} -lean_ctor_set(x_1757, 0, x_1754); -lean_ctor_set(x_1757, 1, x_1724); -if (lean_is_scalar(x_1720)) { - x_1758 = lean_alloc_ctor(0, 2, 0); -} else { - x_1758 = x_1720; -} -lean_ctor_set(x_1758, 0, x_1757); -lean_ctor_set(x_1758, 1, x_1756); -x_1759 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1759, 0, x_1758); -if (lean_is_scalar(x_1722)) { - x_1760 = lean_alloc_ctor(0, 2, 0); -} else { - x_1760 = x_1722; -} -lean_ctor_set(x_1760, 0, x_1759); -lean_ctor_set(x_1760, 1, x_1721); -return x_1760; -} + x_1783 = x_1748; } +lean_ctor_set(x_1783, 0, x_1780); +lean_ctor_set(x_1783, 1, x_1747); +lean_ctor_set(x_1660, 1, x_1782); +lean_ctor_set(x_1660, 0, x_1783); +x_1784 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1784, 0, x_1648); +lean_ctor_set(x_1784, 1, x_1745); +return x_1784; } } else { -lean_object* x_1761; lean_object* x_1762; lean_object* x_1763; -lean_dec_ref(x_1); -x_1761 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38; -x_1762 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_39, x_1761, x_2, x_3, x_4); -x_1763 = lean_ctor_get(x_1762, 0); -lean_inc(x_1763); -if (lean_obj_tag(x_1763) == 0) -{ -uint8_t x_1764; -x_1764 = !lean_is_exclusive(x_1762); -if (x_1764 == 0) -{ -lean_object* x_1765; uint8_t x_1766; -x_1765 = lean_ctor_get(x_1762, 0); -lean_dec(x_1765); -x_1766 = !lean_is_exclusive(x_1763); -if (x_1766 == 0) -{ -return x_1762; -} -else -{ -lean_object* x_1767; lean_object* x_1768; -x_1767 = lean_ctor_get(x_1763, 0); -lean_inc(x_1767); -lean_dec(x_1763); -x_1768 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1768, 0, x_1767); -lean_ctor_set(x_1762, 0, x_1768); -return x_1762; -} -} -else -{ -lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; -x_1769 = lean_ctor_get(x_1762, 1); -lean_inc(x_1769); -lean_dec(x_1762); -x_1770 = lean_ctor_get(x_1763, 0); -lean_inc(x_1770); -if (lean_is_exclusive(x_1763)) { - lean_ctor_release(x_1763, 0); - x_1771 = x_1763; +lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; uint8_t x_1801; uint8_t x_1802; uint8_t x_1803; uint8_t x_1804; uint8_t x_1805; uint8_t x_1806; uint8_t x_1807; uint8_t x_1808; lean_object* x_1809; uint8_t x_1810; lean_object* x_1811; uint8_t x_1812; uint8_t x_1813; uint8_t x_1814; lean_object* x_1815; uint8_t x_1816; lean_object* x_1817; uint8_t x_1818; lean_object* x_1819; lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; +x_1785 = lean_ctor_get(x_1660, 0); +x_1786 = lean_ctor_get(x_1660, 1); +lean_inc(x_1786); +lean_inc(x_1785); +lean_dec(x_1660); +x_1787 = lean_ctor_get(x_1647, 1); +lean_inc(x_1787); +if (lean_is_exclusive(x_1647)) { + lean_ctor_release(x_1647, 0); + lean_ctor_release(x_1647, 1); + x_1788 = x_1647; } else { - lean_dec_ref(x_1763); - x_1771 = lean_box(0); + lean_dec_ref(x_1647); + x_1788 = lean_box(0); } -if (lean_is_scalar(x_1771)) { - x_1772 = lean_alloc_ctor(0, 1, 0); -} else { - x_1772 = x_1771; -} -lean_ctor_set(x_1772, 0, x_1770); -x_1773 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1773, 0, x_1772); -lean_ctor_set(x_1773, 1, x_1769); -return x_1773; -} -} -else -{ -uint8_t x_1774; -x_1774 = !lean_is_exclusive(x_1763); -if (x_1774 == 0) -{ -lean_object* x_1775; uint8_t x_1776; -x_1775 = lean_ctor_get(x_1763, 0); -x_1776 = !lean_is_exclusive(x_1775); -if (x_1776 == 0) -{ -uint8_t x_1777; -x_1777 = !lean_is_exclusive(x_1762); -if (x_1777 == 0) -{ -lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; uint8_t x_1781; -x_1778 = lean_ctor_get(x_1775, 0); -x_1779 = lean_ctor_get(x_1775, 1); -x_1780 = lean_ctor_get(x_1762, 0); -lean_dec(x_1780); -x_1781 = !lean_is_exclusive(x_1778); -if (x_1781 == 0) -{ -uint8_t x_1782; -x_1782 = !lean_is_exclusive(x_1779); -if (x_1782 == 0) -{ -lean_object* x_1783; lean_object* x_1784; lean_object* x_1785; lean_object* x_1786; -x_1783 = lean_ctor_get(x_1778, 0); -x_1784 = lean_ctor_get(x_1779, 12); -lean_dec(x_1784); -x_1785 = lean_box(0); -x_1786 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1786, 0, x_1783); -lean_ctor_set(x_1779, 12, x_1786); -lean_ctor_set(x_1778, 0, x_1785); -return x_1762; -} -else -{ -lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; uint8_t x_1797; uint8_t x_1798; uint8_t x_1799; uint8_t x_1800; uint8_t x_1801; uint8_t x_1802; uint8_t x_1803; uint8_t x_1804; lean_object* x_1805; uint8_t x_1806; lean_object* x_1807; uint8_t x_1808; uint8_t x_1809; uint8_t x_1810; lean_object* x_1811; uint8_t x_1812; lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; lean_object* x_1817; -x_1787 = lean_ctor_get(x_1778, 0); -x_1788 = lean_ctor_get(x_1779, 0); -x_1789 = lean_ctor_get(x_1779, 1); -x_1790 = lean_ctor_get(x_1779, 2); -x_1791 = lean_ctor_get(x_1779, 3); -x_1792 = lean_ctor_get(x_1779, 4); -x_1793 = lean_ctor_get(x_1779, 5); -x_1794 = lean_ctor_get(x_1779, 6); -x_1795 = lean_ctor_get(x_1779, 7); -x_1796 = lean_ctor_get(x_1779, 8); -x_1797 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15); -x_1798 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 1); -x_1799 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 2); -x_1800 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 3); -x_1801 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 4); -x_1802 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 5); -x_1803 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 6); -x_1804 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 7); -x_1805 = lean_ctor_get(x_1779, 9); -x_1806 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 8); -x_1807 = lean_ctor_get(x_1779, 10); -x_1808 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 9); -x_1809 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 10); -x_1810 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 11); -x_1811 = lean_ctor_get(x_1779, 11); -x_1812 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 12); -x_1813 = lean_ctor_get(x_1779, 13); -x_1814 = lean_ctor_get(x_1779, 14); -lean_inc(x_1814); -lean_inc(x_1813); -lean_inc(x_1811); -lean_inc(x_1807); -lean_inc(x_1805); -lean_inc(x_1796); -lean_inc(x_1795); -lean_inc(x_1794); -lean_inc(x_1793); -lean_inc(x_1792); -lean_inc(x_1791); -lean_inc(x_1790); +x_1789 = lean_ctor_get(x_1785, 0); lean_inc(x_1789); -lean_inc(x_1788); -lean_dec(x_1779); -x_1815 = lean_box(0); -x_1816 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1816, 0, x_1787); -x_1817 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_1817, 0, x_1788); -lean_ctor_set(x_1817, 1, x_1789); -lean_ctor_set(x_1817, 2, x_1790); -lean_ctor_set(x_1817, 3, x_1791); -lean_ctor_set(x_1817, 4, x_1792); -lean_ctor_set(x_1817, 5, x_1793); -lean_ctor_set(x_1817, 6, x_1794); -lean_ctor_set(x_1817, 7, x_1795); -lean_ctor_set(x_1817, 8, x_1796); -lean_ctor_set(x_1817, 9, x_1805); -lean_ctor_set(x_1817, 10, x_1807); -lean_ctor_set(x_1817, 11, x_1811); -lean_ctor_set(x_1817, 12, x_1816); -lean_ctor_set(x_1817, 13, x_1813); -lean_ctor_set(x_1817, 14, x_1814); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15, x_1797); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 1, x_1798); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 2, x_1799); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 3, x_1800); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 4, x_1801); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 5, x_1802); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 6, x_1803); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 7, x_1804); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 8, x_1806); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 9, x_1808); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 10, x_1809); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 11, x_1810); -lean_ctor_set_uint8(x_1817, sizeof(void*)*15 + 12, x_1812); -lean_ctor_set(x_1778, 0, x_1815); -lean_ctor_set(x_1775, 1, x_1817); -return x_1762; +x_1790 = lean_ctor_get(x_1785, 1); +lean_inc(x_1790); +if (lean_is_exclusive(x_1785)) { + lean_ctor_release(x_1785, 0); + lean_ctor_release(x_1785, 1); + x_1791 = x_1785; +} else { + lean_dec_ref(x_1785); + x_1791 = lean_box(0); } -} -else -{ -lean_object* x_1818; lean_object* x_1819; lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; uint8_t x_1829; uint8_t x_1830; uint8_t x_1831; uint8_t x_1832; uint8_t x_1833; uint8_t x_1834; uint8_t x_1835; uint8_t x_1836; lean_object* x_1837; uint8_t x_1838; lean_object* x_1839; uint8_t x_1840; uint8_t x_1841; uint8_t x_1842; lean_object* x_1843; uint8_t x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; -x_1818 = lean_ctor_get(x_1778, 0); -x_1819 = lean_ctor_get(x_1778, 1); +x_1792 = lean_ctor_get(x_1786, 0); +lean_inc(x_1792); +x_1793 = lean_ctor_get(x_1786, 1); +lean_inc_ref(x_1793); +x_1794 = lean_ctor_get(x_1786, 2); +lean_inc_ref(x_1794); +x_1795 = lean_ctor_get(x_1786, 3); +lean_inc(x_1795); +x_1796 = lean_ctor_get(x_1786, 4); +lean_inc(x_1796); +x_1797 = lean_ctor_get(x_1786, 5); +lean_inc(x_1797); +x_1798 = lean_ctor_get(x_1786, 6); +lean_inc(x_1798); +x_1799 = lean_ctor_get(x_1786, 7); +lean_inc_ref(x_1799); +x_1800 = lean_ctor_get(x_1786, 8); +lean_inc(x_1800); +x_1801 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17); +x_1802 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 1); +x_1803 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 2); +x_1804 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 3); +x_1805 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 4); +x_1806 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 5); +x_1807 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 6); +x_1808 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 7); +x_1809 = lean_ctor_get(x_1786, 9); +lean_inc(x_1809); +x_1810 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 8); +x_1811 = lean_ctor_get(x_1786, 10); +lean_inc(x_1811); +x_1812 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 9); +x_1813 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 10); +x_1814 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 11); +x_1815 = lean_ctor_get(x_1786, 11); +lean_inc(x_1815); +x_1816 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 12); +x_1817 = lean_ctor_get(x_1786, 12); +lean_inc(x_1817); +x_1818 = lean_ctor_get_uint8(x_1786, sizeof(void*)*17 + 13); +x_1819 = lean_ctor_get(x_1786, 13); lean_inc(x_1819); -lean_inc(x_1818); -lean_dec(x_1778); -x_1820 = lean_ctor_get(x_1779, 0); +x_1820 = lean_ctor_get(x_1786, 14); lean_inc(x_1820); -x_1821 = lean_ctor_get(x_1779, 1); -lean_inc_ref(x_1821); -x_1822 = lean_ctor_get(x_1779, 2); -lean_inc_ref(x_1822); -x_1823 = lean_ctor_get(x_1779, 3); -lean_inc(x_1823); -x_1824 = lean_ctor_get(x_1779, 4); -lean_inc(x_1824); -x_1825 = lean_ctor_get(x_1779, 5); -lean_inc(x_1825); -x_1826 = lean_ctor_get(x_1779, 6); -lean_inc(x_1826); -x_1827 = lean_ctor_get(x_1779, 7); -lean_inc_ref(x_1827); -x_1828 = lean_ctor_get(x_1779, 8); -lean_inc(x_1828); -x_1829 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15); -x_1830 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 1); -x_1831 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 2); -x_1832 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 3); -x_1833 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 4); -x_1834 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 5); -x_1835 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 6); -x_1836 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 7); -x_1837 = lean_ctor_get(x_1779, 9); -lean_inc(x_1837); -x_1838 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 8); -x_1839 = lean_ctor_get(x_1779, 10); -lean_inc(x_1839); -x_1840 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 9); -x_1841 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 10); -x_1842 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 11); -x_1843 = lean_ctor_get(x_1779, 11); +x_1821 = lean_ctor_get(x_1786, 16); +lean_inc(x_1821); +if (lean_is_exclusive(x_1786)) { + lean_ctor_release(x_1786, 0); + lean_ctor_release(x_1786, 1); + lean_ctor_release(x_1786, 2); + lean_ctor_release(x_1786, 3); + lean_ctor_release(x_1786, 4); + lean_ctor_release(x_1786, 5); + lean_ctor_release(x_1786, 6); + lean_ctor_release(x_1786, 7); + lean_ctor_release(x_1786, 8); + lean_ctor_release(x_1786, 9); + lean_ctor_release(x_1786, 10); + lean_ctor_release(x_1786, 11); + lean_ctor_release(x_1786, 12); + lean_ctor_release(x_1786, 13); + lean_ctor_release(x_1786, 14); + lean_ctor_release(x_1786, 15); + lean_ctor_release(x_1786, 16); + x_1822 = x_1786; +} else { + lean_dec_ref(x_1786); + x_1822 = lean_box(0); +} +x_1823 = lean_box(0); +x_1824 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1824, 0, x_1789); +if (lean_is_scalar(x_1822)) { + x_1825 = lean_alloc_ctor(0, 17, 14); +} else { + x_1825 = x_1822; +} +lean_ctor_set(x_1825, 0, x_1792); +lean_ctor_set(x_1825, 1, x_1793); +lean_ctor_set(x_1825, 2, x_1794); +lean_ctor_set(x_1825, 3, x_1795); +lean_ctor_set(x_1825, 4, x_1796); +lean_ctor_set(x_1825, 5, x_1797); +lean_ctor_set(x_1825, 6, x_1798); +lean_ctor_set(x_1825, 7, x_1799); +lean_ctor_set(x_1825, 8, x_1800); +lean_ctor_set(x_1825, 9, x_1809); +lean_ctor_set(x_1825, 10, x_1811); +lean_ctor_set(x_1825, 11, x_1815); +lean_ctor_set(x_1825, 12, x_1817); +lean_ctor_set(x_1825, 13, x_1819); +lean_ctor_set(x_1825, 14, x_1820); +lean_ctor_set(x_1825, 15, x_1824); +lean_ctor_set(x_1825, 16, x_1821); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17, x_1801); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 1, x_1802); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 2, x_1803); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 3, x_1804); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 4, x_1805); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 5, x_1806); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 6, x_1807); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 7, x_1808); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 8, x_1810); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 9, x_1812); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 10, x_1813); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 11, x_1814); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 12, x_1816); +lean_ctor_set_uint8(x_1825, sizeof(void*)*17 + 13, x_1818); +if (lean_is_scalar(x_1791)) { + x_1826 = lean_alloc_ctor(0, 2, 0); +} else { + x_1826 = x_1791; +} +lean_ctor_set(x_1826, 0, x_1823); +lean_ctor_set(x_1826, 1, x_1790); +x_1827 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1827, 0, x_1826); +lean_ctor_set(x_1827, 1, x_1825); +lean_ctor_set(x_1648, 0, x_1827); +if (lean_is_scalar(x_1788)) { + x_1828 = lean_alloc_ctor(0, 2, 0); +} else { + x_1828 = x_1788; +} +lean_ctor_set(x_1828, 0, x_1648); +lean_ctor_set(x_1828, 1, x_1787); +return x_1828; +} +} +else +{ +lean_object* x_1829; lean_object* x_1830; lean_object* x_1831; lean_object* x_1832; lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; uint8_t x_1847; uint8_t x_1848; uint8_t x_1849; uint8_t x_1850; uint8_t x_1851; uint8_t x_1852; uint8_t x_1853; uint8_t x_1854; lean_object* x_1855; uint8_t x_1856; lean_object* x_1857; uint8_t x_1858; uint8_t x_1859; uint8_t x_1860; lean_object* x_1861; uint8_t x_1862; lean_object* x_1863; uint8_t x_1864; lean_object* x_1865; lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; +x_1829 = lean_ctor_get(x_1648, 0); +lean_inc(x_1829); +lean_dec(x_1648); +x_1830 = lean_ctor_get(x_1829, 0); +lean_inc(x_1830); +x_1831 = lean_ctor_get(x_1829, 1); +lean_inc(x_1831); +if (lean_is_exclusive(x_1829)) { + lean_ctor_release(x_1829, 0); + lean_ctor_release(x_1829, 1); + x_1832 = x_1829; +} else { + lean_dec_ref(x_1829); + x_1832 = lean_box(0); +} +x_1833 = lean_ctor_get(x_1647, 1); +lean_inc(x_1833); +if (lean_is_exclusive(x_1647)) { + lean_ctor_release(x_1647, 0); + lean_ctor_release(x_1647, 1); + x_1834 = x_1647; +} else { + lean_dec_ref(x_1647); + x_1834 = lean_box(0); +} +x_1835 = lean_ctor_get(x_1830, 0); +lean_inc(x_1835); +x_1836 = lean_ctor_get(x_1830, 1); +lean_inc(x_1836); +if (lean_is_exclusive(x_1830)) { + lean_ctor_release(x_1830, 0); + lean_ctor_release(x_1830, 1); + x_1837 = x_1830; +} else { + lean_dec_ref(x_1830); + x_1837 = lean_box(0); +} +x_1838 = lean_ctor_get(x_1831, 0); +lean_inc(x_1838); +x_1839 = lean_ctor_get(x_1831, 1); +lean_inc_ref(x_1839); +x_1840 = lean_ctor_get(x_1831, 2); +lean_inc_ref(x_1840); +x_1841 = lean_ctor_get(x_1831, 3); +lean_inc(x_1841); +x_1842 = lean_ctor_get(x_1831, 4); +lean_inc(x_1842); +x_1843 = lean_ctor_get(x_1831, 5); lean_inc(x_1843); -x_1844 = lean_ctor_get_uint8(x_1779, sizeof(void*)*15 + 12); -x_1845 = lean_ctor_get(x_1779, 13); -lean_inc(x_1845); -x_1846 = lean_ctor_get(x_1779, 14); +x_1844 = lean_ctor_get(x_1831, 6); +lean_inc(x_1844); +x_1845 = lean_ctor_get(x_1831, 7); +lean_inc_ref(x_1845); +x_1846 = lean_ctor_get(x_1831, 8); lean_inc(x_1846); -if (lean_is_exclusive(x_1779)) { - lean_ctor_release(x_1779, 0); - lean_ctor_release(x_1779, 1); - lean_ctor_release(x_1779, 2); - lean_ctor_release(x_1779, 3); - lean_ctor_release(x_1779, 4); - lean_ctor_release(x_1779, 5); - lean_ctor_release(x_1779, 6); - lean_ctor_release(x_1779, 7); - lean_ctor_release(x_1779, 8); - lean_ctor_release(x_1779, 9); - lean_ctor_release(x_1779, 10); - lean_ctor_release(x_1779, 11); - lean_ctor_release(x_1779, 12); - lean_ctor_release(x_1779, 13); - lean_ctor_release(x_1779, 14); - x_1847 = x_1779; -} else { - lean_dec_ref(x_1779); - x_1847 = lean_box(0); -} -x_1848 = lean_box(0); -x_1849 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1849, 0, x_1818); -if (lean_is_scalar(x_1847)) { - x_1850 = lean_alloc_ctor(0, 15, 13); -} else { - x_1850 = x_1847; -} -lean_ctor_set(x_1850, 0, x_1820); -lean_ctor_set(x_1850, 1, x_1821); -lean_ctor_set(x_1850, 2, x_1822); -lean_ctor_set(x_1850, 3, x_1823); -lean_ctor_set(x_1850, 4, x_1824); -lean_ctor_set(x_1850, 5, x_1825); -lean_ctor_set(x_1850, 6, x_1826); -lean_ctor_set(x_1850, 7, x_1827); -lean_ctor_set(x_1850, 8, x_1828); -lean_ctor_set(x_1850, 9, x_1837); -lean_ctor_set(x_1850, 10, x_1839); -lean_ctor_set(x_1850, 11, x_1843); -lean_ctor_set(x_1850, 12, x_1849); -lean_ctor_set(x_1850, 13, x_1845); -lean_ctor_set(x_1850, 14, x_1846); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15, x_1829); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 1, x_1830); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 2, x_1831); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 3, x_1832); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 4, x_1833); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 5, x_1834); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 6, x_1835); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 7, x_1836); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 8, x_1838); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 9, x_1840); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 10, x_1841); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 11, x_1842); -lean_ctor_set_uint8(x_1850, sizeof(void*)*15 + 12, x_1844); -x_1851 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1851, 0, x_1848); -lean_ctor_set(x_1851, 1, x_1819); -lean_ctor_set(x_1775, 1, x_1850); -lean_ctor_set(x_1775, 0, x_1851); -return x_1762; -} -} -else -{ -lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; lean_object* x_1861; lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; uint8_t x_1867; uint8_t x_1868; uint8_t x_1869; uint8_t x_1870; uint8_t x_1871; uint8_t x_1872; uint8_t x_1873; uint8_t x_1874; lean_object* x_1875; uint8_t x_1876; lean_object* x_1877; uint8_t x_1878; uint8_t x_1879; uint8_t x_1880; lean_object* x_1881; uint8_t x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; -x_1852 = lean_ctor_get(x_1775, 0); -x_1853 = lean_ctor_get(x_1775, 1); -x_1854 = lean_ctor_get(x_1762, 1); -lean_inc(x_1854); -lean_dec(x_1762); -x_1855 = lean_ctor_get(x_1852, 0); +x_1847 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17); +x_1848 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 1); +x_1849 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 2); +x_1850 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 3); +x_1851 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 4); +x_1852 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 5); +x_1853 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 6); +x_1854 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 7); +x_1855 = lean_ctor_get(x_1831, 9); lean_inc(x_1855); -x_1856 = lean_ctor_get(x_1852, 1); -lean_inc(x_1856); -if (lean_is_exclusive(x_1852)) { - lean_ctor_release(x_1852, 0); - lean_ctor_release(x_1852, 1); - x_1857 = x_1852; -} else { - lean_dec_ref(x_1852); - x_1857 = lean_box(0); -} -x_1858 = lean_ctor_get(x_1853, 0); -lean_inc(x_1858); -x_1859 = lean_ctor_get(x_1853, 1); -lean_inc_ref(x_1859); -x_1860 = lean_ctor_get(x_1853, 2); -lean_inc_ref(x_1860); -x_1861 = lean_ctor_get(x_1853, 3); +x_1856 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 8); +x_1857 = lean_ctor_get(x_1831, 10); +lean_inc(x_1857); +x_1858 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 9); +x_1859 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 10); +x_1860 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 11); +x_1861 = lean_ctor_get(x_1831, 11); lean_inc(x_1861); -x_1862 = lean_ctor_get(x_1853, 4); -lean_inc(x_1862); -x_1863 = lean_ctor_get(x_1853, 5); +x_1862 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 12); +x_1863 = lean_ctor_get(x_1831, 12); lean_inc(x_1863); -x_1864 = lean_ctor_get(x_1853, 6); -lean_inc(x_1864); -x_1865 = lean_ctor_get(x_1853, 7); -lean_inc_ref(x_1865); -x_1866 = lean_ctor_get(x_1853, 8); +x_1864 = lean_ctor_get_uint8(x_1831, sizeof(void*)*17 + 13); +x_1865 = lean_ctor_get(x_1831, 13); +lean_inc(x_1865); +x_1866 = lean_ctor_get(x_1831, 14); lean_inc(x_1866); -x_1867 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15); -x_1868 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 1); -x_1869 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 2); -x_1870 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 3); -x_1871 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 4); -x_1872 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 5); -x_1873 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 6); -x_1874 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 7); -x_1875 = lean_ctor_get(x_1853, 9); -lean_inc(x_1875); -x_1876 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 8); -x_1877 = lean_ctor_get(x_1853, 10); -lean_inc(x_1877); -x_1878 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 9); -x_1879 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 10); -x_1880 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 11); -x_1881 = lean_ctor_get(x_1853, 11); -lean_inc(x_1881); -x_1882 = lean_ctor_get_uint8(x_1853, sizeof(void*)*15 + 12); -x_1883 = lean_ctor_get(x_1853, 13); -lean_inc(x_1883); -x_1884 = lean_ctor_get(x_1853, 14); -lean_inc(x_1884); -if (lean_is_exclusive(x_1853)) { - lean_ctor_release(x_1853, 0); - lean_ctor_release(x_1853, 1); - lean_ctor_release(x_1853, 2); - lean_ctor_release(x_1853, 3); - lean_ctor_release(x_1853, 4); - lean_ctor_release(x_1853, 5); - lean_ctor_release(x_1853, 6); - lean_ctor_release(x_1853, 7); - lean_ctor_release(x_1853, 8); - lean_ctor_release(x_1853, 9); - lean_ctor_release(x_1853, 10); - lean_ctor_release(x_1853, 11); - lean_ctor_release(x_1853, 12); - lean_ctor_release(x_1853, 13); - lean_ctor_release(x_1853, 14); - x_1885 = x_1853; +x_1867 = lean_ctor_get(x_1831, 16); +lean_inc(x_1867); +if (lean_is_exclusive(x_1831)) { + lean_ctor_release(x_1831, 0); + lean_ctor_release(x_1831, 1); + lean_ctor_release(x_1831, 2); + lean_ctor_release(x_1831, 3); + lean_ctor_release(x_1831, 4); + lean_ctor_release(x_1831, 5); + lean_ctor_release(x_1831, 6); + lean_ctor_release(x_1831, 7); + lean_ctor_release(x_1831, 8); + lean_ctor_release(x_1831, 9); + lean_ctor_release(x_1831, 10); + lean_ctor_release(x_1831, 11); + lean_ctor_release(x_1831, 12); + lean_ctor_release(x_1831, 13); + lean_ctor_release(x_1831, 14); + lean_ctor_release(x_1831, 15); + lean_ctor_release(x_1831, 16); + x_1868 = x_1831; } else { - lean_dec_ref(x_1853); - x_1885 = lean_box(0); + lean_dec_ref(x_1831); + x_1868 = lean_box(0); } -x_1886 = lean_box(0); -x_1887 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1887, 0, x_1855); -if (lean_is_scalar(x_1885)) { - x_1888 = lean_alloc_ctor(0, 15, 13); +x_1869 = lean_box(0); +x_1870 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1870, 0, x_1835); +if (lean_is_scalar(x_1868)) { + x_1871 = lean_alloc_ctor(0, 17, 14); } else { - x_1888 = x_1885; + x_1871 = x_1868; } -lean_ctor_set(x_1888, 0, x_1858); -lean_ctor_set(x_1888, 1, x_1859); -lean_ctor_set(x_1888, 2, x_1860); -lean_ctor_set(x_1888, 3, x_1861); -lean_ctor_set(x_1888, 4, x_1862); -lean_ctor_set(x_1888, 5, x_1863); -lean_ctor_set(x_1888, 6, x_1864); -lean_ctor_set(x_1888, 7, x_1865); -lean_ctor_set(x_1888, 8, x_1866); -lean_ctor_set(x_1888, 9, x_1875); -lean_ctor_set(x_1888, 10, x_1877); -lean_ctor_set(x_1888, 11, x_1881); -lean_ctor_set(x_1888, 12, x_1887); -lean_ctor_set(x_1888, 13, x_1883); -lean_ctor_set(x_1888, 14, x_1884); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15, x_1867); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 1, x_1868); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 2, x_1869); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 3, x_1870); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 4, x_1871); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 5, x_1872); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 6, x_1873); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 7, x_1874); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 8, x_1876); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 9, x_1878); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 10, x_1879); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 11, x_1880); -lean_ctor_set_uint8(x_1888, sizeof(void*)*15 + 12, x_1882); -if (lean_is_scalar(x_1857)) { - x_1889 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1871, 0, x_1838); +lean_ctor_set(x_1871, 1, x_1839); +lean_ctor_set(x_1871, 2, x_1840); +lean_ctor_set(x_1871, 3, x_1841); +lean_ctor_set(x_1871, 4, x_1842); +lean_ctor_set(x_1871, 5, x_1843); +lean_ctor_set(x_1871, 6, x_1844); +lean_ctor_set(x_1871, 7, x_1845); +lean_ctor_set(x_1871, 8, x_1846); +lean_ctor_set(x_1871, 9, x_1855); +lean_ctor_set(x_1871, 10, x_1857); +lean_ctor_set(x_1871, 11, x_1861); +lean_ctor_set(x_1871, 12, x_1863); +lean_ctor_set(x_1871, 13, x_1865); +lean_ctor_set(x_1871, 14, x_1866); +lean_ctor_set(x_1871, 15, x_1870); +lean_ctor_set(x_1871, 16, x_1867); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17, x_1847); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 1, x_1848); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 2, x_1849); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 3, x_1850); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 4, x_1851); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 5, x_1852); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 6, x_1853); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 7, x_1854); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 8, x_1856); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 9, x_1858); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 10, x_1859); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 11, x_1860); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 12, x_1862); +lean_ctor_set_uint8(x_1871, sizeof(void*)*17 + 13, x_1864); +if (lean_is_scalar(x_1837)) { + x_1872 = lean_alloc_ctor(0, 2, 0); } else { - x_1889 = x_1857; + x_1872 = x_1837; +} +lean_ctor_set(x_1872, 0, x_1869); +lean_ctor_set(x_1872, 1, x_1836); +if (lean_is_scalar(x_1832)) { + x_1873 = lean_alloc_ctor(0, 2, 0); +} else { + x_1873 = x_1832; +} +lean_ctor_set(x_1873, 0, x_1872); +lean_ctor_set(x_1873, 1, x_1871); +x_1874 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1874, 0, x_1873); +if (lean_is_scalar(x_1834)) { + x_1875 = lean_alloc_ctor(0, 2, 0); +} else { + x_1875 = x_1834; +} +lean_ctor_set(x_1875, 0, x_1874); +lean_ctor_set(x_1875, 1, x_1833); +return x_1875; +} } -lean_ctor_set(x_1889, 0, x_1886); -lean_ctor_set(x_1889, 1, x_1856); -lean_ctor_set(x_1775, 1, x_1888); -lean_ctor_set(x_1775, 0, x_1889); -x_1890 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1890, 0, x_1763); -lean_ctor_set(x_1890, 1, x_1854); -return x_1890; } } else { -lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1900; lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; uint8_t x_1907; uint8_t x_1908; uint8_t x_1909; uint8_t x_1910; uint8_t x_1911; uint8_t x_1912; uint8_t x_1913; uint8_t x_1914; lean_object* x_1915; uint8_t x_1916; lean_object* x_1917; uint8_t x_1918; uint8_t x_1919; uint8_t x_1920; lean_object* x_1921; uint8_t x_1922; lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; -x_1891 = lean_ctor_get(x_1775, 0); -x_1892 = lean_ctor_get(x_1775, 1); -lean_inc(x_1892); -lean_inc(x_1891); -lean_dec(x_1775); -x_1893 = lean_ctor_get(x_1762, 1); -lean_inc(x_1893); -if (lean_is_exclusive(x_1762)) { - lean_ctor_release(x_1762, 0); - lean_ctor_release(x_1762, 1); - x_1894 = x_1762; -} else { - lean_dec_ref(x_1762); - x_1894 = lean_box(0); +lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; +lean_dec_ref(x_1); +x_1876 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40; +x_1877 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_43, x_1876, x_2, x_3, x_4); +x_1878 = lean_ctor_get(x_1877, 0); +lean_inc(x_1878); +if (lean_obj_tag(x_1878) == 0) +{ +uint8_t x_1879; +x_1879 = !lean_is_exclusive(x_1877); +if (x_1879 == 0) +{ +lean_object* x_1880; uint8_t x_1881; +x_1880 = lean_ctor_get(x_1877, 0); +lean_dec(x_1880); +x_1881 = !lean_is_exclusive(x_1878); +if (x_1881 == 0) +{ +return x_1877; } -x_1895 = lean_ctor_get(x_1891, 0); -lean_inc(x_1895); -x_1896 = lean_ctor_get(x_1891, 1); +else +{ +lean_object* x_1882; lean_object* x_1883; +x_1882 = lean_ctor_get(x_1878, 0); +lean_inc(x_1882); +lean_dec(x_1878); +x_1883 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1883, 0, x_1882); +lean_ctor_set(x_1877, 0, x_1883); +return x_1877; +} +} +else +{ +lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; +x_1884 = lean_ctor_get(x_1877, 1); +lean_inc(x_1884); +lean_dec(x_1877); +x_1885 = lean_ctor_get(x_1878, 0); +lean_inc(x_1885); +if (lean_is_exclusive(x_1878)) { + lean_ctor_release(x_1878, 0); + x_1886 = x_1878; +} else { + lean_dec_ref(x_1878); + x_1886 = lean_box(0); +} +if (lean_is_scalar(x_1886)) { + x_1887 = lean_alloc_ctor(0, 1, 0); +} else { + x_1887 = x_1886; +} +lean_ctor_set(x_1887, 0, x_1885); +x_1888 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1888, 0, x_1887); +lean_ctor_set(x_1888, 1, x_1884); +return x_1888; +} +} +else +{ +lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1960; lean_object* x_1961; uint8_t x_1962; +x_1889 = lean_ctor_get(x_1878, 0); +lean_inc(x_1889); +if (lean_is_exclusive(x_1878)) { + lean_ctor_release(x_1878, 0); + x_1890 = x_1878; +} else { + lean_dec_ref(x_1878); + x_1890 = lean_box(0); +} +x_1891 = lean_ctor_get(x_1889, 0); +lean_inc(x_1891); +x_1892 = lean_ctor_get(x_1877, 1); +lean_inc(x_1892); +if (lean_is_exclusive(x_1877)) { + lean_ctor_release(x_1877, 0); + lean_ctor_release(x_1877, 1); + x_1893 = x_1877; +} else { + lean_dec_ref(x_1877); + x_1893 = lean_box(0); +} +x_1894 = lean_ctor_get(x_1889, 1); +lean_inc(x_1894); +if (lean_is_exclusive(x_1889)) { + lean_ctor_release(x_1889, 0); + lean_ctor_release(x_1889, 1); + x_1895 = x_1889; +} else { + lean_dec_ref(x_1889); + x_1895 = lean_box(0); +} +x_1896 = lean_ctor_get(x_1891, 0); lean_inc(x_1896); +x_1897 = lean_ctor_get(x_1891, 1); +lean_inc(x_1897); if (lean_is_exclusive(x_1891)) { lean_ctor_release(x_1891, 0); lean_ctor_release(x_1891, 1); - x_1897 = x_1891; + x_1898 = x_1891; } else { lean_dec_ref(x_1891); - x_1897 = lean_box(0); -} -x_1898 = lean_ctor_get(x_1892, 0); -lean_inc(x_1898); -x_1899 = lean_ctor_get(x_1892, 1); -lean_inc_ref(x_1899); -x_1900 = lean_ctor_get(x_1892, 2); -lean_inc_ref(x_1900); -x_1901 = lean_ctor_get(x_1892, 3); -lean_inc(x_1901); -x_1902 = lean_ctor_get(x_1892, 4); -lean_inc(x_1902); -x_1903 = lean_ctor_get(x_1892, 5); -lean_inc(x_1903); -x_1904 = lean_ctor_get(x_1892, 6); -lean_inc(x_1904); -x_1905 = lean_ctor_get(x_1892, 7); -lean_inc_ref(x_1905); -x_1906 = lean_ctor_get(x_1892, 8); -lean_inc(x_1906); -x_1907 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15); -x_1908 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 1); -x_1909 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 2); -x_1910 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 3); -x_1911 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 4); -x_1912 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 5); -x_1913 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 6); -x_1914 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 7); -x_1915 = lean_ctor_get(x_1892, 9); -lean_inc(x_1915); -x_1916 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 8); -x_1917 = lean_ctor_get(x_1892, 10); -lean_inc(x_1917); -x_1918 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 9); -x_1919 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 10); -x_1920 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 11); -x_1921 = lean_ctor_get(x_1892, 11); -lean_inc(x_1921); -x_1922 = lean_ctor_get_uint8(x_1892, sizeof(void*)*15 + 12); -x_1923 = lean_ctor_get(x_1892, 13); -lean_inc(x_1923); -x_1924 = lean_ctor_get(x_1892, 14); -lean_inc(x_1924); -if (lean_is_exclusive(x_1892)) { - lean_ctor_release(x_1892, 0); - lean_ctor_release(x_1892, 1); - lean_ctor_release(x_1892, 2); - lean_ctor_release(x_1892, 3); - lean_ctor_release(x_1892, 4); - lean_ctor_release(x_1892, 5); - lean_ctor_release(x_1892, 6); - lean_ctor_release(x_1892, 7); - lean_ctor_release(x_1892, 8); - lean_ctor_release(x_1892, 9); - lean_ctor_release(x_1892, 10); - lean_ctor_release(x_1892, 11); - lean_ctor_release(x_1892, 12); - lean_ctor_release(x_1892, 13); - lean_ctor_release(x_1892, 14); - x_1925 = x_1892; -} else { - lean_dec_ref(x_1892); - x_1925 = lean_box(0); -} -x_1926 = lean_box(0); -x_1927 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1927, 0, x_1895); -if (lean_is_scalar(x_1925)) { - x_1928 = lean_alloc_ctor(0, 15, 13); -} else { - x_1928 = x_1925; -} -lean_ctor_set(x_1928, 0, x_1898); -lean_ctor_set(x_1928, 1, x_1899); -lean_ctor_set(x_1928, 2, x_1900); -lean_ctor_set(x_1928, 3, x_1901); -lean_ctor_set(x_1928, 4, x_1902); -lean_ctor_set(x_1928, 5, x_1903); -lean_ctor_set(x_1928, 6, x_1904); -lean_ctor_set(x_1928, 7, x_1905); -lean_ctor_set(x_1928, 8, x_1906); -lean_ctor_set(x_1928, 9, x_1915); -lean_ctor_set(x_1928, 10, x_1917); -lean_ctor_set(x_1928, 11, x_1921); -lean_ctor_set(x_1928, 12, x_1927); -lean_ctor_set(x_1928, 13, x_1923); -lean_ctor_set(x_1928, 14, x_1924); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15, x_1907); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 1, x_1908); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 2, x_1909); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 3, x_1910); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 4, x_1911); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 5, x_1912); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 6, x_1913); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 7, x_1914); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 8, x_1916); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 9, x_1918); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 10, x_1919); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 11, x_1920); -lean_ctor_set_uint8(x_1928, sizeof(void*)*15 + 12, x_1922); -if (lean_is_scalar(x_1897)) { - x_1929 = lean_alloc_ctor(0, 2, 0); -} else { - x_1929 = x_1897; -} -lean_ctor_set(x_1929, 0, x_1926); -lean_ctor_set(x_1929, 1, x_1896); -x_1930 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1930, 0, x_1929); -lean_ctor_set(x_1930, 1, x_1928); -lean_ctor_set(x_1763, 0, x_1930); -if (lean_is_scalar(x_1894)) { - x_1931 = lean_alloc_ctor(0, 2, 0); -} else { - x_1931 = x_1894; -} -lean_ctor_set(x_1931, 0, x_1763); -lean_ctor_set(x_1931, 1, x_1893); -return x_1931; + x_1898 = lean_box(0); } +x_1960 = lean_string_utf8_byte_size(x_1896); +x_1961 = lean_unsigned_to_nat(0u); +x_1962 = lean_nat_dec_eq(x_1960, x_1961); +lean_dec(x_1960); +if (x_1962 == 0) +{ +lean_object* x_1963; +x_1963 = l_Lake_normalizeToolchain(x_1896); +x_1899 = x_1963; +goto block_1959; } else { -lean_object* x_1932; lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; lean_object* x_1948; lean_object* x_1949; uint8_t x_1950; uint8_t x_1951; uint8_t x_1952; uint8_t x_1953; uint8_t x_1954; uint8_t x_1955; uint8_t x_1956; uint8_t x_1957; lean_object* x_1958; uint8_t x_1959; lean_object* x_1960; uint8_t x_1961; uint8_t x_1962; uint8_t x_1963; lean_object* x_1964; uint8_t x_1965; lean_object* x_1966; lean_object* x_1967; lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; -x_1932 = lean_ctor_get(x_1763, 0); -lean_inc(x_1932); -lean_dec(x_1763); -x_1933 = lean_ctor_get(x_1932, 0); -lean_inc(x_1933); -x_1934 = lean_ctor_get(x_1932, 1); -lean_inc(x_1934); -if (lean_is_exclusive(x_1932)) { - lean_ctor_release(x_1932, 0); - lean_ctor_release(x_1932, 1); - x_1935 = x_1932; -} else { - lean_dec_ref(x_1932); - x_1935 = lean_box(0); +x_1899 = x_1896; +goto block_1959; } -x_1936 = lean_ctor_get(x_1762, 1); -lean_inc(x_1936); -if (lean_is_exclusive(x_1762)) { - lean_ctor_release(x_1762, 0); - lean_ctor_release(x_1762, 1); - x_1937 = x_1762; +block_1959: +{ +lean_object* x_1900; lean_object* x_1901; uint8_t x_1902; +x_1900 = lean_unsigned_to_nat(256u); +x_1901 = lean_string_length(x_1899); +x_1902 = lean_nat_dec_lt(x_1900, x_1901); +lean_dec(x_1901); +if (x_1902 == 0) +{ +uint8_t x_1903; +x_1903 = !lean_is_exclusive(x_1894); +if (x_1903 == 0) +{ +lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; +x_1904 = lean_ctor_get(x_1894, 14); +lean_dec(x_1904); +x_1905 = lean_box(0); +x_1906 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1906, 0, x_1899); +lean_ctor_set(x_1894, 14, x_1906); +if (lean_is_scalar(x_1898)) { + x_1907 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1762); - x_1937 = lean_box(0); + x_1907 = x_1898; } -x_1938 = lean_ctor_get(x_1933, 0); -lean_inc(x_1938); -x_1939 = lean_ctor_get(x_1933, 1); +lean_ctor_set(x_1907, 0, x_1905); +lean_ctor_set(x_1907, 1, x_1897); +if (lean_is_scalar(x_1895)) { + x_1908 = lean_alloc_ctor(0, 2, 0); +} else { + x_1908 = x_1895; +} +lean_ctor_set(x_1908, 0, x_1907); +lean_ctor_set(x_1908, 1, x_1894); +if (lean_is_scalar(x_1890)) { + x_1909 = lean_alloc_ctor(1, 1, 0); +} else { + x_1909 = x_1890; +} +lean_ctor_set(x_1909, 0, x_1908); +if (lean_is_scalar(x_1893)) { + x_1910 = lean_alloc_ctor(0, 2, 0); +} else { + x_1910 = x_1893; +} +lean_ctor_set(x_1910, 0, x_1909); +lean_ctor_set(x_1910, 1, x_1892); +return x_1910; +} +else +{ +lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; uint8_t x_1920; uint8_t x_1921; uint8_t x_1922; uint8_t x_1923; uint8_t x_1924; uint8_t x_1925; uint8_t x_1926; uint8_t x_1927; lean_object* x_1928; uint8_t x_1929; lean_object* x_1930; uint8_t x_1931; uint8_t x_1932; uint8_t x_1933; lean_object* x_1934; uint8_t x_1935; lean_object* x_1936; uint8_t x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; +x_1911 = lean_ctor_get(x_1894, 0); +x_1912 = lean_ctor_get(x_1894, 1); +x_1913 = lean_ctor_get(x_1894, 2); +x_1914 = lean_ctor_get(x_1894, 3); +x_1915 = lean_ctor_get(x_1894, 4); +x_1916 = lean_ctor_get(x_1894, 5); +x_1917 = lean_ctor_get(x_1894, 6); +x_1918 = lean_ctor_get(x_1894, 7); +x_1919 = lean_ctor_get(x_1894, 8); +x_1920 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17); +x_1921 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 1); +x_1922 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 2); +x_1923 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 3); +x_1924 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 4); +x_1925 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 5); +x_1926 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 6); +x_1927 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 7); +x_1928 = lean_ctor_get(x_1894, 9); +x_1929 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 8); +x_1930 = lean_ctor_get(x_1894, 10); +x_1931 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 9); +x_1932 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 10); +x_1933 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 11); +x_1934 = lean_ctor_get(x_1894, 11); +x_1935 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 12); +x_1936 = lean_ctor_get(x_1894, 12); +x_1937 = lean_ctor_get_uint8(x_1894, sizeof(void*)*17 + 13); +x_1938 = lean_ctor_get(x_1894, 13); +x_1939 = lean_ctor_get(x_1894, 15); +x_1940 = lean_ctor_get(x_1894, 16); +lean_inc(x_1940); lean_inc(x_1939); -if (lean_is_exclusive(x_1933)) { - lean_ctor_release(x_1933, 0); - lean_ctor_release(x_1933, 1); - x_1940 = x_1933; +lean_inc(x_1938); +lean_inc(x_1936); +lean_inc(x_1934); +lean_inc(x_1930); +lean_inc(x_1928); +lean_inc(x_1919); +lean_inc(x_1918); +lean_inc(x_1917); +lean_inc(x_1916); +lean_inc(x_1915); +lean_inc(x_1914); +lean_inc(x_1913); +lean_inc(x_1912); +lean_inc(x_1911); +lean_dec(x_1894); +x_1941 = lean_box(0); +x_1942 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1942, 0, x_1899); +x_1943 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_1943, 0, x_1911); +lean_ctor_set(x_1943, 1, x_1912); +lean_ctor_set(x_1943, 2, x_1913); +lean_ctor_set(x_1943, 3, x_1914); +lean_ctor_set(x_1943, 4, x_1915); +lean_ctor_set(x_1943, 5, x_1916); +lean_ctor_set(x_1943, 6, x_1917); +lean_ctor_set(x_1943, 7, x_1918); +lean_ctor_set(x_1943, 8, x_1919); +lean_ctor_set(x_1943, 9, x_1928); +lean_ctor_set(x_1943, 10, x_1930); +lean_ctor_set(x_1943, 11, x_1934); +lean_ctor_set(x_1943, 12, x_1936); +lean_ctor_set(x_1943, 13, x_1938); +lean_ctor_set(x_1943, 14, x_1942); +lean_ctor_set(x_1943, 15, x_1939); +lean_ctor_set(x_1943, 16, x_1940); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17, x_1920); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 1, x_1921); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 2, x_1922); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 3, x_1923); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 4, x_1924); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 5, x_1925); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 6, x_1926); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 7, x_1927); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 8, x_1929); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 9, x_1931); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 10, x_1932); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 11, x_1933); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 12, x_1935); +lean_ctor_set_uint8(x_1943, sizeof(void*)*17 + 13, x_1937); +if (lean_is_scalar(x_1898)) { + x_1944 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1933); - x_1940 = lean_box(0); + x_1944 = x_1898; } -x_1941 = lean_ctor_get(x_1934, 0); -lean_inc(x_1941); -x_1942 = lean_ctor_get(x_1934, 1); -lean_inc_ref(x_1942); -x_1943 = lean_ctor_get(x_1934, 2); -lean_inc_ref(x_1943); -x_1944 = lean_ctor_get(x_1934, 3); -lean_inc(x_1944); -x_1945 = lean_ctor_get(x_1934, 4); -lean_inc(x_1945); -x_1946 = lean_ctor_get(x_1934, 5); -lean_inc(x_1946); -x_1947 = lean_ctor_get(x_1934, 6); -lean_inc(x_1947); -x_1948 = lean_ctor_get(x_1934, 7); -lean_inc_ref(x_1948); -x_1949 = lean_ctor_get(x_1934, 8); -lean_inc(x_1949); -x_1950 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15); -x_1951 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 1); -x_1952 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 2); -x_1953 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 3); -x_1954 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 4); -x_1955 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 5); -x_1956 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 6); -x_1957 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 7); -x_1958 = lean_ctor_get(x_1934, 9); -lean_inc(x_1958); -x_1959 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 8); -x_1960 = lean_ctor_get(x_1934, 10); -lean_inc(x_1960); -x_1961 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 9); -x_1962 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 10); -x_1963 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 11); -x_1964 = lean_ctor_get(x_1934, 11); -lean_inc(x_1964); -x_1965 = lean_ctor_get_uint8(x_1934, sizeof(void*)*15 + 12); -x_1966 = lean_ctor_get(x_1934, 13); -lean_inc(x_1966); -x_1967 = lean_ctor_get(x_1934, 14); -lean_inc(x_1967); -if (lean_is_exclusive(x_1934)) { - lean_ctor_release(x_1934, 0); - lean_ctor_release(x_1934, 1); - lean_ctor_release(x_1934, 2); - lean_ctor_release(x_1934, 3); - lean_ctor_release(x_1934, 4); - lean_ctor_release(x_1934, 5); - lean_ctor_release(x_1934, 6); - lean_ctor_release(x_1934, 7); - lean_ctor_release(x_1934, 8); - lean_ctor_release(x_1934, 9); - lean_ctor_release(x_1934, 10); - lean_ctor_release(x_1934, 11); - lean_ctor_release(x_1934, 12); - lean_ctor_release(x_1934, 13); - lean_ctor_release(x_1934, 14); - x_1968 = x_1934; +lean_ctor_set(x_1944, 0, x_1941); +lean_ctor_set(x_1944, 1, x_1897); +if (lean_is_scalar(x_1895)) { + x_1945 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_1934); - x_1968 = lean_box(0); + x_1945 = x_1895; } -x_1969 = lean_box(0); -x_1970 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1970, 0, x_1938); -if (lean_is_scalar(x_1968)) { - x_1971 = lean_alloc_ctor(0, 15, 13); +lean_ctor_set(x_1945, 0, x_1944); +lean_ctor_set(x_1945, 1, x_1943); +if (lean_is_scalar(x_1890)) { + x_1946 = lean_alloc_ctor(1, 1, 0); } else { - x_1971 = x_1968; + x_1946 = x_1890; } -lean_ctor_set(x_1971, 0, x_1941); -lean_ctor_set(x_1971, 1, x_1942); -lean_ctor_set(x_1971, 2, x_1943); -lean_ctor_set(x_1971, 3, x_1944); -lean_ctor_set(x_1971, 4, x_1945); -lean_ctor_set(x_1971, 5, x_1946); -lean_ctor_set(x_1971, 6, x_1947); -lean_ctor_set(x_1971, 7, x_1948); -lean_ctor_set(x_1971, 8, x_1949); -lean_ctor_set(x_1971, 9, x_1958); -lean_ctor_set(x_1971, 10, x_1960); -lean_ctor_set(x_1971, 11, x_1964); -lean_ctor_set(x_1971, 12, x_1970); -lean_ctor_set(x_1971, 13, x_1966); -lean_ctor_set(x_1971, 14, x_1967); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15, x_1950); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 1, x_1951); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 2, x_1952); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 3, x_1953); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 4, x_1954); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 5, x_1955); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 6, x_1956); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 7, x_1957); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 8, x_1959); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 9, x_1961); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 10, x_1962); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 11, x_1963); -lean_ctor_set_uint8(x_1971, sizeof(void*)*15 + 12, x_1965); -if (lean_is_scalar(x_1940)) { - x_1972 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1946, 0, x_1945); +if (lean_is_scalar(x_1893)) { + x_1947 = lean_alloc_ctor(0, 2, 0); } else { - x_1972 = x_1940; + x_1947 = x_1893; } -lean_ctor_set(x_1972, 0, x_1969); -lean_ctor_set(x_1972, 1, x_1939); -if (lean_is_scalar(x_1935)) { - x_1973 = lean_alloc_ctor(0, 2, 0); -} else { - x_1973 = x_1935; +lean_ctor_set(x_1947, 0, x_1946); +lean_ctor_set(x_1947, 1, x_1892); +return x_1947; +} +} +else +{ +uint8_t x_1948; uint8_t x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; uint8_t x_1953; +lean_dec_ref(x_1899); +lean_dec(x_1898); +lean_dec(x_1897); +lean_dec(x_1895); +lean_dec(x_1894); +lean_dec(x_1893); +lean_dec(x_1890); +x_1948 = 1; +x_1949 = 0; +x_1950 = lean_box(1); +x_1951 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42; +x_1952 = l_Lake_OutStream_logEntry(x_1950, x_1951, x_1948, x_1949, x_1892); +x_1953 = !lean_is_exclusive(x_1952); +if (x_1953 == 0) +{ +lean_object* x_1954; lean_object* x_1955; +x_1954 = lean_ctor_get(x_1952, 0); +lean_dec(x_1954); +x_1955 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +lean_ctor_set_tag(x_1952, 1); +lean_ctor_set(x_1952, 0, x_1955); +return x_1952; +} +else +{ +lean_object* x_1956; lean_object* x_1957; lean_object* x_1958; +x_1956 = lean_ctor_get(x_1952, 1); +lean_inc(x_1956); +lean_dec(x_1952); +x_1957 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +x_1958 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1958, 0, x_1957); +lean_ctor_set(x_1958, 1, x_1956); +return x_1958; } -lean_ctor_set(x_1973, 0, x_1972); -lean_ctor_set(x_1973, 1, x_1971); -x_1974 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1974, 0, x_1973); -if (lean_is_scalar(x_1937)) { - x_1975 = lean_alloc_ctor(0, 2, 0); -} else { - x_1975 = x_1937; } -lean_ctor_set(x_1975, 0, x_1974); -lean_ctor_set(x_1975, 1, x_1936); -return x_1975; } } } } else { -lean_object* x_1976; lean_object* x_1977; lean_object* x_1978; +lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; lean_dec_ref(x_1); -x_1976 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39; -x_1977 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_37, x_1976, x_2, x_3, x_4); -x_1978 = lean_ctor_get(x_1977, 0); -lean_inc(x_1978); -if (lean_obj_tag(x_1978) == 0) +x_1964 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43; +x_1965 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_41, x_1964, x_2, x_3, x_4); +x_1966 = lean_ctor_get(x_1965, 0); +lean_inc(x_1966); +if (lean_obj_tag(x_1966) == 0) { -uint8_t x_1979; -x_1979 = !lean_is_exclusive(x_1977); -if (x_1979 == 0) +uint8_t x_1967; +x_1967 = !lean_is_exclusive(x_1965); +if (x_1967 == 0) { -lean_object* x_1980; uint8_t x_1981; -x_1980 = lean_ctor_get(x_1977, 0); -lean_dec(x_1980); -x_1981 = !lean_is_exclusive(x_1978); -if (x_1981 == 0) +lean_object* x_1968; uint8_t x_1969; +x_1968 = lean_ctor_get(x_1965, 0); +lean_dec(x_1968); +x_1969 = !lean_is_exclusive(x_1966); +if (x_1969 == 0) { -return x_1977; +return x_1965; } else { -lean_object* x_1982; lean_object* x_1983; -x_1982 = lean_ctor_get(x_1978, 0); -lean_inc(x_1982); -lean_dec(x_1978); -x_1983 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1983, 0, x_1982); -lean_ctor_set(x_1977, 0, x_1983); -return x_1977; +lean_object* x_1970; lean_object* x_1971; +x_1970 = lean_ctor_get(x_1966, 0); +lean_inc(x_1970); +lean_dec(x_1966); +x_1971 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1971, 0, x_1970); +lean_ctor_set(x_1965, 0, x_1971); +return x_1965; } } else { -lean_object* x_1984; lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; lean_object* x_1988; -x_1984 = lean_ctor_get(x_1977, 1); -lean_inc(x_1984); -lean_dec(x_1977); +lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; lean_object* x_1976; +x_1972 = lean_ctor_get(x_1965, 1); +lean_inc(x_1972); +lean_dec(x_1965); +x_1973 = lean_ctor_get(x_1966, 0); +lean_inc(x_1973); +if (lean_is_exclusive(x_1966)) { + lean_ctor_release(x_1966, 0); + x_1974 = x_1966; +} else { + lean_dec_ref(x_1966); + x_1974 = lean_box(0); +} +if (lean_is_scalar(x_1974)) { + x_1975 = lean_alloc_ctor(0, 1, 0); +} else { + x_1975 = x_1974; +} +lean_ctor_set(x_1975, 0, x_1973); +x_1976 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1976, 0, x_1975); +lean_ctor_set(x_1976, 1, x_1972); +return x_1976; +} +} +else +{ +uint8_t x_1977; +x_1977 = !lean_is_exclusive(x_1966); +if (x_1977 == 0) +{ +lean_object* x_1978; lean_object* x_1979; uint8_t x_1980; +x_1978 = lean_ctor_get(x_1966, 0); +x_1979 = lean_ctor_get(x_1978, 0); +lean_inc(x_1979); +x_1980 = !lean_is_exclusive(x_1965); +if (x_1980 == 0) +{ +lean_object* x_1981; lean_object* x_1982; uint8_t x_1983; +x_1981 = lean_ctor_get(x_1965, 1); +x_1982 = lean_ctor_get(x_1965, 0); +lean_dec(x_1982); +x_1983 = !lean_is_exclusive(x_1978); +if (x_1983 == 0) +{ +lean_object* x_1984; lean_object* x_1985; uint8_t x_1986; +x_1984 = lean_ctor_get(x_1978, 1); x_1985 = lean_ctor_get(x_1978, 0); -lean_inc(x_1985); -if (lean_is_exclusive(x_1978)) { - lean_ctor_release(x_1978, 0); - x_1986 = x_1978; -} else { - lean_dec_ref(x_1978); - x_1986 = lean_box(0); -} -if (lean_is_scalar(x_1986)) { - x_1987 = lean_alloc_ctor(0, 1, 0); -} else { - x_1987 = x_1986; -} -lean_ctor_set(x_1987, 0, x_1985); -x_1988 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1988, 0, x_1987); -lean_ctor_set(x_1988, 1, x_1984); -return x_1988; -} -} -else +lean_dec(x_1985); +x_1986 = !lean_is_exclusive(x_1979); +if (x_1986 == 0) { -uint8_t x_1989; -x_1989 = !lean_is_exclusive(x_1978); -if (x_1989 == 0) -{ -lean_object* x_1990; uint8_t x_1991; -x_1990 = lean_ctor_get(x_1978, 0); -x_1991 = !lean_is_exclusive(x_1990); +lean_object* x_1987; lean_object* x_1988; lean_object* x_1989; lean_object* x_1990; uint8_t x_1991; +x_1987 = lean_ctor_get(x_1979, 0); +x_1988 = lean_ctor_get(x_1979, 1); +x_1989 = lean_unsigned_to_nat(100u); +x_1990 = lean_string_length(x_1987); +x_1991 = lean_nat_dec_lt(x_1989, x_1990); +lean_dec(x_1990); if (x_1991 == 0) { uint8_t x_1992; -x_1992 = !lean_is_exclusive(x_1977); +x_1992 = !lean_is_exclusive(x_1984); if (x_1992 == 0) { -lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; uint8_t x_1996; -x_1993 = lean_ctor_get(x_1990, 0); -x_1994 = lean_ctor_get(x_1990, 1); -x_1995 = lean_ctor_get(x_1977, 0); -lean_dec(x_1995); -x_1996 = !lean_is_exclusive(x_1993); -if (x_1996 == 0) -{ -uint8_t x_1997; -x_1997 = !lean_is_exclusive(x_1994); -if (x_1997 == 0) -{ -lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; -x_1998 = lean_ctor_get(x_1993, 0); -x_1999 = lean_ctor_get(x_1994, 12); -lean_dec(x_1999); -x_2000 = lean_box(0); -x_2001 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2001, 0, x_1998); -lean_ctor_set(x_1994, 12, x_2001); -lean_ctor_set(x_1993, 0, x_2000); -return x_1977; +lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; +x_1993 = lean_ctor_get(x_1984, 13); +lean_dec(x_1993); +x_1994 = lean_box(0); +x_1995 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_1995, 0, x_1987); +lean_ctor_set(x_1984, 13, x_1995); +lean_ctor_set(x_1979, 0, x_1994); +return x_1965; } else { -lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; lean_object* x_2011; uint8_t x_2012; uint8_t x_2013; uint8_t x_2014; uint8_t x_2015; uint8_t x_2016; uint8_t x_2017; uint8_t x_2018; uint8_t x_2019; lean_object* x_2020; uint8_t x_2021; lean_object* x_2022; uint8_t x_2023; uint8_t x_2024; uint8_t x_2025; lean_object* x_2026; uint8_t x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; -x_2002 = lean_ctor_get(x_1993, 0); -x_2003 = lean_ctor_get(x_1994, 0); -x_2004 = lean_ctor_get(x_1994, 1); -x_2005 = lean_ctor_get(x_1994, 2); -x_2006 = lean_ctor_get(x_1994, 3); -x_2007 = lean_ctor_get(x_1994, 4); -x_2008 = lean_ctor_get(x_1994, 5); -x_2009 = lean_ctor_get(x_1994, 6); -x_2010 = lean_ctor_get(x_1994, 7); -x_2011 = lean_ctor_get(x_1994, 8); -x_2012 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15); -x_2013 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 1); -x_2014 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 2); -x_2015 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 3); -x_2016 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 4); -x_2017 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 5); -x_2018 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 6); -x_2019 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 7); -x_2020 = lean_ctor_get(x_1994, 9); -x_2021 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 8); -x_2022 = lean_ctor_get(x_1994, 10); -x_2023 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 9); -x_2024 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 10); -x_2025 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 11); -x_2026 = lean_ctor_get(x_1994, 11); -x_2027 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 12); -x_2028 = lean_ctor_get(x_1994, 13); -x_2029 = lean_ctor_get(x_1994, 14); -lean_inc(x_2029); -lean_inc(x_2028); -lean_inc(x_2026); -lean_inc(x_2022); -lean_inc(x_2020); -lean_inc(x_2011); -lean_inc(x_2010); -lean_inc(x_2009); -lean_inc(x_2008); -lean_inc(x_2007); -lean_inc(x_2006); -lean_inc(x_2005); +lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; uint8_t x_2005; uint8_t x_2006; uint8_t x_2007; uint8_t x_2008; uint8_t x_2009; uint8_t x_2010; uint8_t x_2011; uint8_t x_2012; lean_object* x_2013; uint8_t x_2014; lean_object* x_2015; uint8_t x_2016; uint8_t x_2017; uint8_t x_2018; lean_object* x_2019; uint8_t x_2020; lean_object* x_2021; uint8_t x_2022; lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; +x_1996 = lean_ctor_get(x_1984, 0); +x_1997 = lean_ctor_get(x_1984, 1); +x_1998 = lean_ctor_get(x_1984, 2); +x_1999 = lean_ctor_get(x_1984, 3); +x_2000 = lean_ctor_get(x_1984, 4); +x_2001 = lean_ctor_get(x_1984, 5); +x_2002 = lean_ctor_get(x_1984, 6); +x_2003 = lean_ctor_get(x_1984, 7); +x_2004 = lean_ctor_get(x_1984, 8); +x_2005 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17); +x_2006 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 1); +x_2007 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 2); +x_2008 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 3); +x_2009 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 4); +x_2010 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 5); +x_2011 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 6); +x_2012 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 7); +x_2013 = lean_ctor_get(x_1984, 9); +x_2014 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 8); +x_2015 = lean_ctor_get(x_1984, 10); +x_2016 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 9); +x_2017 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 10); +x_2018 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 11); +x_2019 = lean_ctor_get(x_1984, 11); +x_2020 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 12); +x_2021 = lean_ctor_get(x_1984, 12); +x_2022 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 13); +x_2023 = lean_ctor_get(x_1984, 14); +x_2024 = lean_ctor_get(x_1984, 15); +x_2025 = lean_ctor_get(x_1984, 16); +lean_inc(x_2025); +lean_inc(x_2024); +lean_inc(x_2023); +lean_inc(x_2021); +lean_inc(x_2019); +lean_inc(x_2015); +lean_inc(x_2013); lean_inc(x_2004); lean_inc(x_2003); -lean_dec(x_1994); -x_2030 = lean_box(0); -x_2031 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2031, 0, x_2002); -x_2032 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2032, 0, x_2003); -lean_ctor_set(x_2032, 1, x_2004); -lean_ctor_set(x_2032, 2, x_2005); -lean_ctor_set(x_2032, 3, x_2006); -lean_ctor_set(x_2032, 4, x_2007); -lean_ctor_set(x_2032, 5, x_2008); -lean_ctor_set(x_2032, 6, x_2009); -lean_ctor_set(x_2032, 7, x_2010); -lean_ctor_set(x_2032, 8, x_2011); -lean_ctor_set(x_2032, 9, x_2020); -lean_ctor_set(x_2032, 10, x_2022); -lean_ctor_set(x_2032, 11, x_2026); -lean_ctor_set(x_2032, 12, x_2031); -lean_ctor_set(x_2032, 13, x_2028); -lean_ctor_set(x_2032, 14, x_2029); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15, x_2012); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 1, x_2013); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 2, x_2014); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 3, x_2015); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 4, x_2016); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 5, x_2017); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 6, x_2018); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 7, x_2019); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 8, x_2021); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 9, x_2023); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 10, x_2024); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 11, x_2025); -lean_ctor_set_uint8(x_2032, sizeof(void*)*15 + 12, x_2027); -lean_ctor_set(x_1993, 0, x_2030); -lean_ctor_set(x_1990, 1, x_2032); -return x_1977; +lean_inc(x_2002); +lean_inc(x_2001); +lean_inc(x_2000); +lean_inc(x_1999); +lean_inc(x_1998); +lean_inc(x_1997); +lean_inc(x_1996); +lean_dec(x_1984); +x_2026 = lean_box(0); +x_2027 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2027, 0, x_1987); +x_2028 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2028, 0, x_1996); +lean_ctor_set(x_2028, 1, x_1997); +lean_ctor_set(x_2028, 2, x_1998); +lean_ctor_set(x_2028, 3, x_1999); +lean_ctor_set(x_2028, 4, x_2000); +lean_ctor_set(x_2028, 5, x_2001); +lean_ctor_set(x_2028, 6, x_2002); +lean_ctor_set(x_2028, 7, x_2003); +lean_ctor_set(x_2028, 8, x_2004); +lean_ctor_set(x_2028, 9, x_2013); +lean_ctor_set(x_2028, 10, x_2015); +lean_ctor_set(x_2028, 11, x_2019); +lean_ctor_set(x_2028, 12, x_2021); +lean_ctor_set(x_2028, 13, x_2027); +lean_ctor_set(x_2028, 14, x_2023); +lean_ctor_set(x_2028, 15, x_2024); +lean_ctor_set(x_2028, 16, x_2025); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17, x_2005); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 1, x_2006); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 2, x_2007); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 3, x_2008); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 4, x_2009); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 5, x_2010); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 6, x_2011); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 7, x_2012); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 8, x_2014); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 9, x_2016); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 10, x_2017); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 11, x_2018); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 12, x_2020); +lean_ctor_set_uint8(x_2028, sizeof(void*)*17 + 13, x_2022); +lean_ctor_set(x_1979, 0, x_2026); +lean_ctor_set(x_1978, 1, x_2028); +return x_1965; } } else { -lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; uint8_t x_2044; uint8_t x_2045; uint8_t x_2046; uint8_t x_2047; uint8_t x_2048; uint8_t x_2049; uint8_t x_2050; uint8_t x_2051; lean_object* x_2052; uint8_t x_2053; lean_object* x_2054; uint8_t x_2055; uint8_t x_2056; uint8_t x_2057; lean_object* x_2058; uint8_t x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; lean_object* x_2066; -x_2033 = lean_ctor_get(x_1993, 0); -x_2034 = lean_ctor_get(x_1993, 1); -lean_inc(x_2034); -lean_inc(x_2033); -lean_dec(x_1993); -x_2035 = lean_ctor_get(x_1994, 0); -lean_inc(x_2035); -x_2036 = lean_ctor_get(x_1994, 1); -lean_inc_ref(x_2036); -x_2037 = lean_ctor_get(x_1994, 2); -lean_inc_ref(x_2037); -x_2038 = lean_ctor_get(x_1994, 3); -lean_inc(x_2038); -x_2039 = lean_ctor_get(x_1994, 4); -lean_inc(x_2039); -x_2040 = lean_ctor_get(x_1994, 5); -lean_inc(x_2040); -x_2041 = lean_ctor_get(x_1994, 6); +uint8_t x_2029; uint8_t x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; uint8_t x_2034; +lean_free_object(x_1979); +lean_dec(x_1988); +lean_dec(x_1987); +lean_free_object(x_1978); +lean_dec(x_1984); +lean_free_object(x_1965); +lean_free_object(x_1966); +x_2029 = 1; +x_2030 = 0; +x_2031 = lean_box(1); +x_2032 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; +x_2033 = l_Lake_OutStream_logEntry(x_2031, x_2032, x_2029, x_2030, x_1981); +x_2034 = !lean_is_exclusive(x_2033); +if (x_2034 == 0) +{ +lean_object* x_2035; lean_object* x_2036; +x_2035 = lean_ctor_get(x_2033, 0); +lean_dec(x_2035); +x_2036 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +lean_ctor_set_tag(x_2033, 1); +lean_ctor_set(x_2033, 0, x_2036); +return x_2033; +} +else +{ +lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; +x_2037 = lean_ctor_get(x_2033, 1); +lean_inc(x_2037); +lean_dec(x_2033); +x_2038 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +x_2039 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2039, 0, x_2038); +lean_ctor_set(x_2039, 1, x_2037); +return x_2039; +} +} +} +else +{ +lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; uint8_t x_2044; +x_2040 = lean_ctor_get(x_1979, 0); +x_2041 = lean_ctor_get(x_1979, 1); lean_inc(x_2041); -x_2042 = lean_ctor_get(x_1994, 7); -lean_inc_ref(x_2042); -x_2043 = lean_ctor_get(x_1994, 8); -lean_inc(x_2043); -x_2044 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15); -x_2045 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 1); -x_2046 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 2); -x_2047 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 3); -x_2048 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 4); -x_2049 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 5); -x_2050 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 6); -x_2051 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 7); -x_2052 = lean_ctor_get(x_1994, 9); -lean_inc(x_2052); -x_2053 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 8); -x_2054 = lean_ctor_get(x_1994, 10); -lean_inc(x_2054); -x_2055 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 9); -x_2056 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 10); -x_2057 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 11); -x_2058 = lean_ctor_get(x_1994, 11); -lean_inc(x_2058); -x_2059 = lean_ctor_get_uint8(x_1994, sizeof(void*)*15 + 12); -x_2060 = lean_ctor_get(x_1994, 13); -lean_inc(x_2060); -x_2061 = lean_ctor_get(x_1994, 14); -lean_inc(x_2061); -if (lean_is_exclusive(x_1994)) { - lean_ctor_release(x_1994, 0); - lean_ctor_release(x_1994, 1); - lean_ctor_release(x_1994, 2); - lean_ctor_release(x_1994, 3); - lean_ctor_release(x_1994, 4); - lean_ctor_release(x_1994, 5); - lean_ctor_release(x_1994, 6); - lean_ctor_release(x_1994, 7); - lean_ctor_release(x_1994, 8); - lean_ctor_release(x_1994, 9); - lean_ctor_release(x_1994, 10); - lean_ctor_release(x_1994, 11); - lean_ctor_release(x_1994, 12); - lean_ctor_release(x_1994, 13); - lean_ctor_release(x_1994, 14); - x_2062 = x_1994; -} else { - lean_dec_ref(x_1994); - x_2062 = lean_box(0); -} -x_2063 = lean_box(0); -x_2064 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2064, 0, x_2033); -if (lean_is_scalar(x_2062)) { - x_2065 = lean_alloc_ctor(0, 15, 13); -} else { - x_2065 = x_2062; -} -lean_ctor_set(x_2065, 0, x_2035); -lean_ctor_set(x_2065, 1, x_2036); -lean_ctor_set(x_2065, 2, x_2037); -lean_ctor_set(x_2065, 3, x_2038); -lean_ctor_set(x_2065, 4, x_2039); -lean_ctor_set(x_2065, 5, x_2040); -lean_ctor_set(x_2065, 6, x_2041); -lean_ctor_set(x_2065, 7, x_2042); -lean_ctor_set(x_2065, 8, x_2043); -lean_ctor_set(x_2065, 9, x_2052); -lean_ctor_set(x_2065, 10, x_2054); -lean_ctor_set(x_2065, 11, x_2058); -lean_ctor_set(x_2065, 12, x_2064); -lean_ctor_set(x_2065, 13, x_2060); -lean_ctor_set(x_2065, 14, x_2061); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15, x_2044); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 1, x_2045); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 2, x_2046); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 3, x_2047); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 4, x_2048); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 5, x_2049); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 6, x_2050); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 7, x_2051); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 8, x_2053); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 9, x_2055); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 10, x_2056); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 11, x_2057); -lean_ctor_set_uint8(x_2065, sizeof(void*)*15 + 12, x_2059); -x_2066 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2066, 0, x_2063); -lean_ctor_set(x_2066, 1, x_2034); -lean_ctor_set(x_1990, 1, x_2065); -lean_ctor_set(x_1990, 0, x_2066); -return x_1977; -} -} -else +lean_inc(x_2040); +lean_dec(x_1979); +x_2042 = lean_unsigned_to_nat(100u); +x_2043 = lean_string_length(x_2040); +x_2044 = lean_nat_dec_lt(x_2042, x_2043); +lean_dec(x_2043); +if (x_2044 == 0) { -lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; lean_object* x_2081; uint8_t x_2082; uint8_t x_2083; uint8_t x_2084; uint8_t x_2085; uint8_t x_2086; uint8_t x_2087; uint8_t x_2088; uint8_t x_2089; lean_object* x_2090; uint8_t x_2091; lean_object* x_2092; uint8_t x_2093; uint8_t x_2094; uint8_t x_2095; lean_object* x_2096; uint8_t x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; -x_2067 = lean_ctor_get(x_1990, 0); -x_2068 = lean_ctor_get(x_1990, 1); -x_2069 = lean_ctor_get(x_1977, 1); -lean_inc(x_2069); -lean_dec(x_1977); -x_2070 = lean_ctor_get(x_2067, 0); +lean_object* x_2045; lean_object* x_2046; lean_object* x_2047; lean_object* x_2048; lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; lean_object* x_2052; lean_object* x_2053; uint8_t x_2054; uint8_t x_2055; uint8_t x_2056; uint8_t x_2057; uint8_t x_2058; uint8_t x_2059; uint8_t x_2060; uint8_t x_2061; lean_object* x_2062; uint8_t x_2063; lean_object* x_2064; uint8_t x_2065; uint8_t x_2066; uint8_t x_2067; lean_object* x_2068; uint8_t x_2069; lean_object* x_2070; uint8_t x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; +x_2045 = lean_ctor_get(x_1984, 0); +lean_inc(x_2045); +x_2046 = lean_ctor_get(x_1984, 1); +lean_inc_ref(x_2046); +x_2047 = lean_ctor_get(x_1984, 2); +lean_inc_ref(x_2047); +x_2048 = lean_ctor_get(x_1984, 3); +lean_inc(x_2048); +x_2049 = lean_ctor_get(x_1984, 4); +lean_inc(x_2049); +x_2050 = lean_ctor_get(x_1984, 5); +lean_inc(x_2050); +x_2051 = lean_ctor_get(x_1984, 6); +lean_inc(x_2051); +x_2052 = lean_ctor_get(x_1984, 7); +lean_inc_ref(x_2052); +x_2053 = lean_ctor_get(x_1984, 8); +lean_inc(x_2053); +x_2054 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17); +x_2055 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 1); +x_2056 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 2); +x_2057 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 3); +x_2058 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 4); +x_2059 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 5); +x_2060 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 6); +x_2061 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 7); +x_2062 = lean_ctor_get(x_1984, 9); +lean_inc(x_2062); +x_2063 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 8); +x_2064 = lean_ctor_get(x_1984, 10); +lean_inc(x_2064); +x_2065 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 9); +x_2066 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 10); +x_2067 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 11); +x_2068 = lean_ctor_get(x_1984, 11); +lean_inc(x_2068); +x_2069 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 12); +x_2070 = lean_ctor_get(x_1984, 12); lean_inc(x_2070); -x_2071 = lean_ctor_get(x_2067, 1); -lean_inc(x_2071); -if (lean_is_exclusive(x_2067)) { - lean_ctor_release(x_2067, 0); - lean_ctor_release(x_2067, 1); - x_2072 = x_2067; -} else { - lean_dec_ref(x_2067); - x_2072 = lean_box(0); -} -x_2073 = lean_ctor_get(x_2068, 0); +x_2071 = lean_ctor_get_uint8(x_1984, sizeof(void*)*17 + 13); +x_2072 = lean_ctor_get(x_1984, 14); +lean_inc(x_2072); +x_2073 = lean_ctor_get(x_1984, 15); lean_inc(x_2073); -x_2074 = lean_ctor_get(x_2068, 1); -lean_inc_ref(x_2074); -x_2075 = lean_ctor_get(x_2068, 2); -lean_inc_ref(x_2075); -x_2076 = lean_ctor_get(x_2068, 3); -lean_inc(x_2076); -x_2077 = lean_ctor_get(x_2068, 4); -lean_inc(x_2077); -x_2078 = lean_ctor_get(x_2068, 5); -lean_inc(x_2078); -x_2079 = lean_ctor_get(x_2068, 6); -lean_inc(x_2079); -x_2080 = lean_ctor_get(x_2068, 7); -lean_inc_ref(x_2080); -x_2081 = lean_ctor_get(x_2068, 8); -lean_inc(x_2081); -x_2082 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15); -x_2083 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 1); -x_2084 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 2); -x_2085 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 3); -x_2086 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 4); -x_2087 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 5); -x_2088 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 6); -x_2089 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 7); -x_2090 = lean_ctor_get(x_2068, 9); -lean_inc(x_2090); -x_2091 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 8); -x_2092 = lean_ctor_get(x_2068, 10); -lean_inc(x_2092); -x_2093 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 9); -x_2094 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 10); -x_2095 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 11); -x_2096 = lean_ctor_get(x_2068, 11); -lean_inc(x_2096); -x_2097 = lean_ctor_get_uint8(x_2068, sizeof(void*)*15 + 12); -x_2098 = lean_ctor_get(x_2068, 13); -lean_inc(x_2098); -x_2099 = lean_ctor_get(x_2068, 14); -lean_inc(x_2099); -if (lean_is_exclusive(x_2068)) { - lean_ctor_release(x_2068, 0); - lean_ctor_release(x_2068, 1); - lean_ctor_release(x_2068, 2); - lean_ctor_release(x_2068, 3); - lean_ctor_release(x_2068, 4); - lean_ctor_release(x_2068, 5); - lean_ctor_release(x_2068, 6); - lean_ctor_release(x_2068, 7); - lean_ctor_release(x_2068, 8); - lean_ctor_release(x_2068, 9); - lean_ctor_release(x_2068, 10); - lean_ctor_release(x_2068, 11); - lean_ctor_release(x_2068, 12); - lean_ctor_release(x_2068, 13); - lean_ctor_release(x_2068, 14); - x_2100 = x_2068; +x_2074 = lean_ctor_get(x_1984, 16); +lean_inc(x_2074); +if (lean_is_exclusive(x_1984)) { + lean_ctor_release(x_1984, 0); + lean_ctor_release(x_1984, 1); + lean_ctor_release(x_1984, 2); + lean_ctor_release(x_1984, 3); + lean_ctor_release(x_1984, 4); + lean_ctor_release(x_1984, 5); + lean_ctor_release(x_1984, 6); + lean_ctor_release(x_1984, 7); + lean_ctor_release(x_1984, 8); + lean_ctor_release(x_1984, 9); + lean_ctor_release(x_1984, 10); + lean_ctor_release(x_1984, 11); + lean_ctor_release(x_1984, 12); + lean_ctor_release(x_1984, 13); + lean_ctor_release(x_1984, 14); + lean_ctor_release(x_1984, 15); + lean_ctor_release(x_1984, 16); + x_2075 = x_1984; } else { - lean_dec_ref(x_2068); - x_2100 = lean_box(0); + lean_dec_ref(x_1984); + x_2075 = lean_box(0); } -x_2101 = lean_box(0); -x_2102 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2102, 0, x_2070); -if (lean_is_scalar(x_2100)) { - x_2103 = lean_alloc_ctor(0, 15, 13); +x_2076 = lean_box(0); +x_2077 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2077, 0, x_2040); +if (lean_is_scalar(x_2075)) { + x_2078 = lean_alloc_ctor(0, 17, 14); } else { - x_2103 = x_2100; + x_2078 = x_2075; } -lean_ctor_set(x_2103, 0, x_2073); -lean_ctor_set(x_2103, 1, x_2074); -lean_ctor_set(x_2103, 2, x_2075); -lean_ctor_set(x_2103, 3, x_2076); -lean_ctor_set(x_2103, 4, x_2077); -lean_ctor_set(x_2103, 5, x_2078); -lean_ctor_set(x_2103, 6, x_2079); -lean_ctor_set(x_2103, 7, x_2080); -lean_ctor_set(x_2103, 8, x_2081); -lean_ctor_set(x_2103, 9, x_2090); -lean_ctor_set(x_2103, 10, x_2092); -lean_ctor_set(x_2103, 11, x_2096); -lean_ctor_set(x_2103, 12, x_2102); -lean_ctor_set(x_2103, 13, x_2098); -lean_ctor_set(x_2103, 14, x_2099); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15, x_2082); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 1, x_2083); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 2, x_2084); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 3, x_2085); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 4, x_2086); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 5, x_2087); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 6, x_2088); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 7, x_2089); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 8, x_2091); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 9, x_2093); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 10, x_2094); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 11, x_2095); -lean_ctor_set_uint8(x_2103, sizeof(void*)*15 + 12, x_2097); -if (lean_is_scalar(x_2072)) { - x_2104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2078, 0, x_2045); +lean_ctor_set(x_2078, 1, x_2046); +lean_ctor_set(x_2078, 2, x_2047); +lean_ctor_set(x_2078, 3, x_2048); +lean_ctor_set(x_2078, 4, x_2049); +lean_ctor_set(x_2078, 5, x_2050); +lean_ctor_set(x_2078, 6, x_2051); +lean_ctor_set(x_2078, 7, x_2052); +lean_ctor_set(x_2078, 8, x_2053); +lean_ctor_set(x_2078, 9, x_2062); +lean_ctor_set(x_2078, 10, x_2064); +lean_ctor_set(x_2078, 11, x_2068); +lean_ctor_set(x_2078, 12, x_2070); +lean_ctor_set(x_2078, 13, x_2077); +lean_ctor_set(x_2078, 14, x_2072); +lean_ctor_set(x_2078, 15, x_2073); +lean_ctor_set(x_2078, 16, x_2074); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17, x_2054); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 1, x_2055); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 2, x_2056); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 3, x_2057); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 4, x_2058); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 5, x_2059); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 6, x_2060); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 7, x_2061); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 8, x_2063); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 9, x_2065); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 10, x_2066); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 11, x_2067); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 12, x_2069); +lean_ctor_set_uint8(x_2078, sizeof(void*)*17 + 13, x_2071); +x_2079 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2079, 0, x_2076); +lean_ctor_set(x_2079, 1, x_2041); +lean_ctor_set(x_1978, 1, x_2078); +lean_ctor_set(x_1978, 0, x_2079); +return x_1965; +} +else +{ +uint8_t x_2080; uint8_t x_2081; lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; +lean_dec(x_2041); +lean_dec(x_2040); +lean_free_object(x_1978); +lean_dec(x_1984); +lean_free_object(x_1965); +lean_free_object(x_1966); +x_2080 = 1; +x_2081 = 0; +x_2082 = lean_box(1); +x_2083 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; +x_2084 = l_Lake_OutStream_logEntry(x_2082, x_2083, x_2080, x_2081, x_1981); +x_2085 = lean_ctor_get(x_2084, 1); +lean_inc(x_2085); +if (lean_is_exclusive(x_2084)) { + lean_ctor_release(x_2084, 0); + lean_ctor_release(x_2084, 1); + x_2086 = x_2084; } else { - x_2104 = x_2072; + lean_dec_ref(x_2084); + x_2086 = lean_box(0); +} +x_2087 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2086)) { + x_2088 = lean_alloc_ctor(1, 2, 0); +} else { + x_2088 = x_2086; + lean_ctor_set_tag(x_2088, 1); +} +lean_ctor_set(x_2088, 0, x_2087); +lean_ctor_set(x_2088, 1, x_2085); +return x_2088; } -lean_ctor_set(x_2104, 0, x_2101); -lean_ctor_set(x_2104, 1, x_2071); -lean_ctor_set(x_1990, 1, x_2103); -lean_ctor_set(x_1990, 0, x_2104); -x_2105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2105, 0, x_1978); -lean_ctor_set(x_2105, 1, x_2069); -return x_2105; } } else { -lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; lean_object* x_2110; lean_object* x_2111; lean_object* x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; lean_object* x_2121; uint8_t x_2122; uint8_t x_2123; uint8_t x_2124; uint8_t x_2125; uint8_t x_2126; uint8_t x_2127; uint8_t x_2128; uint8_t x_2129; lean_object* x_2130; uint8_t x_2131; lean_object* x_2132; uint8_t x_2133; uint8_t x_2134; uint8_t x_2135; lean_object* x_2136; uint8_t x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; lean_object* x_2146; -x_2106 = lean_ctor_get(x_1990, 0); -x_2107 = lean_ctor_get(x_1990, 1); -lean_inc(x_2107); -lean_inc(x_2106); -lean_dec(x_1990); -x_2108 = lean_ctor_get(x_1977, 1); -lean_inc(x_2108); -if (lean_is_exclusive(x_1977)) { - lean_ctor_release(x_1977, 0); - lean_ctor_release(x_1977, 1); - x_2109 = x_1977; -} else { - lean_dec_ref(x_1977); - x_2109 = lean_box(0); -} -x_2110 = lean_ctor_get(x_2106, 0); -lean_inc(x_2110); -x_2111 = lean_ctor_get(x_2106, 1); -lean_inc(x_2111); -if (lean_is_exclusive(x_2106)) { - lean_ctor_release(x_2106, 0); - lean_ctor_release(x_2106, 1); - x_2112 = x_2106; -} else { - lean_dec_ref(x_2106); - x_2112 = lean_box(0); -} -x_2113 = lean_ctor_get(x_2107, 0); -lean_inc(x_2113); -x_2114 = lean_ctor_get(x_2107, 1); -lean_inc_ref(x_2114); -x_2115 = lean_ctor_get(x_2107, 2); -lean_inc_ref(x_2115); -x_2116 = lean_ctor_get(x_2107, 3); -lean_inc(x_2116); -x_2117 = lean_ctor_get(x_2107, 4); -lean_inc(x_2117); -x_2118 = lean_ctor_get(x_2107, 5); -lean_inc(x_2118); -x_2119 = lean_ctor_get(x_2107, 6); -lean_inc(x_2119); -x_2120 = lean_ctor_get(x_2107, 7); -lean_inc_ref(x_2120); -x_2121 = lean_ctor_get(x_2107, 8); -lean_inc(x_2121); -x_2122 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15); -x_2123 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 1); -x_2124 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 2); -x_2125 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 3); -x_2126 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 4); -x_2127 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 5); -x_2128 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 6); -x_2129 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 7); -x_2130 = lean_ctor_get(x_2107, 9); -lean_inc(x_2130); -x_2131 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 8); -x_2132 = lean_ctor_get(x_2107, 10); -lean_inc(x_2132); -x_2133 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 9); -x_2134 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 10); -x_2135 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 11); -x_2136 = lean_ctor_get(x_2107, 11); -lean_inc(x_2136); -x_2137 = lean_ctor_get_uint8(x_2107, sizeof(void*)*15 + 12); -x_2138 = lean_ctor_get(x_2107, 13); -lean_inc(x_2138); -x_2139 = lean_ctor_get(x_2107, 14); -lean_inc(x_2139); -if (lean_is_exclusive(x_2107)) { - lean_ctor_release(x_2107, 0); - lean_ctor_release(x_2107, 1); - lean_ctor_release(x_2107, 2); - lean_ctor_release(x_2107, 3); - lean_ctor_release(x_2107, 4); - lean_ctor_release(x_2107, 5); - lean_ctor_release(x_2107, 6); - lean_ctor_release(x_2107, 7); - lean_ctor_release(x_2107, 8); - lean_ctor_release(x_2107, 9); - lean_ctor_release(x_2107, 10); - lean_ctor_release(x_2107, 11); - lean_ctor_release(x_2107, 12); - lean_ctor_release(x_2107, 13); - lean_ctor_release(x_2107, 14); - x_2140 = x_2107; -} else { - lean_dec_ref(x_2107); - x_2140 = lean_box(0); -} -x_2141 = lean_box(0); -x_2142 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2142, 0, x_2110); -if (lean_is_scalar(x_2140)) { - x_2143 = lean_alloc_ctor(0, 15, 13); -} else { - x_2143 = x_2140; -} -lean_ctor_set(x_2143, 0, x_2113); -lean_ctor_set(x_2143, 1, x_2114); -lean_ctor_set(x_2143, 2, x_2115); -lean_ctor_set(x_2143, 3, x_2116); -lean_ctor_set(x_2143, 4, x_2117); -lean_ctor_set(x_2143, 5, x_2118); -lean_ctor_set(x_2143, 6, x_2119); -lean_ctor_set(x_2143, 7, x_2120); -lean_ctor_set(x_2143, 8, x_2121); -lean_ctor_set(x_2143, 9, x_2130); -lean_ctor_set(x_2143, 10, x_2132); -lean_ctor_set(x_2143, 11, x_2136); -lean_ctor_set(x_2143, 12, x_2142); -lean_ctor_set(x_2143, 13, x_2138); -lean_ctor_set(x_2143, 14, x_2139); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15, x_2122); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 1, x_2123); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 2, x_2124); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 3, x_2125); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 4, x_2126); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 5, x_2127); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 6, x_2128); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 7, x_2129); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 8, x_2131); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 9, x_2133); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 10, x_2134); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 11, x_2135); -lean_ctor_set_uint8(x_2143, sizeof(void*)*15 + 12, x_2137); -if (lean_is_scalar(x_2112)) { - x_2144 = lean_alloc_ctor(0, 2, 0); -} else { - x_2144 = x_2112; -} -lean_ctor_set(x_2144, 0, x_2141); -lean_ctor_set(x_2144, 1, x_2111); -x_2145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2145, 0, x_2144); -lean_ctor_set(x_2145, 1, x_2143); -lean_ctor_set(x_1978, 0, x_2145); -if (lean_is_scalar(x_2109)) { - x_2146 = lean_alloc_ctor(0, 2, 0); -} else { - x_2146 = x_2109; -} -lean_ctor_set(x_2146, 0, x_1978); -lean_ctor_set(x_2146, 1, x_2108); -return x_2146; -} -} -else -{ -lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; lean_object* x_2164; uint8_t x_2165; uint8_t x_2166; uint8_t x_2167; uint8_t x_2168; uint8_t x_2169; uint8_t x_2170; uint8_t x_2171; uint8_t x_2172; lean_object* x_2173; uint8_t x_2174; lean_object* x_2175; uint8_t x_2176; uint8_t x_2177; uint8_t x_2178; lean_object* x_2179; uint8_t x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; -x_2147 = lean_ctor_get(x_1978, 0); -lean_inc(x_2147); +lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; uint8_t x_2095; +x_2089 = lean_ctor_get(x_1978, 1); +lean_inc(x_2089); lean_dec(x_1978); -x_2148 = lean_ctor_get(x_2147, 0); -lean_inc(x_2148); -x_2149 = lean_ctor_get(x_2147, 1); -lean_inc(x_2149); -if (lean_is_exclusive(x_2147)) { - lean_ctor_release(x_2147, 0); - lean_ctor_release(x_2147, 1); - x_2150 = x_2147; +x_2090 = lean_ctor_get(x_1979, 0); +lean_inc(x_2090); +x_2091 = lean_ctor_get(x_1979, 1); +lean_inc(x_2091); +if (lean_is_exclusive(x_1979)) { + lean_ctor_release(x_1979, 0); + lean_ctor_release(x_1979, 1); + x_2092 = x_1979; } else { - lean_dec_ref(x_2147); - x_2150 = lean_box(0); + lean_dec_ref(x_1979); + x_2092 = lean_box(0); } -x_2151 = lean_ctor_get(x_1977, 1); -lean_inc(x_2151); -if (lean_is_exclusive(x_1977)) { - lean_ctor_release(x_1977, 0); - lean_ctor_release(x_1977, 1); - x_2152 = x_1977; +x_2093 = lean_unsigned_to_nat(100u); +x_2094 = lean_string_length(x_2090); +x_2095 = lean_nat_dec_lt(x_2093, x_2094); +lean_dec(x_2094); +if (x_2095 == 0) +{ +lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; lean_object* x_2104; uint8_t x_2105; uint8_t x_2106; uint8_t x_2107; uint8_t x_2108; uint8_t x_2109; uint8_t x_2110; uint8_t x_2111; uint8_t x_2112; lean_object* x_2113; uint8_t x_2114; lean_object* x_2115; uint8_t x_2116; uint8_t x_2117; uint8_t x_2118; lean_object* x_2119; uint8_t x_2120; lean_object* x_2121; uint8_t x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_object* x_2130; lean_object* x_2131; +x_2096 = lean_ctor_get(x_2089, 0); +lean_inc(x_2096); +x_2097 = lean_ctor_get(x_2089, 1); +lean_inc_ref(x_2097); +x_2098 = lean_ctor_get(x_2089, 2); +lean_inc_ref(x_2098); +x_2099 = lean_ctor_get(x_2089, 3); +lean_inc(x_2099); +x_2100 = lean_ctor_get(x_2089, 4); +lean_inc(x_2100); +x_2101 = lean_ctor_get(x_2089, 5); +lean_inc(x_2101); +x_2102 = lean_ctor_get(x_2089, 6); +lean_inc(x_2102); +x_2103 = lean_ctor_get(x_2089, 7); +lean_inc_ref(x_2103); +x_2104 = lean_ctor_get(x_2089, 8); +lean_inc(x_2104); +x_2105 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17); +x_2106 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 1); +x_2107 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 2); +x_2108 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 3); +x_2109 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 4); +x_2110 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 5); +x_2111 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 6); +x_2112 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 7); +x_2113 = lean_ctor_get(x_2089, 9); +lean_inc(x_2113); +x_2114 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 8); +x_2115 = lean_ctor_get(x_2089, 10); +lean_inc(x_2115); +x_2116 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 9); +x_2117 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 10); +x_2118 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 11); +x_2119 = lean_ctor_get(x_2089, 11); +lean_inc(x_2119); +x_2120 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 12); +x_2121 = lean_ctor_get(x_2089, 12); +lean_inc(x_2121); +x_2122 = lean_ctor_get_uint8(x_2089, sizeof(void*)*17 + 13); +x_2123 = lean_ctor_get(x_2089, 14); +lean_inc(x_2123); +x_2124 = lean_ctor_get(x_2089, 15); +lean_inc(x_2124); +x_2125 = lean_ctor_get(x_2089, 16); +lean_inc(x_2125); +if (lean_is_exclusive(x_2089)) { + lean_ctor_release(x_2089, 0); + lean_ctor_release(x_2089, 1); + lean_ctor_release(x_2089, 2); + lean_ctor_release(x_2089, 3); + lean_ctor_release(x_2089, 4); + lean_ctor_release(x_2089, 5); + lean_ctor_release(x_2089, 6); + lean_ctor_release(x_2089, 7); + lean_ctor_release(x_2089, 8); + lean_ctor_release(x_2089, 9); + lean_ctor_release(x_2089, 10); + lean_ctor_release(x_2089, 11); + lean_ctor_release(x_2089, 12); + lean_ctor_release(x_2089, 13); + lean_ctor_release(x_2089, 14); + lean_ctor_release(x_2089, 15); + lean_ctor_release(x_2089, 16); + x_2126 = x_2089; } else { - lean_dec_ref(x_1977); - x_2152 = lean_box(0); + lean_dec_ref(x_2089); + x_2126 = lean_box(0); } -x_2153 = lean_ctor_get(x_2148, 0); +x_2127 = lean_box(0); +x_2128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2128, 0, x_2090); +if (lean_is_scalar(x_2126)) { + x_2129 = lean_alloc_ctor(0, 17, 14); +} else { + x_2129 = x_2126; +} +lean_ctor_set(x_2129, 0, x_2096); +lean_ctor_set(x_2129, 1, x_2097); +lean_ctor_set(x_2129, 2, x_2098); +lean_ctor_set(x_2129, 3, x_2099); +lean_ctor_set(x_2129, 4, x_2100); +lean_ctor_set(x_2129, 5, x_2101); +lean_ctor_set(x_2129, 6, x_2102); +lean_ctor_set(x_2129, 7, x_2103); +lean_ctor_set(x_2129, 8, x_2104); +lean_ctor_set(x_2129, 9, x_2113); +lean_ctor_set(x_2129, 10, x_2115); +lean_ctor_set(x_2129, 11, x_2119); +lean_ctor_set(x_2129, 12, x_2121); +lean_ctor_set(x_2129, 13, x_2128); +lean_ctor_set(x_2129, 14, x_2123); +lean_ctor_set(x_2129, 15, x_2124); +lean_ctor_set(x_2129, 16, x_2125); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17, x_2105); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 1, x_2106); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 2, x_2107); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 3, x_2108); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 4, x_2109); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 5, x_2110); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 6, x_2111); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 7, x_2112); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 8, x_2114); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 9, x_2116); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 10, x_2117); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 11, x_2118); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 12, x_2120); +lean_ctor_set_uint8(x_2129, sizeof(void*)*17 + 13, x_2122); +if (lean_is_scalar(x_2092)) { + x_2130 = lean_alloc_ctor(0, 2, 0); +} else { + x_2130 = x_2092; +} +lean_ctor_set(x_2130, 0, x_2127); +lean_ctor_set(x_2130, 1, x_2091); +x_2131 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2131, 0, x_2130); +lean_ctor_set(x_2131, 1, x_2129); +lean_ctor_set(x_1966, 0, x_2131); +return x_1965; +} +else +{ +uint8_t x_2132; uint8_t x_2133; lean_object* x_2134; lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; +lean_dec(x_2092); +lean_dec(x_2091); +lean_dec(x_2090); +lean_dec(x_2089); +lean_free_object(x_1965); +lean_free_object(x_1966); +x_2132 = 1; +x_2133 = 0; +x_2134 = lean_box(1); +x_2135 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; +x_2136 = l_Lake_OutStream_logEntry(x_2134, x_2135, x_2132, x_2133, x_1981); +x_2137 = lean_ctor_get(x_2136, 1); +lean_inc(x_2137); +if (lean_is_exclusive(x_2136)) { + lean_ctor_release(x_2136, 0); + lean_ctor_release(x_2136, 1); + x_2138 = x_2136; +} else { + lean_dec_ref(x_2136); + x_2138 = lean_box(0); +} +x_2139 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2138)) { + x_2140 = lean_alloc_ctor(1, 2, 0); +} else { + x_2140 = x_2138; + lean_ctor_set_tag(x_2140, 1); +} +lean_ctor_set(x_2140, 0, x_2139); +lean_ctor_set(x_2140, 1, x_2137); +return x_2140; +} +} +} +else +{ +lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; uint8_t x_2149; +x_2141 = lean_ctor_get(x_1965, 1); +lean_inc(x_2141); +lean_dec(x_1965); +x_2142 = lean_ctor_get(x_1978, 1); +lean_inc(x_2142); +if (lean_is_exclusive(x_1978)) { + lean_ctor_release(x_1978, 0); + lean_ctor_release(x_1978, 1); + x_2143 = x_1978; +} else { + lean_dec_ref(x_1978); + x_2143 = lean_box(0); +} +x_2144 = lean_ctor_get(x_1979, 0); +lean_inc(x_2144); +x_2145 = lean_ctor_get(x_1979, 1); +lean_inc(x_2145); +if (lean_is_exclusive(x_1979)) { + lean_ctor_release(x_1979, 0); + lean_ctor_release(x_1979, 1); + x_2146 = x_1979; +} else { + lean_dec_ref(x_1979); + x_2146 = lean_box(0); +} +x_2147 = lean_unsigned_to_nat(100u); +x_2148 = lean_string_length(x_2144); +x_2149 = lean_nat_dec_lt(x_2147, x_2148); +lean_dec(x_2148); +if (x_2149 == 0) +{ +lean_object* x_2150; lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; uint8_t x_2159; uint8_t x_2160; uint8_t x_2161; uint8_t x_2162; uint8_t x_2163; uint8_t x_2164; uint8_t x_2165; uint8_t x_2166; lean_object* x_2167; uint8_t x_2168; lean_object* x_2169; uint8_t x_2170; uint8_t x_2171; uint8_t x_2172; lean_object* x_2173; uint8_t x_2174; lean_object* x_2175; uint8_t x_2176; lean_object* x_2177; lean_object* x_2178; lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; +x_2150 = lean_ctor_get(x_2142, 0); +lean_inc(x_2150); +x_2151 = lean_ctor_get(x_2142, 1); +lean_inc_ref(x_2151); +x_2152 = lean_ctor_get(x_2142, 2); +lean_inc_ref(x_2152); +x_2153 = lean_ctor_get(x_2142, 3); lean_inc(x_2153); -x_2154 = lean_ctor_get(x_2148, 1); +x_2154 = lean_ctor_get(x_2142, 4); lean_inc(x_2154); -if (lean_is_exclusive(x_2148)) { - lean_ctor_release(x_2148, 0); - lean_ctor_release(x_2148, 1); - x_2155 = x_2148; -} else { - lean_dec_ref(x_2148); - x_2155 = lean_box(0); -} -x_2156 = lean_ctor_get(x_2149, 0); +x_2155 = lean_ctor_get(x_2142, 5); +lean_inc(x_2155); +x_2156 = lean_ctor_get(x_2142, 6); lean_inc(x_2156); -x_2157 = lean_ctor_get(x_2149, 1); +x_2157 = lean_ctor_get(x_2142, 7); lean_inc_ref(x_2157); -x_2158 = lean_ctor_get(x_2149, 2); -lean_inc_ref(x_2158); -x_2159 = lean_ctor_get(x_2149, 3); -lean_inc(x_2159); -x_2160 = lean_ctor_get(x_2149, 4); -lean_inc(x_2160); -x_2161 = lean_ctor_get(x_2149, 5); -lean_inc(x_2161); -x_2162 = lean_ctor_get(x_2149, 6); -lean_inc(x_2162); -x_2163 = lean_ctor_get(x_2149, 7); -lean_inc_ref(x_2163); -x_2164 = lean_ctor_get(x_2149, 8); -lean_inc(x_2164); -x_2165 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15); -x_2166 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 1); -x_2167 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 2); -x_2168 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 3); -x_2169 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 4); -x_2170 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 5); -x_2171 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 6); -x_2172 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 7); -x_2173 = lean_ctor_get(x_2149, 9); +x_2158 = lean_ctor_get(x_2142, 8); +lean_inc(x_2158); +x_2159 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17); +x_2160 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 1); +x_2161 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 2); +x_2162 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 3); +x_2163 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 4); +x_2164 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 5); +x_2165 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 6); +x_2166 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 7); +x_2167 = lean_ctor_get(x_2142, 9); +lean_inc(x_2167); +x_2168 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 8); +x_2169 = lean_ctor_get(x_2142, 10); +lean_inc(x_2169); +x_2170 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 9); +x_2171 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 10); +x_2172 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 11); +x_2173 = lean_ctor_get(x_2142, 11); lean_inc(x_2173); -x_2174 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 8); -x_2175 = lean_ctor_get(x_2149, 10); +x_2174 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 12); +x_2175 = lean_ctor_get(x_2142, 12); lean_inc(x_2175); -x_2176 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 9); -x_2177 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 10); -x_2178 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 11); -x_2179 = lean_ctor_get(x_2149, 11); +x_2176 = lean_ctor_get_uint8(x_2142, sizeof(void*)*17 + 13); +x_2177 = lean_ctor_get(x_2142, 14); +lean_inc(x_2177); +x_2178 = lean_ctor_get(x_2142, 15); +lean_inc(x_2178); +x_2179 = lean_ctor_get(x_2142, 16); lean_inc(x_2179); -x_2180 = lean_ctor_get_uint8(x_2149, sizeof(void*)*15 + 12); -x_2181 = lean_ctor_get(x_2149, 13); -lean_inc(x_2181); -x_2182 = lean_ctor_get(x_2149, 14); -lean_inc(x_2182); -if (lean_is_exclusive(x_2149)) { - lean_ctor_release(x_2149, 0); - lean_ctor_release(x_2149, 1); - lean_ctor_release(x_2149, 2); - lean_ctor_release(x_2149, 3); - lean_ctor_release(x_2149, 4); - lean_ctor_release(x_2149, 5); - lean_ctor_release(x_2149, 6); - lean_ctor_release(x_2149, 7); - lean_ctor_release(x_2149, 8); - lean_ctor_release(x_2149, 9); - lean_ctor_release(x_2149, 10); - lean_ctor_release(x_2149, 11); - lean_ctor_release(x_2149, 12); - lean_ctor_release(x_2149, 13); - lean_ctor_release(x_2149, 14); - x_2183 = x_2149; +if (lean_is_exclusive(x_2142)) { + lean_ctor_release(x_2142, 0); + lean_ctor_release(x_2142, 1); + lean_ctor_release(x_2142, 2); + lean_ctor_release(x_2142, 3); + lean_ctor_release(x_2142, 4); + lean_ctor_release(x_2142, 5); + lean_ctor_release(x_2142, 6); + lean_ctor_release(x_2142, 7); + lean_ctor_release(x_2142, 8); + lean_ctor_release(x_2142, 9); + lean_ctor_release(x_2142, 10); + lean_ctor_release(x_2142, 11); + lean_ctor_release(x_2142, 12); + lean_ctor_release(x_2142, 13); + lean_ctor_release(x_2142, 14); + lean_ctor_release(x_2142, 15); + lean_ctor_release(x_2142, 16); + x_2180 = x_2142; } else { - lean_dec_ref(x_2149); - x_2183 = lean_box(0); + lean_dec_ref(x_2142); + x_2180 = lean_box(0); } -x_2184 = lean_box(0); -x_2185 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2185, 0, x_2153); -if (lean_is_scalar(x_2183)) { - x_2186 = lean_alloc_ctor(0, 15, 13); +x_2181 = lean_box(0); +x_2182 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2182, 0, x_2144); +if (lean_is_scalar(x_2180)) { + x_2183 = lean_alloc_ctor(0, 17, 14); } else { - x_2186 = x_2183; + x_2183 = x_2180; } -lean_ctor_set(x_2186, 0, x_2156); -lean_ctor_set(x_2186, 1, x_2157); -lean_ctor_set(x_2186, 2, x_2158); -lean_ctor_set(x_2186, 3, x_2159); -lean_ctor_set(x_2186, 4, x_2160); -lean_ctor_set(x_2186, 5, x_2161); -lean_ctor_set(x_2186, 6, x_2162); -lean_ctor_set(x_2186, 7, x_2163); -lean_ctor_set(x_2186, 8, x_2164); -lean_ctor_set(x_2186, 9, x_2173); -lean_ctor_set(x_2186, 10, x_2175); -lean_ctor_set(x_2186, 11, x_2179); -lean_ctor_set(x_2186, 12, x_2185); -lean_ctor_set(x_2186, 13, x_2181); -lean_ctor_set(x_2186, 14, x_2182); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15, x_2165); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 1, x_2166); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 2, x_2167); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 3, x_2168); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 4, x_2169); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 5, x_2170); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 6, x_2171); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 7, x_2172); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 8, x_2174); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 9, x_2176); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 10, x_2177); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 11, x_2178); -lean_ctor_set_uint8(x_2186, sizeof(void*)*15 + 12, x_2180); -if (lean_is_scalar(x_2155)) { - x_2187 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2183, 0, x_2150); +lean_ctor_set(x_2183, 1, x_2151); +lean_ctor_set(x_2183, 2, x_2152); +lean_ctor_set(x_2183, 3, x_2153); +lean_ctor_set(x_2183, 4, x_2154); +lean_ctor_set(x_2183, 5, x_2155); +lean_ctor_set(x_2183, 6, x_2156); +lean_ctor_set(x_2183, 7, x_2157); +lean_ctor_set(x_2183, 8, x_2158); +lean_ctor_set(x_2183, 9, x_2167); +lean_ctor_set(x_2183, 10, x_2169); +lean_ctor_set(x_2183, 11, x_2173); +lean_ctor_set(x_2183, 12, x_2175); +lean_ctor_set(x_2183, 13, x_2182); +lean_ctor_set(x_2183, 14, x_2177); +lean_ctor_set(x_2183, 15, x_2178); +lean_ctor_set(x_2183, 16, x_2179); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17, x_2159); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 1, x_2160); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 2, x_2161); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 3, x_2162); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 4, x_2163); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 5, x_2164); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 6, x_2165); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 7, x_2166); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 8, x_2168); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 9, x_2170); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 10, x_2171); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 11, x_2172); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 12, x_2174); +lean_ctor_set_uint8(x_2183, sizeof(void*)*17 + 13, x_2176); +if (lean_is_scalar(x_2146)) { + x_2184 = lean_alloc_ctor(0, 2, 0); } else { - x_2187 = x_2155; + x_2184 = x_2146; } -lean_ctor_set(x_2187, 0, x_2184); -lean_ctor_set(x_2187, 1, x_2154); -if (lean_is_scalar(x_2150)) { - x_2188 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2184, 0, x_2181); +lean_ctor_set(x_2184, 1, x_2145); +if (lean_is_scalar(x_2143)) { + x_2185 = lean_alloc_ctor(0, 2, 0); } else { - x_2188 = x_2150; -} -lean_ctor_set(x_2188, 0, x_2187); -lean_ctor_set(x_2188, 1, x_2186); -x_2189 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2189, 0, x_2188); -if (lean_is_scalar(x_2152)) { - x_2190 = lean_alloc_ctor(0, 2, 0); -} else { - x_2190 = x_2152; -} -lean_ctor_set(x_2190, 0, x_2189); -lean_ctor_set(x_2190, 1, x_2151); -return x_2190; -} -} + x_2185 = x_2143; } +lean_ctor_set(x_2185, 0, x_2184); +lean_ctor_set(x_2185, 1, x_2183); +lean_ctor_set(x_1966, 0, x_2185); +x_2186 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2186, 0, x_1966); +lean_ctor_set(x_2186, 1, x_2141); +return x_2186; } else { -uint8_t x_2191; -lean_dec_ref(x_1); -x_2191 = !lean_is_exclusive(x_3); -if (x_2191 == 0) -{ -lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; lean_object* x_2195; lean_object* x_2196; -x_2192 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 12, x_36); -x_2193 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2193, 0, x_2192); -lean_ctor_set(x_2193, 1, x_2); -x_2194 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2194, 0, x_2193); -lean_ctor_set(x_2194, 1, x_3); -x_2195 = lean_alloc_ctor(1, 1, 0); +uint8_t x_2187; uint8_t x_2188; lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; lean_object* x_2194; lean_object* x_2195; +lean_dec(x_2146); +lean_dec(x_2145); +lean_dec(x_2144); +lean_dec(x_2143); +lean_dec(x_2142); +lean_free_object(x_1966); +x_2187 = 1; +x_2188 = 0; +x_2189 = lean_box(1); +x_2190 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; +x_2191 = l_Lake_OutStream_logEntry(x_2189, x_2190, x_2187, x_2188, x_2141); +x_2192 = lean_ctor_get(x_2191, 1); +lean_inc(x_2192); +if (lean_is_exclusive(x_2191)) { + lean_ctor_release(x_2191, 0); + lean_ctor_release(x_2191, 1); + x_2193 = x_2191; +} else { + lean_dec_ref(x_2191); + x_2193 = lean_box(0); +} +x_2194 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2193)) { + x_2195 = lean_alloc_ctor(1, 2, 0); +} else { + x_2195 = x_2193; + lean_ctor_set_tag(x_2195, 1); +} lean_ctor_set(x_2195, 0, x_2194); -x_2196 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2196, 0, x_2195); -lean_ctor_set(x_2196, 1, x_4); -return x_2196; +lean_ctor_set(x_2195, 1, x_2192); +return x_2195; +} +} } else { -lean_object* x_2197; lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; uint8_t x_2206; uint8_t x_2207; uint8_t x_2208; uint8_t x_2209; uint8_t x_2210; uint8_t x_2211; uint8_t x_2212; uint8_t x_2213; lean_object* x_2214; uint8_t x_2215; lean_object* x_2216; uint8_t x_2217; uint8_t x_2218; uint8_t x_2219; lean_object* x_2220; lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; -x_2197 = lean_ctor_get(x_3, 0); -x_2198 = lean_ctor_get(x_3, 1); -x_2199 = lean_ctor_get(x_3, 2); -x_2200 = lean_ctor_get(x_3, 3); -x_2201 = lean_ctor_get(x_3, 4); -x_2202 = lean_ctor_get(x_3, 5); -x_2203 = lean_ctor_get(x_3, 6); -x_2204 = lean_ctor_get(x_3, 7); -x_2205 = lean_ctor_get(x_3, 8); -x_2206 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2207 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2208 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2209 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2210 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2211 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2212 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2213 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2214 = lean_ctor_get(x_3, 9); -x_2215 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2216 = lean_ctor_get(x_3, 10); -x_2217 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2218 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2219 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2220 = lean_ctor_get(x_3, 11); -x_2221 = lean_ctor_get(x_3, 12); -x_2222 = lean_ctor_get(x_3, 13); -x_2223 = lean_ctor_get(x_3, 14); -lean_inc(x_2223); -lean_inc(x_2222); -lean_inc(x_2221); -lean_inc(x_2220); -lean_inc(x_2216); -lean_inc(x_2214); -lean_inc(x_2205); -lean_inc(x_2204); -lean_inc(x_2203); -lean_inc(x_2202); -lean_inc(x_2201); -lean_inc(x_2200); -lean_inc(x_2199); -lean_inc(x_2198); +lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; lean_object* x_2206; uint8_t x_2207; +x_2196 = lean_ctor_get(x_1966, 0); +lean_inc(x_2196); +lean_dec(x_1966); +x_2197 = lean_ctor_get(x_2196, 0); lean_inc(x_2197); -lean_dec(x_3); -x_2224 = lean_box(0); -x_2225 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2225, 0, x_2197); -lean_ctor_set(x_2225, 1, x_2198); -lean_ctor_set(x_2225, 2, x_2199); -lean_ctor_set(x_2225, 3, x_2200); -lean_ctor_set(x_2225, 4, x_2201); -lean_ctor_set(x_2225, 5, x_2202); -lean_ctor_set(x_2225, 6, x_2203); -lean_ctor_set(x_2225, 7, x_2204); -lean_ctor_set(x_2225, 8, x_2205); -lean_ctor_set(x_2225, 9, x_2214); -lean_ctor_set(x_2225, 10, x_2216); -lean_ctor_set(x_2225, 11, x_2220); -lean_ctor_set(x_2225, 12, x_2221); -lean_ctor_set(x_2225, 13, x_2222); -lean_ctor_set(x_2225, 14, x_2223); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15, x_2206); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 1, x_2207); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 2, x_2208); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 3, x_2209); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 4, x_2210); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 5, x_2211); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 6, x_2212); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 7, x_2213); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 8, x_2215); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 9, x_2217); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 10, x_2218); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 11, x_2219); -lean_ctor_set_uint8(x_2225, sizeof(void*)*15 + 12, x_36); -x_2226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2226, 0, x_2224); -lean_ctor_set(x_2226, 1, x_2); -x_2227 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2227, 0, x_2226); -lean_ctor_set(x_2227, 1, x_2225); -x_2228 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2228, 0, x_2227); -x_2229 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2229, 0, x_2228); -lean_ctor_set(x_2229, 1, x_4); -return x_2229; +x_2198 = lean_ctor_get(x_1965, 1); +lean_inc(x_2198); +if (lean_is_exclusive(x_1965)) { + lean_ctor_release(x_1965, 0); + lean_ctor_release(x_1965, 1); + x_2199 = x_1965; +} else { + lean_dec_ref(x_1965); + x_2199 = lean_box(0); } +x_2200 = lean_ctor_get(x_2196, 1); +lean_inc(x_2200); +if (lean_is_exclusive(x_2196)) { + lean_ctor_release(x_2196, 0); + lean_ctor_release(x_2196, 1); + x_2201 = x_2196; +} else { + lean_dec_ref(x_2196); + x_2201 = lean_box(0); } +x_2202 = lean_ctor_get(x_2197, 0); +lean_inc(x_2202); +x_2203 = lean_ctor_get(x_2197, 1); +lean_inc(x_2203); +if (lean_is_exclusive(x_2197)) { + lean_ctor_release(x_2197, 0); + lean_ctor_release(x_2197, 1); + x_2204 = x_2197; +} else { + lean_dec_ref(x_2197); + x_2204 = lean_box(0); } -else +x_2205 = lean_unsigned_to_nat(100u); +x_2206 = lean_string_length(x_2202); +x_2207 = lean_nat_dec_lt(x_2205, x_2206); +lean_dec(x_2206); +if (x_2207 == 0) { -uint8_t x_2230; -lean_dec_ref(x_1); -x_2230 = !lean_is_exclusive(x_3); -if (x_2230 == 0) -{ -lean_object* x_2231; uint8_t x_2232; lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; -x_2231 = lean_box(0); -x_2232 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 8, x_2232); -x_2233 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2233, 0, x_2231); -lean_ctor_set(x_2233, 1, x_2); -x_2234 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2234, 0, x_2233); -lean_ctor_set(x_2234, 1, x_3); -x_2235 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2235, 0, x_2234); -x_2236 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2236, 0, x_2235); -lean_ctor_set(x_2236, 1, x_4); -return x_2236; -} -else -{ -lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; lean_object* x_2242; lean_object* x_2243; lean_object* x_2244; lean_object* x_2245; uint8_t x_2246; uint8_t x_2247; uint8_t x_2248; uint8_t x_2249; uint8_t x_2250; uint8_t x_2251; uint8_t x_2252; uint8_t x_2253; lean_object* x_2254; lean_object* x_2255; uint8_t x_2256; uint8_t x_2257; uint8_t x_2258; lean_object* x_2259; uint8_t x_2260; lean_object* x_2261; lean_object* x_2262; lean_object* x_2263; lean_object* x_2264; uint8_t x_2265; lean_object* x_2266; lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; -x_2237 = lean_ctor_get(x_3, 0); -x_2238 = lean_ctor_get(x_3, 1); -x_2239 = lean_ctor_get(x_3, 2); -x_2240 = lean_ctor_get(x_3, 3); -x_2241 = lean_ctor_get(x_3, 4); -x_2242 = lean_ctor_get(x_3, 5); -x_2243 = lean_ctor_get(x_3, 6); -x_2244 = lean_ctor_get(x_3, 7); -x_2245 = lean_ctor_get(x_3, 8); -x_2246 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2247 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2248 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2249 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2250 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2251 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2252 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2253 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2254 = lean_ctor_get(x_3, 9); -x_2255 = lean_ctor_get(x_3, 10); -x_2256 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2257 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2258 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2259 = lean_ctor_get(x_3, 11); -x_2260 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2261 = lean_ctor_get(x_3, 12); -x_2262 = lean_ctor_get(x_3, 13); -x_2263 = lean_ctor_get(x_3, 14); -lean_inc(x_2263); -lean_inc(x_2262); -lean_inc(x_2261); -lean_inc(x_2259); -lean_inc(x_2255); -lean_inc(x_2254); -lean_inc(x_2245); -lean_inc(x_2244); -lean_inc(x_2243); -lean_inc(x_2242); -lean_inc(x_2241); -lean_inc(x_2240); -lean_inc(x_2239); -lean_inc(x_2238); +lean_object* x_2208; lean_object* x_2209; lean_object* x_2210; lean_object* x_2211; lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; lean_object* x_2216; uint8_t x_2217; uint8_t x_2218; uint8_t x_2219; uint8_t x_2220; uint8_t x_2221; uint8_t x_2222; uint8_t x_2223; uint8_t x_2224; lean_object* x_2225; uint8_t x_2226; lean_object* x_2227; uint8_t x_2228; uint8_t x_2229; uint8_t x_2230; lean_object* x_2231; uint8_t x_2232; lean_object* x_2233; uint8_t x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; lean_object* x_2242; lean_object* x_2243; lean_object* x_2244; lean_object* x_2245; +x_2208 = lean_ctor_get(x_2200, 0); +lean_inc(x_2208); +x_2209 = lean_ctor_get(x_2200, 1); +lean_inc_ref(x_2209); +x_2210 = lean_ctor_get(x_2200, 2); +lean_inc_ref(x_2210); +x_2211 = lean_ctor_get(x_2200, 3); +lean_inc(x_2211); +x_2212 = lean_ctor_get(x_2200, 4); +lean_inc(x_2212); +x_2213 = lean_ctor_get(x_2200, 5); +lean_inc(x_2213); +x_2214 = lean_ctor_get(x_2200, 6); +lean_inc(x_2214); +x_2215 = lean_ctor_get(x_2200, 7); +lean_inc_ref(x_2215); +x_2216 = lean_ctor_get(x_2200, 8); +lean_inc(x_2216); +x_2217 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17); +x_2218 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 1); +x_2219 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 2); +x_2220 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 3); +x_2221 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 4); +x_2222 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 5); +x_2223 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 6); +x_2224 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 7); +x_2225 = lean_ctor_get(x_2200, 9); +lean_inc(x_2225); +x_2226 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 8); +x_2227 = lean_ctor_get(x_2200, 10); +lean_inc(x_2227); +x_2228 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 9); +x_2229 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 10); +x_2230 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 11); +x_2231 = lean_ctor_get(x_2200, 11); +lean_inc(x_2231); +x_2232 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 12); +x_2233 = lean_ctor_get(x_2200, 12); +lean_inc(x_2233); +x_2234 = lean_ctor_get_uint8(x_2200, sizeof(void*)*17 + 13); +x_2235 = lean_ctor_get(x_2200, 14); +lean_inc(x_2235); +x_2236 = lean_ctor_get(x_2200, 15); +lean_inc(x_2236); +x_2237 = lean_ctor_get(x_2200, 16); lean_inc(x_2237); -lean_dec(x_3); -x_2264 = lean_box(0); -x_2265 = 1; -x_2266 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2266, 0, x_2237); -lean_ctor_set(x_2266, 1, x_2238); -lean_ctor_set(x_2266, 2, x_2239); -lean_ctor_set(x_2266, 3, x_2240); -lean_ctor_set(x_2266, 4, x_2241); -lean_ctor_set(x_2266, 5, x_2242); -lean_ctor_set(x_2266, 6, x_2243); -lean_ctor_set(x_2266, 7, x_2244); -lean_ctor_set(x_2266, 8, x_2245); -lean_ctor_set(x_2266, 9, x_2254); -lean_ctor_set(x_2266, 10, x_2255); -lean_ctor_set(x_2266, 11, x_2259); -lean_ctor_set(x_2266, 12, x_2261); -lean_ctor_set(x_2266, 13, x_2262); -lean_ctor_set(x_2266, 14, x_2263); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15, x_2246); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 1, x_2247); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 2, x_2248); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 3, x_2249); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 4, x_2250); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 5, x_2251); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 6, x_2252); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 7, x_2253); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 8, x_2265); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 9, x_2256); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 10, x_2257); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 11, x_2258); -lean_ctor_set_uint8(x_2266, sizeof(void*)*15 + 12, x_2260); -x_2267 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2267, 0, x_2264); -lean_ctor_set(x_2267, 1, x_2); -x_2268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2268, 0, x_2267); -lean_ctor_set(x_2268, 1, x_2266); -x_2269 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2269, 0, x_2268); -x_2270 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2270, 0, x_2269); -lean_ctor_set(x_2270, 1, x_4); -return x_2270; +if (lean_is_exclusive(x_2200)) { + lean_ctor_release(x_2200, 0); + lean_ctor_release(x_2200, 1); + lean_ctor_release(x_2200, 2); + lean_ctor_release(x_2200, 3); + lean_ctor_release(x_2200, 4); + lean_ctor_release(x_2200, 5); + lean_ctor_release(x_2200, 6); + lean_ctor_release(x_2200, 7); + lean_ctor_release(x_2200, 8); + lean_ctor_release(x_2200, 9); + lean_ctor_release(x_2200, 10); + lean_ctor_release(x_2200, 11); + lean_ctor_release(x_2200, 12); + lean_ctor_release(x_2200, 13); + lean_ctor_release(x_2200, 14); + lean_ctor_release(x_2200, 15); + lean_ctor_release(x_2200, 16); + x_2238 = x_2200; +} else { + lean_dec_ref(x_2200); + x_2238 = lean_box(0); +} +x_2239 = lean_box(0); +x_2240 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2240, 0, x_2202); +if (lean_is_scalar(x_2238)) { + x_2241 = lean_alloc_ctor(0, 17, 14); +} else { + x_2241 = x_2238; +} +lean_ctor_set(x_2241, 0, x_2208); +lean_ctor_set(x_2241, 1, x_2209); +lean_ctor_set(x_2241, 2, x_2210); +lean_ctor_set(x_2241, 3, x_2211); +lean_ctor_set(x_2241, 4, x_2212); +lean_ctor_set(x_2241, 5, x_2213); +lean_ctor_set(x_2241, 6, x_2214); +lean_ctor_set(x_2241, 7, x_2215); +lean_ctor_set(x_2241, 8, x_2216); +lean_ctor_set(x_2241, 9, x_2225); +lean_ctor_set(x_2241, 10, x_2227); +lean_ctor_set(x_2241, 11, x_2231); +lean_ctor_set(x_2241, 12, x_2233); +lean_ctor_set(x_2241, 13, x_2240); +lean_ctor_set(x_2241, 14, x_2235); +lean_ctor_set(x_2241, 15, x_2236); +lean_ctor_set(x_2241, 16, x_2237); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17, x_2217); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 1, x_2218); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 2, x_2219); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 3, x_2220); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 4, x_2221); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 5, x_2222); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 6, x_2223); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 7, x_2224); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 8, x_2226); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 9, x_2228); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 10, x_2229); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 11, x_2230); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 12, x_2232); +lean_ctor_set_uint8(x_2241, sizeof(void*)*17 + 13, x_2234); +if (lean_is_scalar(x_2204)) { + x_2242 = lean_alloc_ctor(0, 2, 0); +} else { + x_2242 = x_2204; +} +lean_ctor_set(x_2242, 0, x_2239); +lean_ctor_set(x_2242, 1, x_2203); +if (lean_is_scalar(x_2201)) { + x_2243 = lean_alloc_ctor(0, 2, 0); +} else { + x_2243 = x_2201; +} +lean_ctor_set(x_2243, 0, x_2242); +lean_ctor_set(x_2243, 1, x_2241); +x_2244 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2244, 0, x_2243); +if (lean_is_scalar(x_2199)) { + x_2245 = lean_alloc_ctor(0, 2, 0); +} else { + x_2245 = x_2199; +} +lean_ctor_set(x_2245, 0, x_2244); +lean_ctor_set(x_2245, 1, x_2198); +return x_2245; +} +else +{ +uint8_t x_2246; uint8_t x_2247; lean_object* x_2248; lean_object* x_2249; lean_object* x_2250; lean_object* x_2251; lean_object* x_2252; lean_object* x_2253; lean_object* x_2254; +lean_dec(x_2204); +lean_dec(x_2203); +lean_dec(x_2202); +lean_dec(x_2201); +lean_dec(x_2200); +lean_dec(x_2199); +x_2246 = 1; +x_2247 = 0; +x_2248 = lean_box(1); +x_2249 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45; +x_2250 = l_Lake_OutStream_logEntry(x_2248, x_2249, x_2246, x_2247, x_2198); +x_2251 = lean_ctor_get(x_2250, 1); +lean_inc(x_2251); +if (lean_is_exclusive(x_2250)) { + lean_ctor_release(x_2250, 0); + lean_ctor_release(x_2250, 1); + x_2252 = x_2250; +} else { + lean_dec_ref(x_2250); + x_2252 = lean_box(0); +} +x_2253 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2252)) { + x_2254 = lean_alloc_ctor(1, 2, 0); +} else { + x_2254 = x_2252; + lean_ctor_set_tag(x_2254, 1); +} +lean_ctor_set(x_2254, 0, x_2253); +lean_ctor_set(x_2254, 1, x_2251); +return x_2254; +} +} } } } else { -uint8_t x_2271; +lean_object* x_2255; lean_object* x_2256; lean_object* x_2257; lean_dec_ref(x_1); -x_2271 = !lean_is_exclusive(x_3); +x_2255 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46; +x_2256 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_39, x_2255, x_2, x_3, x_4); +x_2257 = lean_ctor_get(x_2256, 0); +lean_inc(x_2257); +if (lean_obj_tag(x_2257) == 0) +{ +uint8_t x_2258; +x_2258 = !lean_is_exclusive(x_2256); +if (x_2258 == 0) +{ +lean_object* x_2259; uint8_t x_2260; +x_2259 = lean_ctor_get(x_2256, 0); +lean_dec(x_2259); +x_2260 = !lean_is_exclusive(x_2257); +if (x_2260 == 0) +{ +return x_2256; +} +else +{ +lean_object* x_2261; lean_object* x_2262; +x_2261 = lean_ctor_get(x_2257, 0); +lean_inc(x_2261); +lean_dec(x_2257); +x_2262 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2262, 0, x_2261); +lean_ctor_set(x_2256, 0, x_2262); +return x_2256; +} +} +else +{ +lean_object* x_2263; lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; +x_2263 = lean_ctor_get(x_2256, 1); +lean_inc(x_2263); +lean_dec(x_2256); +x_2264 = lean_ctor_get(x_2257, 0); +lean_inc(x_2264); +if (lean_is_exclusive(x_2257)) { + lean_ctor_release(x_2257, 0); + x_2265 = x_2257; +} else { + lean_dec_ref(x_2257); + x_2265 = lean_box(0); +} +if (lean_is_scalar(x_2265)) { + x_2266 = lean_alloc_ctor(0, 1, 0); +} else { + x_2266 = x_2265; +} +lean_ctor_set(x_2266, 0, x_2264); +x_2267 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2267, 0, x_2266); +lean_ctor_set(x_2267, 1, x_2263); +return x_2267; +} +} +else +{ +uint8_t x_2268; +x_2268 = !lean_is_exclusive(x_2257); +if (x_2268 == 0) +{ +lean_object* x_2269; lean_object* x_2270; uint8_t x_2271; +x_2269 = lean_ctor_get(x_2257, 0); +x_2270 = lean_ctor_get(x_2269, 0); +lean_inc(x_2270); +x_2271 = !lean_is_exclusive(x_2256); if (x_2271 == 0) { -lean_object* x_2272; uint8_t x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; lean_object* x_2277; -x_2272 = lean_box(0); -x_2273 = 2; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 8, x_2273); -x_2274 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2274, 0, x_2272); -lean_ctor_set(x_2274, 1, x_2); -x_2275 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2275, 0, x_2274); -lean_ctor_set(x_2275, 1, x_3); -x_2276 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2276, 0, x_2275); -x_2277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2277, 0, x_2276); -lean_ctor_set(x_2277, 1, x_4); -return x_2277; +lean_object* x_2272; lean_object* x_2273; uint8_t x_2274; +x_2272 = lean_ctor_get(x_2256, 1); +x_2273 = lean_ctor_get(x_2256, 0); +lean_dec(x_2273); +x_2274 = !lean_is_exclusive(x_2269); +if (x_2274 == 0) +{ +lean_object* x_2275; lean_object* x_2276; uint8_t x_2277; +x_2275 = lean_ctor_get(x_2269, 1); +x_2276 = lean_ctor_get(x_2269, 0); +lean_dec(x_2276); +x_2277 = !lean_is_exclusive(x_2270); +if (x_2277 == 0) +{ +lean_object* x_2278; lean_object* x_2279; lean_object* x_2280; +x_2278 = lean_ctor_get(x_2270, 0); +x_2279 = lean_ctor_get(x_2270, 1); +x_2280 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_2278); +if (lean_obj_tag(x_2280) == 0) +{ +uint8_t x_2281; +x_2281 = !lean_is_exclusive(x_2275); +if (x_2281 == 0) +{ +lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; +x_2282 = lean_ctor_get(x_2275, 12); +lean_dec(x_2282); +x_2283 = lean_box(0); +x_2284 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2284, 0, x_2278); +lean_ctor_set(x_2275, 12, x_2284); +lean_ctor_set_uint8(x_2275, sizeof(void*)*17 + 13, x_40); +lean_ctor_set(x_2270, 0, x_2283); +return x_2256; } else { -lean_object* x_2278; lean_object* x_2279; lean_object* x_2280; lean_object* x_2281; lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; lean_object* x_2285; lean_object* x_2286; uint8_t x_2287; uint8_t x_2288; uint8_t x_2289; uint8_t x_2290; uint8_t x_2291; uint8_t x_2292; uint8_t x_2293; uint8_t x_2294; lean_object* x_2295; lean_object* x_2296; uint8_t x_2297; uint8_t x_2298; uint8_t x_2299; lean_object* x_2300; uint8_t x_2301; lean_object* x_2302; lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; uint8_t x_2306; lean_object* x_2307; lean_object* x_2308; lean_object* x_2309; lean_object* x_2310; lean_object* x_2311; -x_2278 = lean_ctor_get(x_3, 0); -x_2279 = lean_ctor_get(x_3, 1); -x_2280 = lean_ctor_get(x_3, 2); -x_2281 = lean_ctor_get(x_3, 3); -x_2282 = lean_ctor_get(x_3, 4); -x_2283 = lean_ctor_get(x_3, 5); -x_2284 = lean_ctor_get(x_3, 6); -x_2285 = lean_ctor_get(x_3, 7); -x_2286 = lean_ctor_get(x_3, 8); -x_2287 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2288 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2289 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2290 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2291 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2292 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2293 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2294 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2295 = lean_ctor_get(x_3, 9); -x_2296 = lean_ctor_get(x_3, 10); -x_2297 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2298 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2299 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2300 = lean_ctor_get(x_3, 11); -x_2301 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2302 = lean_ctor_get(x_3, 12); -x_2303 = lean_ctor_get(x_3, 13); -x_2304 = lean_ctor_get(x_3, 14); +lean_object* x_2285; lean_object* x_2286; lean_object* x_2287; lean_object* x_2288; lean_object* x_2289; lean_object* x_2290; lean_object* x_2291; lean_object* x_2292; lean_object* x_2293; uint8_t x_2294; uint8_t x_2295; uint8_t x_2296; uint8_t x_2297; uint8_t x_2298; uint8_t x_2299; uint8_t x_2300; uint8_t x_2301; lean_object* x_2302; uint8_t x_2303; lean_object* x_2304; uint8_t x_2305; uint8_t x_2306; uint8_t x_2307; lean_object* x_2308; uint8_t x_2309; lean_object* x_2310; lean_object* x_2311; lean_object* x_2312; lean_object* x_2313; lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; +x_2285 = lean_ctor_get(x_2275, 0); +x_2286 = lean_ctor_get(x_2275, 1); +x_2287 = lean_ctor_get(x_2275, 2); +x_2288 = lean_ctor_get(x_2275, 3); +x_2289 = lean_ctor_get(x_2275, 4); +x_2290 = lean_ctor_get(x_2275, 5); +x_2291 = lean_ctor_get(x_2275, 6); +x_2292 = lean_ctor_get(x_2275, 7); +x_2293 = lean_ctor_get(x_2275, 8); +x_2294 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17); +x_2295 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 1); +x_2296 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 2); +x_2297 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 3); +x_2298 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 4); +x_2299 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 5); +x_2300 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 6); +x_2301 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 7); +x_2302 = lean_ctor_get(x_2275, 9); +x_2303 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 8); +x_2304 = lean_ctor_get(x_2275, 10); +x_2305 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 9); +x_2306 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 10); +x_2307 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 11); +x_2308 = lean_ctor_get(x_2275, 11); +x_2309 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 12); +x_2310 = lean_ctor_get(x_2275, 13); +x_2311 = lean_ctor_get(x_2275, 14); +x_2312 = lean_ctor_get(x_2275, 15); +x_2313 = lean_ctor_get(x_2275, 16); +lean_inc(x_2313); +lean_inc(x_2312); +lean_inc(x_2311); +lean_inc(x_2310); +lean_inc(x_2308); lean_inc(x_2304); -lean_inc(x_2303); lean_inc(x_2302); -lean_inc(x_2300); -lean_inc(x_2296); -lean_inc(x_2295); +lean_inc(x_2293); +lean_inc(x_2292); +lean_inc(x_2291); +lean_inc(x_2290); +lean_inc(x_2289); +lean_inc(x_2288); +lean_inc(x_2287); lean_inc(x_2286); lean_inc(x_2285); -lean_inc(x_2284); -lean_inc(x_2283); -lean_inc(x_2282); -lean_inc(x_2281); -lean_inc(x_2280); -lean_inc(x_2279); -lean_inc(x_2278); -lean_dec(x_3); -x_2305 = lean_box(0); -x_2306 = 2; -x_2307 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2307, 0, x_2278); -lean_ctor_set(x_2307, 1, x_2279); -lean_ctor_set(x_2307, 2, x_2280); -lean_ctor_set(x_2307, 3, x_2281); -lean_ctor_set(x_2307, 4, x_2282); -lean_ctor_set(x_2307, 5, x_2283); -lean_ctor_set(x_2307, 6, x_2284); -lean_ctor_set(x_2307, 7, x_2285); -lean_ctor_set(x_2307, 8, x_2286); -lean_ctor_set(x_2307, 9, x_2295); -lean_ctor_set(x_2307, 10, x_2296); -lean_ctor_set(x_2307, 11, x_2300); -lean_ctor_set(x_2307, 12, x_2302); -lean_ctor_set(x_2307, 13, x_2303); -lean_ctor_set(x_2307, 14, x_2304); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15, x_2287); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 1, x_2288); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 2, x_2289); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 3, x_2290); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 4, x_2291); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 5, x_2292); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 6, x_2293); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 7, x_2294); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 8, x_2306); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 9, x_2297); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 10, x_2298); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 11, x_2299); -lean_ctor_set_uint8(x_2307, sizeof(void*)*15 + 12, x_2301); -x_2308 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2308, 0, x_2305); -lean_ctor_set(x_2308, 1, x_2); -x_2309 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2309, 0, x_2308); -lean_ctor_set(x_2309, 1, x_2307); -x_2310 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2310, 0, x_2309); -x_2311 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2311, 0, x_2310); -lean_ctor_set(x_2311, 1, x_4); -return x_2311; +lean_dec(x_2275); +x_2314 = lean_box(0); +x_2315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2315, 0, x_2278); +x_2316 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2316, 0, x_2285); +lean_ctor_set(x_2316, 1, x_2286); +lean_ctor_set(x_2316, 2, x_2287); +lean_ctor_set(x_2316, 3, x_2288); +lean_ctor_set(x_2316, 4, x_2289); +lean_ctor_set(x_2316, 5, x_2290); +lean_ctor_set(x_2316, 6, x_2291); +lean_ctor_set(x_2316, 7, x_2292); +lean_ctor_set(x_2316, 8, x_2293); +lean_ctor_set(x_2316, 9, x_2302); +lean_ctor_set(x_2316, 10, x_2304); +lean_ctor_set(x_2316, 11, x_2308); +lean_ctor_set(x_2316, 12, x_2315); +lean_ctor_set(x_2316, 13, x_2310); +lean_ctor_set(x_2316, 14, x_2311); +lean_ctor_set(x_2316, 15, x_2312); +lean_ctor_set(x_2316, 16, x_2313); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17, x_2294); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 1, x_2295); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 2, x_2296); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 3, x_2297); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 4, x_2298); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 5, x_2299); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 6, x_2300); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 7, x_2301); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 8, x_2303); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 9, x_2305); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 10, x_2306); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 11, x_2307); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 12, x_2309); +lean_ctor_set_uint8(x_2316, sizeof(void*)*17 + 13, x_40); +lean_ctor_set(x_2270, 0, x_2314); +lean_ctor_set(x_2269, 1, x_2316); +return x_2256; +} +} +else +{ +lean_object* x_2317; uint8_t x_2318; uint8_t x_2319; lean_object* x_2320; uint8_t x_2321; lean_object* x_2322; lean_object* x_2323; uint8_t x_2324; +lean_free_object(x_2270); +lean_dec(x_2279); +lean_dec(x_2278); +lean_free_object(x_2269); +lean_dec(x_2275); +lean_free_object(x_2256); +lean_free_object(x_2257); +x_2317 = lean_ctor_get(x_2280, 0); +lean_inc(x_2317); +lean_dec_ref(x_2280); +x_2318 = 1; +x_2319 = 0; +x_2320 = lean_box(1); +x_2321 = 3; +x_2322 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_2322, 0, x_2317); +lean_ctor_set_uint8(x_2322, sizeof(void*)*1, x_2321); +x_2323 = l_Lake_OutStream_logEntry(x_2320, x_2322, x_2318, x_2319, x_2272); +lean_dec_ref(x_2322); +x_2324 = !lean_is_exclusive(x_2323); +if (x_2324 == 0) +{ +lean_object* x_2325; lean_object* x_2326; +x_2325 = lean_ctor_get(x_2323, 0); +lean_dec(x_2325); +x_2326 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +lean_ctor_set_tag(x_2323, 1); +lean_ctor_set(x_2323, 0, x_2326); +return x_2323; +} +else +{ +lean_object* x_2327; lean_object* x_2328; lean_object* x_2329; +x_2327 = lean_ctor_get(x_2323, 1); +lean_inc(x_2327); +lean_dec(x_2323); +x_2328 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +x_2329 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2329, 0, x_2328); +lean_ctor_set(x_2329, 1, x_2327); +return x_2329; } } } else { -uint8_t x_2312; -lean_dec_ref(x_1); -x_2312 = !lean_is_exclusive(x_3); -if (x_2312 == 0) +lean_object* x_2330; lean_object* x_2331; lean_object* x_2332; +x_2330 = lean_ctor_get(x_2270, 0); +x_2331 = lean_ctor_get(x_2270, 1); +lean_inc(x_2331); +lean_inc(x_2330); +lean_dec(x_2270); +x_2332 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_2330); +if (lean_obj_tag(x_2332) == 0) { -lean_object* x_2313; lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; -x_2313 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 11, x_30); -x_2314 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2314, 0, x_2313); -lean_ctor_set(x_2314, 1, x_2); -x_2315 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2315, 0, x_2314); -lean_ctor_set(x_2315, 1, x_3); -x_2316 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2316, 0, x_2315); -x_2317 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2317, 0, x_2316); -lean_ctor_set(x_2317, 1, x_4); -return x_2317; -} -else -{ -lean_object* x_2318; lean_object* x_2319; lean_object* x_2320; lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; lean_object* x_2326; uint8_t x_2327; uint8_t x_2328; uint8_t x_2329; uint8_t x_2330; uint8_t x_2331; uint8_t x_2332; uint8_t x_2333; uint8_t x_2334; lean_object* x_2335; uint8_t x_2336; lean_object* x_2337; uint8_t x_2338; uint8_t x_2339; lean_object* x_2340; uint8_t x_2341; lean_object* x_2342; lean_object* x_2343; lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; lean_object* x_2350; -x_2318 = lean_ctor_get(x_3, 0); -x_2319 = lean_ctor_get(x_3, 1); -x_2320 = lean_ctor_get(x_3, 2); -x_2321 = lean_ctor_get(x_3, 3); -x_2322 = lean_ctor_get(x_3, 4); -x_2323 = lean_ctor_get(x_3, 5); -x_2324 = lean_ctor_get(x_3, 6); -x_2325 = lean_ctor_get(x_3, 7); -x_2326 = lean_ctor_get(x_3, 8); -x_2327 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2328 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2329 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2330 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2331 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2332 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2333 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2334 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2335 = lean_ctor_get(x_3, 9); -x_2336 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2337 = lean_ctor_get(x_3, 10); -x_2338 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2339 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2340 = lean_ctor_get(x_3, 11); -x_2341 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2342 = lean_ctor_get(x_3, 12); -x_2343 = lean_ctor_get(x_3, 13); -x_2344 = lean_ctor_get(x_3, 14); -lean_inc(x_2344); -lean_inc(x_2343); -lean_inc(x_2342); -lean_inc(x_2340); +lean_object* x_2333; lean_object* x_2334; lean_object* x_2335; lean_object* x_2336; lean_object* x_2337; lean_object* x_2338; lean_object* x_2339; lean_object* x_2340; lean_object* x_2341; uint8_t x_2342; uint8_t x_2343; uint8_t x_2344; uint8_t x_2345; uint8_t x_2346; uint8_t x_2347; uint8_t x_2348; uint8_t x_2349; lean_object* x_2350; uint8_t x_2351; lean_object* x_2352; uint8_t x_2353; uint8_t x_2354; uint8_t x_2355; lean_object* x_2356; uint8_t x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; lean_object* x_2364; lean_object* x_2365; lean_object* x_2366; +x_2333 = lean_ctor_get(x_2275, 0); +lean_inc(x_2333); +x_2334 = lean_ctor_get(x_2275, 1); +lean_inc_ref(x_2334); +x_2335 = lean_ctor_get(x_2275, 2); +lean_inc_ref(x_2335); +x_2336 = lean_ctor_get(x_2275, 3); +lean_inc(x_2336); +x_2337 = lean_ctor_get(x_2275, 4); lean_inc(x_2337); -lean_inc(x_2335); -lean_inc(x_2326); -lean_inc(x_2325); -lean_inc(x_2324); -lean_inc(x_2323); -lean_inc(x_2322); -lean_inc(x_2321); -lean_inc(x_2320); -lean_inc(x_2319); -lean_inc(x_2318); -lean_dec(x_3); -x_2345 = lean_box(0); -x_2346 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2346, 0, x_2318); -lean_ctor_set(x_2346, 1, x_2319); -lean_ctor_set(x_2346, 2, x_2320); -lean_ctor_set(x_2346, 3, x_2321); -lean_ctor_set(x_2346, 4, x_2322); -lean_ctor_set(x_2346, 5, x_2323); -lean_ctor_set(x_2346, 6, x_2324); -lean_ctor_set(x_2346, 7, x_2325); -lean_ctor_set(x_2346, 8, x_2326); -lean_ctor_set(x_2346, 9, x_2335); -lean_ctor_set(x_2346, 10, x_2337); -lean_ctor_set(x_2346, 11, x_2340); -lean_ctor_set(x_2346, 12, x_2342); -lean_ctor_set(x_2346, 13, x_2343); -lean_ctor_set(x_2346, 14, x_2344); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15, x_2327); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 1, x_2328); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 2, x_2329); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 3, x_2330); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 4, x_2331); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 5, x_2332); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 6, x_2333); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 7, x_2334); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 8, x_2336); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 9, x_2338); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 10, x_2339); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 11, x_30); -lean_ctor_set_uint8(x_2346, sizeof(void*)*15 + 12, x_2341); -x_2347 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2347, 0, x_2345); -lean_ctor_set(x_2347, 1, x_2); -x_2348 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2348, 0, x_2347); -lean_ctor_set(x_2348, 1, x_2346); -x_2349 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2349, 0, x_2348); -x_2350 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2350, 0, x_2349); -lean_ctor_set(x_2350, 1, x_4); -return x_2350; -} -} -} -else -{ -uint8_t x_2351; -lean_dec_ref(x_1); -x_2351 = !lean_is_exclusive(x_3); -if (x_2351 == 0) -{ -lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; lean_object* x_2356; -x_2352 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 6, x_26); -x_2353 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2353, 0, x_2352); -lean_ctor_set(x_2353, 1, x_2); -x_2354 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2354, 0, x_2353); -lean_ctor_set(x_2354, 1, x_3); -x_2355 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2355, 0, x_2354); -x_2356 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2356, 0, x_2355); -lean_ctor_set(x_2356, 1, x_4); -return x_2356; -} -else -{ -lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; lean_object* x_2363; lean_object* x_2364; lean_object* x_2365; uint8_t x_2366; uint8_t x_2367; uint8_t x_2368; uint8_t x_2369; uint8_t x_2370; uint8_t x_2371; uint8_t x_2372; lean_object* x_2373; uint8_t x_2374; lean_object* x_2375; uint8_t x_2376; uint8_t x_2377; uint8_t x_2378; lean_object* x_2379; uint8_t x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; -x_2357 = lean_ctor_get(x_3, 0); -x_2358 = lean_ctor_get(x_3, 1); -x_2359 = lean_ctor_get(x_3, 2); -x_2360 = lean_ctor_get(x_3, 3); -x_2361 = lean_ctor_get(x_3, 4); -x_2362 = lean_ctor_get(x_3, 5); -x_2363 = lean_ctor_get(x_3, 6); -x_2364 = lean_ctor_get(x_3, 7); -x_2365 = lean_ctor_get(x_3, 8); -x_2366 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2367 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2368 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2369 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2370 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2371 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2372 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2373 = lean_ctor_get(x_3, 9); -x_2374 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2375 = lean_ctor_get(x_3, 10); -x_2376 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2377 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2378 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2379 = lean_ctor_get(x_3, 11); -x_2380 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2381 = lean_ctor_get(x_3, 12); -x_2382 = lean_ctor_get(x_3, 13); -x_2383 = lean_ctor_get(x_3, 14); -lean_inc(x_2383); -lean_inc(x_2382); -lean_inc(x_2381); -lean_inc(x_2379); -lean_inc(x_2375); -lean_inc(x_2373); -lean_inc(x_2365); -lean_inc(x_2364); -lean_inc(x_2363); -lean_inc(x_2362); -lean_inc(x_2361); -lean_inc(x_2360); -lean_inc(x_2359); +x_2338 = lean_ctor_get(x_2275, 5); +lean_inc(x_2338); +x_2339 = lean_ctor_get(x_2275, 6); +lean_inc(x_2339); +x_2340 = lean_ctor_get(x_2275, 7); +lean_inc_ref(x_2340); +x_2341 = lean_ctor_get(x_2275, 8); +lean_inc(x_2341); +x_2342 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17); +x_2343 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 1); +x_2344 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 2); +x_2345 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 3); +x_2346 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 4); +x_2347 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 5); +x_2348 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 6); +x_2349 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 7); +x_2350 = lean_ctor_get(x_2275, 9); +lean_inc(x_2350); +x_2351 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 8); +x_2352 = lean_ctor_get(x_2275, 10); +lean_inc(x_2352); +x_2353 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 9); +x_2354 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 10); +x_2355 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 11); +x_2356 = lean_ctor_get(x_2275, 11); +lean_inc(x_2356); +x_2357 = lean_ctor_get_uint8(x_2275, sizeof(void*)*17 + 12); +x_2358 = lean_ctor_get(x_2275, 13); lean_inc(x_2358); -lean_inc(x_2357); -lean_dec(x_3); -x_2384 = lean_box(0); -x_2385 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2385, 0, x_2357); -lean_ctor_set(x_2385, 1, x_2358); -lean_ctor_set(x_2385, 2, x_2359); -lean_ctor_set(x_2385, 3, x_2360); -lean_ctor_set(x_2385, 4, x_2361); -lean_ctor_set(x_2385, 5, x_2362); -lean_ctor_set(x_2385, 6, x_2363); -lean_ctor_set(x_2385, 7, x_2364); -lean_ctor_set(x_2385, 8, x_2365); -lean_ctor_set(x_2385, 9, x_2373); -lean_ctor_set(x_2385, 10, x_2375); -lean_ctor_set(x_2385, 11, x_2379); -lean_ctor_set(x_2385, 12, x_2381); -lean_ctor_set(x_2385, 13, x_2382); -lean_ctor_set(x_2385, 14, x_2383); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15, x_2366); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 1, x_2367); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 2, x_2368); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 3, x_2369); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 4, x_2370); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 5, x_2371); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 6, x_26); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 7, x_2372); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 8, x_2374); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 9, x_2376); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 10, x_2377); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 11, x_2378); -lean_ctor_set_uint8(x_2385, sizeof(void*)*15 + 12, x_2380); -x_2386 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2386, 0, x_2384); -lean_ctor_set(x_2386, 1, x_2); -x_2387 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2387, 0, x_2386); -lean_ctor_set(x_2387, 1, x_2385); -x_2388 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2388, 0, x_2387); -x_2389 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2389, 0, x_2388); -lean_ctor_set(x_2389, 1, x_4); -return x_2389; +x_2359 = lean_ctor_get(x_2275, 14); +lean_inc(x_2359); +x_2360 = lean_ctor_get(x_2275, 15); +lean_inc(x_2360); +x_2361 = lean_ctor_get(x_2275, 16); +lean_inc(x_2361); +if (lean_is_exclusive(x_2275)) { + lean_ctor_release(x_2275, 0); + lean_ctor_release(x_2275, 1); + lean_ctor_release(x_2275, 2); + lean_ctor_release(x_2275, 3); + lean_ctor_release(x_2275, 4); + lean_ctor_release(x_2275, 5); + lean_ctor_release(x_2275, 6); + lean_ctor_release(x_2275, 7); + lean_ctor_release(x_2275, 8); + lean_ctor_release(x_2275, 9); + lean_ctor_release(x_2275, 10); + lean_ctor_release(x_2275, 11); + lean_ctor_release(x_2275, 12); + lean_ctor_release(x_2275, 13); + lean_ctor_release(x_2275, 14); + lean_ctor_release(x_2275, 15); + lean_ctor_release(x_2275, 16); + x_2362 = x_2275; +} else { + lean_dec_ref(x_2275); + x_2362 = lean_box(0); +} +x_2363 = lean_box(0); +x_2364 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2364, 0, x_2330); +if (lean_is_scalar(x_2362)) { + x_2365 = lean_alloc_ctor(0, 17, 14); +} else { + x_2365 = x_2362; +} +lean_ctor_set(x_2365, 0, x_2333); +lean_ctor_set(x_2365, 1, x_2334); +lean_ctor_set(x_2365, 2, x_2335); +lean_ctor_set(x_2365, 3, x_2336); +lean_ctor_set(x_2365, 4, x_2337); +lean_ctor_set(x_2365, 5, x_2338); +lean_ctor_set(x_2365, 6, x_2339); +lean_ctor_set(x_2365, 7, x_2340); +lean_ctor_set(x_2365, 8, x_2341); +lean_ctor_set(x_2365, 9, x_2350); +lean_ctor_set(x_2365, 10, x_2352); +lean_ctor_set(x_2365, 11, x_2356); +lean_ctor_set(x_2365, 12, x_2364); +lean_ctor_set(x_2365, 13, x_2358); +lean_ctor_set(x_2365, 14, x_2359); +lean_ctor_set(x_2365, 15, x_2360); +lean_ctor_set(x_2365, 16, x_2361); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17, x_2342); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 1, x_2343); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 2, x_2344); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 3, x_2345); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 4, x_2346); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 5, x_2347); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 6, x_2348); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 7, x_2349); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 8, x_2351); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 9, x_2353); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 10, x_2354); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 11, x_2355); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 12, x_2357); +lean_ctor_set_uint8(x_2365, sizeof(void*)*17 + 13, x_40); +x_2366 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2366, 0, x_2363); +lean_ctor_set(x_2366, 1, x_2331); +lean_ctor_set(x_2269, 1, x_2365); +lean_ctor_set(x_2269, 0, x_2366); +return x_2256; +} +else +{ +lean_object* x_2367; uint8_t x_2368; uint8_t x_2369; lean_object* x_2370; uint8_t x_2371; lean_object* x_2372; lean_object* x_2373; lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; +lean_dec(x_2331); +lean_dec(x_2330); +lean_free_object(x_2269); +lean_dec(x_2275); +lean_free_object(x_2256); +lean_free_object(x_2257); +x_2367 = lean_ctor_get(x_2332, 0); +lean_inc(x_2367); +lean_dec_ref(x_2332); +x_2368 = 1; +x_2369 = 0; +x_2370 = lean_box(1); +x_2371 = 3; +x_2372 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_2372, 0, x_2367); +lean_ctor_set_uint8(x_2372, sizeof(void*)*1, x_2371); +x_2373 = l_Lake_OutStream_logEntry(x_2370, x_2372, x_2368, x_2369, x_2272); +lean_dec_ref(x_2372); +x_2374 = lean_ctor_get(x_2373, 1); +lean_inc(x_2374); +if (lean_is_exclusive(x_2373)) { + lean_ctor_release(x_2373, 0); + lean_ctor_release(x_2373, 1); + x_2375 = x_2373; +} else { + lean_dec_ref(x_2373); + x_2375 = lean_box(0); +} +x_2376 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2375)) { + x_2377 = lean_alloc_ctor(1, 2, 0); +} else { + x_2377 = x_2375; + lean_ctor_set_tag(x_2377, 1); +} +lean_ctor_set(x_2377, 0, x_2376); +lean_ctor_set(x_2377, 1, x_2374); +return x_2377; } } } else { -uint8_t x_2390; -lean_dec_ref(x_1); -x_2390 = !lean_is_exclusive(x_3); -if (x_2390 == 0) -{ -lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; -x_2391 = lean_ctor_get(x_3, 9); -lean_dec(x_2391); -x_2392 = lean_box(0); -x_2393 = lean_box(x_24); -x_2394 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2394, 0, x_2393); -lean_ctor_set(x_3, 9, x_2394); -x_2395 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2395, 0, x_2392); -lean_ctor_set(x_2395, 1, x_2); -x_2396 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2396, 0, x_2395); -lean_ctor_set(x_2396, 1, x_3); -x_2397 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2397, 0, x_2396); -x_2398 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2398, 0, x_2397); -lean_ctor_set(x_2398, 1, x_4); -return x_2398; +lean_object* x_2378; lean_object* x_2379; lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; +x_2378 = lean_ctor_get(x_2269, 1); +lean_inc(x_2378); +lean_dec(x_2269); +x_2379 = lean_ctor_get(x_2270, 0); +lean_inc(x_2379); +x_2380 = lean_ctor_get(x_2270, 1); +lean_inc(x_2380); +if (lean_is_exclusive(x_2270)) { + lean_ctor_release(x_2270, 0); + lean_ctor_release(x_2270, 1); + x_2381 = x_2270; +} else { + lean_dec_ref(x_2270); + x_2381 = lean_box(0); } -else +x_2382 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_2379); +if (lean_obj_tag(x_2382) == 0) { -lean_object* x_2399; lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; uint8_t x_2408; uint8_t x_2409; uint8_t x_2410; uint8_t x_2411; uint8_t x_2412; uint8_t x_2413; uint8_t x_2414; uint8_t x_2415; uint8_t x_2416; lean_object* x_2417; uint8_t x_2418; uint8_t x_2419; uint8_t x_2420; lean_object* x_2421; uint8_t x_2422; lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; lean_object* x_2428; lean_object* x_2429; lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; -x_2399 = lean_ctor_get(x_3, 0); -x_2400 = lean_ctor_get(x_3, 1); -x_2401 = lean_ctor_get(x_3, 2); -x_2402 = lean_ctor_get(x_3, 3); -x_2403 = lean_ctor_get(x_3, 4); -x_2404 = lean_ctor_get(x_3, 5); -x_2405 = lean_ctor_get(x_3, 6); -x_2406 = lean_ctor_get(x_3, 7); -x_2407 = lean_ctor_get(x_3, 8); -x_2408 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2409 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2410 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2411 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2412 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2413 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2414 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2415 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2416 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2417 = lean_ctor_get(x_3, 10); -x_2418 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2419 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2420 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2421 = lean_ctor_get(x_3, 11); -x_2422 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2423 = lean_ctor_get(x_3, 12); -x_2424 = lean_ctor_get(x_3, 13); -x_2425 = lean_ctor_get(x_3, 14); -lean_inc(x_2425); -lean_inc(x_2424); -lean_inc(x_2423); -lean_inc(x_2421); -lean_inc(x_2417); -lean_inc(x_2407); -lean_inc(x_2406); -lean_inc(x_2405); -lean_inc(x_2404); -lean_inc(x_2403); -lean_inc(x_2402); -lean_inc(x_2401); +lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; uint8_t x_2392; uint8_t x_2393; uint8_t x_2394; uint8_t x_2395; uint8_t x_2396; uint8_t x_2397; uint8_t x_2398; uint8_t x_2399; lean_object* x_2400; uint8_t x_2401; lean_object* x_2402; uint8_t x_2403; uint8_t x_2404; uint8_t x_2405; lean_object* x_2406; uint8_t x_2407; lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; +x_2383 = lean_ctor_get(x_2378, 0); +lean_inc(x_2383); +x_2384 = lean_ctor_get(x_2378, 1); +lean_inc_ref(x_2384); +x_2385 = lean_ctor_get(x_2378, 2); +lean_inc_ref(x_2385); +x_2386 = lean_ctor_get(x_2378, 3); +lean_inc(x_2386); +x_2387 = lean_ctor_get(x_2378, 4); +lean_inc(x_2387); +x_2388 = lean_ctor_get(x_2378, 5); +lean_inc(x_2388); +x_2389 = lean_ctor_get(x_2378, 6); +lean_inc(x_2389); +x_2390 = lean_ctor_get(x_2378, 7); +lean_inc_ref(x_2390); +x_2391 = lean_ctor_get(x_2378, 8); +lean_inc(x_2391); +x_2392 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17); +x_2393 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 1); +x_2394 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 2); +x_2395 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 3); +x_2396 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 4); +x_2397 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 5); +x_2398 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 6); +x_2399 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 7); +x_2400 = lean_ctor_get(x_2378, 9); lean_inc(x_2400); -lean_inc(x_2399); -lean_dec(x_3); -x_2426 = lean_box(0); -x_2427 = lean_box(x_24); -x_2428 = lean_alloc_ctor(1, 1, 0); +x_2401 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 8); +x_2402 = lean_ctor_get(x_2378, 10); +lean_inc(x_2402); +x_2403 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 9); +x_2404 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 10); +x_2405 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 11); +x_2406 = lean_ctor_get(x_2378, 11); +lean_inc(x_2406); +x_2407 = lean_ctor_get_uint8(x_2378, sizeof(void*)*17 + 12); +x_2408 = lean_ctor_get(x_2378, 13); +lean_inc(x_2408); +x_2409 = lean_ctor_get(x_2378, 14); +lean_inc(x_2409); +x_2410 = lean_ctor_get(x_2378, 15); +lean_inc(x_2410); +x_2411 = lean_ctor_get(x_2378, 16); +lean_inc(x_2411); +if (lean_is_exclusive(x_2378)) { + lean_ctor_release(x_2378, 0); + lean_ctor_release(x_2378, 1); + lean_ctor_release(x_2378, 2); + lean_ctor_release(x_2378, 3); + lean_ctor_release(x_2378, 4); + lean_ctor_release(x_2378, 5); + lean_ctor_release(x_2378, 6); + lean_ctor_release(x_2378, 7); + lean_ctor_release(x_2378, 8); + lean_ctor_release(x_2378, 9); + lean_ctor_release(x_2378, 10); + lean_ctor_release(x_2378, 11); + lean_ctor_release(x_2378, 12); + lean_ctor_release(x_2378, 13); + lean_ctor_release(x_2378, 14); + lean_ctor_release(x_2378, 15); + lean_ctor_release(x_2378, 16); + x_2412 = x_2378; +} else { + lean_dec_ref(x_2378); + x_2412 = lean_box(0); +} +x_2413 = lean_box(0); +x_2414 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2414, 0, x_2379); +if (lean_is_scalar(x_2412)) { + x_2415 = lean_alloc_ctor(0, 17, 14); +} else { + x_2415 = x_2412; +} +lean_ctor_set(x_2415, 0, x_2383); +lean_ctor_set(x_2415, 1, x_2384); +lean_ctor_set(x_2415, 2, x_2385); +lean_ctor_set(x_2415, 3, x_2386); +lean_ctor_set(x_2415, 4, x_2387); +lean_ctor_set(x_2415, 5, x_2388); +lean_ctor_set(x_2415, 6, x_2389); +lean_ctor_set(x_2415, 7, x_2390); +lean_ctor_set(x_2415, 8, x_2391); +lean_ctor_set(x_2415, 9, x_2400); +lean_ctor_set(x_2415, 10, x_2402); +lean_ctor_set(x_2415, 11, x_2406); +lean_ctor_set(x_2415, 12, x_2414); +lean_ctor_set(x_2415, 13, x_2408); +lean_ctor_set(x_2415, 14, x_2409); +lean_ctor_set(x_2415, 15, x_2410); +lean_ctor_set(x_2415, 16, x_2411); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17, x_2392); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 1, x_2393); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 2, x_2394); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 3, x_2395); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 4, x_2396); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 5, x_2397); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 6, x_2398); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 7, x_2399); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 8, x_2401); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 9, x_2403); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 10, x_2404); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 11, x_2405); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 12, x_2407); +lean_ctor_set_uint8(x_2415, sizeof(void*)*17 + 13, x_40); +if (lean_is_scalar(x_2381)) { + x_2416 = lean_alloc_ctor(0, 2, 0); +} else { + x_2416 = x_2381; +} +lean_ctor_set(x_2416, 0, x_2413); +lean_ctor_set(x_2416, 1, x_2380); +x_2417 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2417, 0, x_2416); +lean_ctor_set(x_2417, 1, x_2415); +lean_ctor_set(x_2257, 0, x_2417); +return x_2256; +} +else +{ +lean_object* x_2418; uint8_t x_2419; uint8_t x_2420; lean_object* x_2421; uint8_t x_2422; lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; lean_object* x_2428; +lean_dec(x_2381); +lean_dec(x_2380); +lean_dec(x_2379); +lean_dec(x_2378); +lean_free_object(x_2256); +lean_free_object(x_2257); +x_2418 = lean_ctor_get(x_2382, 0); +lean_inc(x_2418); +lean_dec_ref(x_2382); +x_2419 = 1; +x_2420 = 0; +x_2421 = lean_box(1); +x_2422 = 3; +x_2423 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_2423, 0, x_2418); +lean_ctor_set_uint8(x_2423, sizeof(void*)*1, x_2422); +x_2424 = l_Lake_OutStream_logEntry(x_2421, x_2423, x_2419, x_2420, x_2272); +lean_dec_ref(x_2423); +x_2425 = lean_ctor_get(x_2424, 1); +lean_inc(x_2425); +if (lean_is_exclusive(x_2424)) { + lean_ctor_release(x_2424, 0); + lean_ctor_release(x_2424, 1); + x_2426 = x_2424; +} else { + lean_dec_ref(x_2424); + x_2426 = lean_box(0); +} +x_2427 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2426)) { + x_2428 = lean_alloc_ctor(1, 2, 0); +} else { + x_2428 = x_2426; + lean_ctor_set_tag(x_2428, 1); +} lean_ctor_set(x_2428, 0, x_2427); -x_2429 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2429, 0, x_2399); -lean_ctor_set(x_2429, 1, x_2400); -lean_ctor_set(x_2429, 2, x_2401); -lean_ctor_set(x_2429, 3, x_2402); -lean_ctor_set(x_2429, 4, x_2403); -lean_ctor_set(x_2429, 5, x_2404); -lean_ctor_set(x_2429, 6, x_2405); -lean_ctor_set(x_2429, 7, x_2406); -lean_ctor_set(x_2429, 8, x_2407); -lean_ctor_set(x_2429, 9, x_2428); -lean_ctor_set(x_2429, 10, x_2417); -lean_ctor_set(x_2429, 11, x_2421); -lean_ctor_set(x_2429, 12, x_2423); -lean_ctor_set(x_2429, 13, x_2424); -lean_ctor_set(x_2429, 14, x_2425); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15, x_2408); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 1, x_2409); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 2, x_2410); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 3, x_2411); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 4, x_2412); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 5, x_2413); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 6, x_2414); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 7, x_2415); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 8, x_2416); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 9, x_2418); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 10, x_2419); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 11, x_2420); -lean_ctor_set_uint8(x_2429, sizeof(void*)*15 + 12, x_2422); -x_2430 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2430, 0, x_2426); -lean_ctor_set(x_2430, 1, x_2); -x_2431 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2431, 0, x_2430); -lean_ctor_set(x_2431, 1, x_2429); -x_2432 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2432, 0, x_2431); -x_2433 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2433, 0, x_2432); -lean_ctor_set(x_2433, 1, x_4); -return x_2433; +lean_ctor_set(x_2428, 1, x_2425); +return x_2428; } } } else { -uint8_t x_2434; -lean_dec_ref(x_1); -x_2434 = !lean_is_exclusive(x_3); -if (x_2434 == 0) -{ -lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; -x_2435 = lean_ctor_get(x_3, 9); -lean_dec(x_2435); -x_2436 = lean_box(0); -x_2437 = lean_box(x_24); -x_2438 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2438, 0, x_2437); -lean_ctor_set(x_3, 9, x_2438); -x_2439 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2439, 0, x_2436); -lean_ctor_set(x_2439, 1, x_2); -x_2440 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2440, 0, x_2439); -lean_ctor_set(x_2440, 1, x_3); -x_2441 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2441, 0, x_2440); -x_2442 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2442, 0, x_2441); -lean_ctor_set(x_2442, 1, x_4); -return x_2442; +lean_object* x_2429; lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; lean_object* x_2434; lean_object* x_2435; +x_2429 = lean_ctor_get(x_2256, 1); +lean_inc(x_2429); +lean_dec(x_2256); +x_2430 = lean_ctor_get(x_2269, 1); +lean_inc(x_2430); +if (lean_is_exclusive(x_2269)) { + lean_ctor_release(x_2269, 0); + lean_ctor_release(x_2269, 1); + x_2431 = x_2269; +} else { + lean_dec_ref(x_2269); + x_2431 = lean_box(0); } -else +x_2432 = lean_ctor_get(x_2270, 0); +lean_inc(x_2432); +x_2433 = lean_ctor_get(x_2270, 1); +lean_inc(x_2433); +if (lean_is_exclusive(x_2270)) { + lean_ctor_release(x_2270, 0); + lean_ctor_release(x_2270, 1); + x_2434 = x_2270; +} else { + lean_dec_ref(x_2270); + x_2434 = lean_box(0); +} +x_2435 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_2432); +if (lean_obj_tag(x_2435) == 0) { -lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; uint8_t x_2452; uint8_t x_2453; uint8_t x_2454; uint8_t x_2455; uint8_t x_2456; uint8_t x_2457; uint8_t x_2458; uint8_t x_2459; uint8_t x_2460; lean_object* x_2461; uint8_t x_2462; uint8_t x_2463; uint8_t x_2464; lean_object* x_2465; uint8_t x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; -x_2443 = lean_ctor_get(x_3, 0); -x_2444 = lean_ctor_get(x_3, 1); -x_2445 = lean_ctor_get(x_3, 2); -x_2446 = lean_ctor_get(x_3, 3); -x_2447 = lean_ctor_get(x_3, 4); -x_2448 = lean_ctor_get(x_3, 5); -x_2449 = lean_ctor_get(x_3, 6); -x_2450 = lean_ctor_get(x_3, 7); -x_2451 = lean_ctor_get(x_3, 8); -x_2452 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2453 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2454 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2455 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2456 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2457 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2458 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2459 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2460 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2461 = lean_ctor_get(x_3, 10); -x_2462 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2463 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2464 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2465 = lean_ctor_get(x_3, 11); -x_2466 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2467 = lean_ctor_get(x_3, 12); -x_2468 = lean_ctor_get(x_3, 13); -x_2469 = lean_ctor_get(x_3, 14); -lean_inc(x_2469); -lean_inc(x_2468); -lean_inc(x_2467); -lean_inc(x_2465); -lean_inc(x_2461); -lean_inc(x_2451); -lean_inc(x_2450); -lean_inc(x_2449); -lean_inc(x_2448); -lean_inc(x_2447); -lean_inc(x_2446); -lean_inc(x_2445); +lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; uint8_t x_2445; uint8_t x_2446; uint8_t x_2447; uint8_t x_2448; uint8_t x_2449; uint8_t x_2450; uint8_t x_2451; uint8_t x_2452; lean_object* x_2453; uint8_t x_2454; lean_object* x_2455; uint8_t x_2456; uint8_t x_2457; uint8_t x_2458; lean_object* x_2459; uint8_t x_2460; lean_object* x_2461; lean_object* x_2462; lean_object* x_2463; lean_object* x_2464; lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; lean_object* x_2471; +x_2436 = lean_ctor_get(x_2430, 0); +lean_inc(x_2436); +x_2437 = lean_ctor_get(x_2430, 1); +lean_inc_ref(x_2437); +x_2438 = lean_ctor_get(x_2430, 2); +lean_inc_ref(x_2438); +x_2439 = lean_ctor_get(x_2430, 3); +lean_inc(x_2439); +x_2440 = lean_ctor_get(x_2430, 4); +lean_inc(x_2440); +x_2441 = lean_ctor_get(x_2430, 5); +lean_inc(x_2441); +x_2442 = lean_ctor_get(x_2430, 6); +lean_inc(x_2442); +x_2443 = lean_ctor_get(x_2430, 7); +lean_inc_ref(x_2443); +x_2444 = lean_ctor_get(x_2430, 8); lean_inc(x_2444); -lean_inc(x_2443); -lean_dec(x_3); -x_2470 = lean_box(0); -x_2471 = lean_box(x_24); -x_2472 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2472, 0, x_2471); -x_2473 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2473, 0, x_2443); -lean_ctor_set(x_2473, 1, x_2444); -lean_ctor_set(x_2473, 2, x_2445); -lean_ctor_set(x_2473, 3, x_2446); -lean_ctor_set(x_2473, 4, x_2447); -lean_ctor_set(x_2473, 5, x_2448); -lean_ctor_set(x_2473, 6, x_2449); -lean_ctor_set(x_2473, 7, x_2450); -lean_ctor_set(x_2473, 8, x_2451); -lean_ctor_set(x_2473, 9, x_2472); -lean_ctor_set(x_2473, 10, x_2461); -lean_ctor_set(x_2473, 11, x_2465); -lean_ctor_set(x_2473, 12, x_2467); -lean_ctor_set(x_2473, 13, x_2468); -lean_ctor_set(x_2473, 14, x_2469); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15, x_2452); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 1, x_2453); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 2, x_2454); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 3, x_2455); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 4, x_2456); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 5, x_2457); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 6, x_2458); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 7, x_2459); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 8, x_2460); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 9, x_2462); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 10, x_2463); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 11, x_2464); -lean_ctor_set_uint8(x_2473, sizeof(void*)*15 + 12, x_2466); -x_2474 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2474, 0, x_2470); -lean_ctor_set(x_2474, 1, x_2); -x_2475 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2475, 0, x_2474); -lean_ctor_set(x_2475, 1, x_2473); -x_2476 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2476, 0, x_2475); -x_2477 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2477, 0, x_2476); -lean_ctor_set(x_2477, 1, x_4); -return x_2477; +x_2445 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17); +x_2446 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 1); +x_2447 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 2); +x_2448 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 3); +x_2449 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 4); +x_2450 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 5); +x_2451 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 6); +x_2452 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 7); +x_2453 = lean_ctor_get(x_2430, 9); +lean_inc(x_2453); +x_2454 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 8); +x_2455 = lean_ctor_get(x_2430, 10); +lean_inc(x_2455); +x_2456 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 9); +x_2457 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 10); +x_2458 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 11); +x_2459 = lean_ctor_get(x_2430, 11); +lean_inc(x_2459); +x_2460 = lean_ctor_get_uint8(x_2430, sizeof(void*)*17 + 12); +x_2461 = lean_ctor_get(x_2430, 13); +lean_inc(x_2461); +x_2462 = lean_ctor_get(x_2430, 14); +lean_inc(x_2462); +x_2463 = lean_ctor_get(x_2430, 15); +lean_inc(x_2463); +x_2464 = lean_ctor_get(x_2430, 16); +lean_inc(x_2464); +if (lean_is_exclusive(x_2430)) { + lean_ctor_release(x_2430, 0); + lean_ctor_release(x_2430, 1); + lean_ctor_release(x_2430, 2); + lean_ctor_release(x_2430, 3); + lean_ctor_release(x_2430, 4); + lean_ctor_release(x_2430, 5); + lean_ctor_release(x_2430, 6); + lean_ctor_release(x_2430, 7); + lean_ctor_release(x_2430, 8); + lean_ctor_release(x_2430, 9); + lean_ctor_release(x_2430, 10); + lean_ctor_release(x_2430, 11); + lean_ctor_release(x_2430, 12); + lean_ctor_release(x_2430, 13); + lean_ctor_release(x_2430, 14); + lean_ctor_release(x_2430, 15); + lean_ctor_release(x_2430, 16); + x_2465 = x_2430; +} else { + lean_dec_ref(x_2430); + x_2465 = lean_box(0); } +x_2466 = lean_box(0); +x_2467 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2467, 0, x_2432); +if (lean_is_scalar(x_2465)) { + x_2468 = lean_alloc_ctor(0, 17, 14); +} else { + x_2468 = x_2465; } +lean_ctor_set(x_2468, 0, x_2436); +lean_ctor_set(x_2468, 1, x_2437); +lean_ctor_set(x_2468, 2, x_2438); +lean_ctor_set(x_2468, 3, x_2439); +lean_ctor_set(x_2468, 4, x_2440); +lean_ctor_set(x_2468, 5, x_2441); +lean_ctor_set(x_2468, 6, x_2442); +lean_ctor_set(x_2468, 7, x_2443); +lean_ctor_set(x_2468, 8, x_2444); +lean_ctor_set(x_2468, 9, x_2453); +lean_ctor_set(x_2468, 10, x_2455); +lean_ctor_set(x_2468, 11, x_2459); +lean_ctor_set(x_2468, 12, x_2467); +lean_ctor_set(x_2468, 13, x_2461); +lean_ctor_set(x_2468, 14, x_2462); +lean_ctor_set(x_2468, 15, x_2463); +lean_ctor_set(x_2468, 16, x_2464); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17, x_2445); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 1, x_2446); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 2, x_2447); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 3, x_2448); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 4, x_2449); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 5, x_2450); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 6, x_2451); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 7, x_2452); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 8, x_2454); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 9, x_2456); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 10, x_2457); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 11, x_2458); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 12, x_2460); +lean_ctor_set_uint8(x_2468, sizeof(void*)*17 + 13, x_40); +if (lean_is_scalar(x_2434)) { + x_2469 = lean_alloc_ctor(0, 2, 0); +} else { + x_2469 = x_2434; +} +lean_ctor_set(x_2469, 0, x_2466); +lean_ctor_set(x_2469, 1, x_2433); +if (lean_is_scalar(x_2431)) { + x_2470 = lean_alloc_ctor(0, 2, 0); +} else { + x_2470 = x_2431; +} +lean_ctor_set(x_2470, 0, x_2469); +lean_ctor_set(x_2470, 1, x_2468); +lean_ctor_set(x_2257, 0, x_2470); +x_2471 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2471, 0, x_2257); +lean_ctor_set(x_2471, 1, x_2429); +return x_2471; } else { -uint8_t x_2478; -lean_dec_ref(x_1); -x_2478 = !lean_is_exclusive(x_3); -if (x_2478 == 0) -{ -lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; lean_object* x_2482; lean_object* x_2483; -x_2479 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 7, x_22); -x_2480 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2480, 0, x_2479); -lean_ctor_set(x_2480, 1, x_2); -x_2481 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2481, 0, x_2480); -lean_ctor_set(x_2481, 1, x_3); -x_2482 = lean_alloc_ctor(1, 1, 0); +lean_object* x_2472; uint8_t x_2473; uint8_t x_2474; lean_object* x_2475; uint8_t x_2476; lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; lean_object* x_2480; lean_object* x_2481; lean_object* x_2482; +lean_dec(x_2434); +lean_dec(x_2433); +lean_dec(x_2432); +lean_dec(x_2431); +lean_dec(x_2430); +lean_free_object(x_2257); +x_2472 = lean_ctor_get(x_2435, 0); +lean_inc(x_2472); +lean_dec_ref(x_2435); +x_2473 = 1; +x_2474 = 0; +x_2475 = lean_box(1); +x_2476 = 3; +x_2477 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_2477, 0, x_2472); +lean_ctor_set_uint8(x_2477, sizeof(void*)*1, x_2476); +x_2478 = l_Lake_OutStream_logEntry(x_2475, x_2477, x_2473, x_2474, x_2429); +lean_dec_ref(x_2477); +x_2479 = lean_ctor_get(x_2478, 1); +lean_inc(x_2479); +if (lean_is_exclusive(x_2478)) { + lean_ctor_release(x_2478, 0); + lean_ctor_release(x_2478, 1); + x_2480 = x_2478; +} else { + lean_dec_ref(x_2478); + x_2480 = lean_box(0); +} +x_2481 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2480)) { + x_2482 = lean_alloc_ctor(1, 2, 0); +} else { + x_2482 = x_2480; + lean_ctor_set_tag(x_2482, 1); +} lean_ctor_set(x_2482, 0, x_2481); -x_2483 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2483, 0, x_2482); -lean_ctor_set(x_2483, 1, x_4); -return x_2483; +lean_ctor_set(x_2482, 1, x_2479); +return x_2482; +} +} } else { -lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; lean_object* x_2491; lean_object* x_2492; uint8_t x_2493; uint8_t x_2494; uint8_t x_2495; uint8_t x_2496; uint8_t x_2497; uint8_t x_2498; uint8_t x_2499; lean_object* x_2500; uint8_t x_2501; lean_object* x_2502; uint8_t x_2503; uint8_t x_2504; uint8_t x_2505; lean_object* x_2506; uint8_t x_2507; lean_object* x_2508; lean_object* x_2509; lean_object* x_2510; lean_object* x_2511; lean_object* x_2512; lean_object* x_2513; lean_object* x_2514; lean_object* x_2515; lean_object* x_2516; -x_2484 = lean_ctor_get(x_3, 0); -x_2485 = lean_ctor_get(x_3, 1); -x_2486 = lean_ctor_get(x_3, 2); -x_2487 = lean_ctor_get(x_3, 3); -x_2488 = lean_ctor_get(x_3, 4); -x_2489 = lean_ctor_get(x_3, 5); -x_2490 = lean_ctor_get(x_3, 6); -x_2491 = lean_ctor_get(x_3, 7); -x_2492 = lean_ctor_get(x_3, 8); -x_2493 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2494 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2495 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2496 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2497 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2498 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2499 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2500 = lean_ctor_get(x_3, 9); -x_2501 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2502 = lean_ctor_get(x_3, 10); -x_2503 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2504 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2505 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2506 = lean_ctor_get(x_3, 11); -x_2507 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2508 = lean_ctor_get(x_3, 12); -x_2509 = lean_ctor_get(x_3, 13); -x_2510 = lean_ctor_get(x_3, 14); -lean_inc(x_2510); -lean_inc(x_2509); -lean_inc(x_2508); -lean_inc(x_2506); -lean_inc(x_2502); -lean_inc(x_2500); -lean_inc(x_2492); -lean_inc(x_2491); -lean_inc(x_2490); -lean_inc(x_2489); -lean_inc(x_2488); -lean_inc(x_2487); -lean_inc(x_2486); -lean_inc(x_2485); +lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; lean_object* x_2491; lean_object* x_2492; +x_2483 = lean_ctor_get(x_2257, 0); +lean_inc(x_2483); +lean_dec(x_2257); +x_2484 = lean_ctor_get(x_2483, 0); lean_inc(x_2484); -lean_dec(x_3); -x_2511 = lean_box(0); -x_2512 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2512, 0, x_2484); -lean_ctor_set(x_2512, 1, x_2485); -lean_ctor_set(x_2512, 2, x_2486); -lean_ctor_set(x_2512, 3, x_2487); -lean_ctor_set(x_2512, 4, x_2488); -lean_ctor_set(x_2512, 5, x_2489); -lean_ctor_set(x_2512, 6, x_2490); -lean_ctor_set(x_2512, 7, x_2491); -lean_ctor_set(x_2512, 8, x_2492); -lean_ctor_set(x_2512, 9, x_2500); -lean_ctor_set(x_2512, 10, x_2502); -lean_ctor_set(x_2512, 11, x_2506); -lean_ctor_set(x_2512, 12, x_2508); -lean_ctor_set(x_2512, 13, x_2509); -lean_ctor_set(x_2512, 14, x_2510); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15, x_2493); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 1, x_2494); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 2, x_2495); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 3, x_2496); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 4, x_2497); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 5, x_2498); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 6, x_2499); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 7, x_22); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 8, x_2501); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 9, x_2503); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 10, x_2504); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 11, x_2505); -lean_ctor_set_uint8(x_2512, sizeof(void*)*15 + 12, x_2507); -x_2513 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2513, 0, x_2511); -lean_ctor_set(x_2513, 1, x_2); -x_2514 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2514, 0, x_2513); -lean_ctor_set(x_2514, 1, x_2512); -x_2515 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2515, 0, x_2514); -x_2516 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2516, 0, x_2515); -lean_ctor_set(x_2516, 1, x_4); -return x_2516; +x_2485 = lean_ctor_get(x_2256, 1); +lean_inc(x_2485); +if (lean_is_exclusive(x_2256)) { + lean_ctor_release(x_2256, 0); + lean_ctor_release(x_2256, 1); + x_2486 = x_2256; +} else { + lean_dec_ref(x_2256); + x_2486 = lean_box(0); } +x_2487 = lean_ctor_get(x_2483, 1); +lean_inc(x_2487); +if (lean_is_exclusive(x_2483)) { + lean_ctor_release(x_2483, 0); + lean_ctor_release(x_2483, 1); + x_2488 = x_2483; +} else { + lean_dec_ref(x_2483); + x_2488 = lean_box(0); } +x_2489 = lean_ctor_get(x_2484, 0); +lean_inc(x_2489); +x_2490 = lean_ctor_get(x_2484, 1); +lean_inc(x_2490); +if (lean_is_exclusive(x_2484)) { + lean_ctor_release(x_2484, 0); + lean_ctor_release(x_2484, 1); + x_2491 = x_2484; +} else { + lean_dec_ref(x_2484); + x_2491 = lean_box(0); +} +x_2492 = l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f(x_2489); +if (lean_obj_tag(x_2492) == 0) +{ +lean_object* x_2493; lean_object* x_2494; lean_object* x_2495; lean_object* x_2496; lean_object* x_2497; lean_object* x_2498; lean_object* x_2499; lean_object* x_2500; lean_object* x_2501; uint8_t x_2502; uint8_t x_2503; uint8_t x_2504; uint8_t x_2505; uint8_t x_2506; uint8_t x_2507; uint8_t x_2508; uint8_t x_2509; lean_object* x_2510; uint8_t x_2511; lean_object* x_2512; uint8_t x_2513; uint8_t x_2514; uint8_t x_2515; lean_object* x_2516; uint8_t x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; lean_object* x_2527; lean_object* x_2528; lean_object* x_2529; +x_2493 = lean_ctor_get(x_2487, 0); +lean_inc(x_2493); +x_2494 = lean_ctor_get(x_2487, 1); +lean_inc_ref(x_2494); +x_2495 = lean_ctor_get(x_2487, 2); +lean_inc_ref(x_2495); +x_2496 = lean_ctor_get(x_2487, 3); +lean_inc(x_2496); +x_2497 = lean_ctor_get(x_2487, 4); +lean_inc(x_2497); +x_2498 = lean_ctor_get(x_2487, 5); +lean_inc(x_2498); +x_2499 = lean_ctor_get(x_2487, 6); +lean_inc(x_2499); +x_2500 = lean_ctor_get(x_2487, 7); +lean_inc_ref(x_2500); +x_2501 = lean_ctor_get(x_2487, 8); +lean_inc(x_2501); +x_2502 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17); +x_2503 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 1); +x_2504 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 2); +x_2505 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 3); +x_2506 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 4); +x_2507 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 5); +x_2508 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 6); +x_2509 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 7); +x_2510 = lean_ctor_get(x_2487, 9); +lean_inc(x_2510); +x_2511 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 8); +x_2512 = lean_ctor_get(x_2487, 10); +lean_inc(x_2512); +x_2513 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 9); +x_2514 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 10); +x_2515 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 11); +x_2516 = lean_ctor_get(x_2487, 11); +lean_inc(x_2516); +x_2517 = lean_ctor_get_uint8(x_2487, sizeof(void*)*17 + 12); +x_2518 = lean_ctor_get(x_2487, 13); +lean_inc(x_2518); +x_2519 = lean_ctor_get(x_2487, 14); +lean_inc(x_2519); +x_2520 = lean_ctor_get(x_2487, 15); +lean_inc(x_2520); +x_2521 = lean_ctor_get(x_2487, 16); +lean_inc(x_2521); +if (lean_is_exclusive(x_2487)) { + lean_ctor_release(x_2487, 0); + lean_ctor_release(x_2487, 1); + lean_ctor_release(x_2487, 2); + lean_ctor_release(x_2487, 3); + lean_ctor_release(x_2487, 4); + lean_ctor_release(x_2487, 5); + lean_ctor_release(x_2487, 6); + lean_ctor_release(x_2487, 7); + lean_ctor_release(x_2487, 8); + lean_ctor_release(x_2487, 9); + lean_ctor_release(x_2487, 10); + lean_ctor_release(x_2487, 11); + lean_ctor_release(x_2487, 12); + lean_ctor_release(x_2487, 13); + lean_ctor_release(x_2487, 14); + lean_ctor_release(x_2487, 15); + lean_ctor_release(x_2487, 16); + x_2522 = x_2487; +} else { + lean_dec_ref(x_2487); + x_2522 = lean_box(0); +} +x_2523 = lean_box(0); +x_2524 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2524, 0, x_2489); +if (lean_is_scalar(x_2522)) { + x_2525 = lean_alloc_ctor(0, 17, 14); +} else { + x_2525 = x_2522; +} +lean_ctor_set(x_2525, 0, x_2493); +lean_ctor_set(x_2525, 1, x_2494); +lean_ctor_set(x_2525, 2, x_2495); +lean_ctor_set(x_2525, 3, x_2496); +lean_ctor_set(x_2525, 4, x_2497); +lean_ctor_set(x_2525, 5, x_2498); +lean_ctor_set(x_2525, 6, x_2499); +lean_ctor_set(x_2525, 7, x_2500); +lean_ctor_set(x_2525, 8, x_2501); +lean_ctor_set(x_2525, 9, x_2510); +lean_ctor_set(x_2525, 10, x_2512); +lean_ctor_set(x_2525, 11, x_2516); +lean_ctor_set(x_2525, 12, x_2524); +lean_ctor_set(x_2525, 13, x_2518); +lean_ctor_set(x_2525, 14, x_2519); +lean_ctor_set(x_2525, 15, x_2520); +lean_ctor_set(x_2525, 16, x_2521); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17, x_2502); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 1, x_2503); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 2, x_2504); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 3, x_2505); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 4, x_2506); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 5, x_2507); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 6, x_2508); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 7, x_2509); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 8, x_2511); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 9, x_2513); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 10, x_2514); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 11, x_2515); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 12, x_2517); +lean_ctor_set_uint8(x_2525, sizeof(void*)*17 + 13, x_40); +if (lean_is_scalar(x_2491)) { + x_2526 = lean_alloc_ctor(0, 2, 0); +} else { + x_2526 = x_2491; +} +lean_ctor_set(x_2526, 0, x_2523); +lean_ctor_set(x_2526, 1, x_2490); +if (lean_is_scalar(x_2488)) { + x_2527 = lean_alloc_ctor(0, 2, 0); +} else { + x_2527 = x_2488; +} +lean_ctor_set(x_2527, 0, x_2526); +lean_ctor_set(x_2527, 1, x_2525); +x_2528 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2528, 0, x_2527); +if (lean_is_scalar(x_2486)) { + x_2529 = lean_alloc_ctor(0, 2, 0); +} else { + x_2529 = x_2486; +} +lean_ctor_set(x_2529, 0, x_2528); +lean_ctor_set(x_2529, 1, x_2485); +return x_2529; } else { -uint8_t x_2517; -lean_dec_ref(x_1); -x_2517 = !lean_is_exclusive(x_3); -if (x_2517 == 0) -{ -lean_object* x_2518; uint8_t x_2519; lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; lean_object* x_2523; -x_2518 = lean_box(0); -x_2519 = 1; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 10, x_2519); -x_2520 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2520, 0, x_2518); -lean_ctor_set(x_2520, 1, x_2); -x_2521 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2521, 0, x_2520); -lean_ctor_set(x_2521, 1, x_3); -x_2522 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2522, 0, x_2521); -x_2523 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2523, 0, x_2522); -lean_ctor_set(x_2523, 1, x_4); -return x_2523; -} -else -{ -lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; lean_object* x_2527; lean_object* x_2528; lean_object* x_2529; lean_object* x_2530; lean_object* x_2531; lean_object* x_2532; uint8_t x_2533; uint8_t x_2534; uint8_t x_2535; uint8_t x_2536; uint8_t x_2537; uint8_t x_2538; uint8_t x_2539; uint8_t x_2540; lean_object* x_2541; uint8_t x_2542; lean_object* x_2543; uint8_t x_2544; uint8_t x_2545; lean_object* x_2546; uint8_t x_2547; lean_object* x_2548; lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; uint8_t x_2552; lean_object* x_2553; lean_object* x_2554; lean_object* x_2555; lean_object* x_2556; lean_object* x_2557; -x_2524 = lean_ctor_get(x_3, 0); -x_2525 = lean_ctor_get(x_3, 1); -x_2526 = lean_ctor_get(x_3, 2); -x_2527 = lean_ctor_get(x_3, 3); -x_2528 = lean_ctor_get(x_3, 4); -x_2529 = lean_ctor_get(x_3, 5); -x_2530 = lean_ctor_get(x_3, 6); -x_2531 = lean_ctor_get(x_3, 7); -x_2532 = lean_ctor_get(x_3, 8); -x_2533 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2534 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2535 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2536 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2537 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2538 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2539 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2540 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2541 = lean_ctor_get(x_3, 9); -x_2542 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2543 = lean_ctor_get(x_3, 10); -x_2544 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2545 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2546 = lean_ctor_get(x_3, 11); -x_2547 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2548 = lean_ctor_get(x_3, 12); -x_2549 = lean_ctor_get(x_3, 13); -x_2550 = lean_ctor_get(x_3, 14); -lean_inc(x_2550); -lean_inc(x_2549); -lean_inc(x_2548); -lean_inc(x_2546); -lean_inc(x_2543); -lean_inc(x_2541); -lean_inc(x_2532); -lean_inc(x_2531); +lean_object* x_2530; uint8_t x_2531; uint8_t x_2532; lean_object* x_2533; uint8_t x_2534; lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; +lean_dec(x_2491); +lean_dec(x_2490); +lean_dec(x_2489); +lean_dec(x_2488); +lean_dec(x_2487); +lean_dec(x_2486); +x_2530 = lean_ctor_get(x_2492, 0); lean_inc(x_2530); -lean_inc(x_2529); -lean_inc(x_2528); -lean_inc(x_2527); -lean_inc(x_2526); -lean_inc(x_2525); -lean_inc(x_2524); -lean_dec(x_3); -x_2551 = lean_box(0); -x_2552 = 1; -x_2553 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2553, 0, x_2524); -lean_ctor_set(x_2553, 1, x_2525); -lean_ctor_set(x_2553, 2, x_2526); -lean_ctor_set(x_2553, 3, x_2527); -lean_ctor_set(x_2553, 4, x_2528); -lean_ctor_set(x_2553, 5, x_2529); -lean_ctor_set(x_2553, 6, x_2530); -lean_ctor_set(x_2553, 7, x_2531); -lean_ctor_set(x_2553, 8, x_2532); -lean_ctor_set(x_2553, 9, x_2541); -lean_ctor_set(x_2553, 10, x_2543); -lean_ctor_set(x_2553, 11, x_2546); -lean_ctor_set(x_2553, 12, x_2548); -lean_ctor_set(x_2553, 13, x_2549); -lean_ctor_set(x_2553, 14, x_2550); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15, x_2533); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 1, x_2534); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 2, x_2535); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 3, x_2536); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 4, x_2537); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 5, x_2538); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 6, x_2539); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 7, x_2540); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 8, x_2542); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 9, x_2544); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 10, x_2552); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 11, x_2545); -lean_ctor_set_uint8(x_2553, sizeof(void*)*15 + 12, x_2547); -x_2554 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2554, 0, x_2551); -lean_ctor_set(x_2554, 1, x_2); -x_2555 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2555, 0, x_2554); -lean_ctor_set(x_2555, 1, x_2553); -x_2556 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2556, 0, x_2555); -x_2557 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2557, 0, x_2556); -lean_ctor_set(x_2557, 1, x_4); -return x_2557; +lean_dec_ref(x_2492); +x_2531 = 1; +x_2532 = 0; +x_2533 = lean_box(1); +x_2534 = 3; +x_2535 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_2535, 0, x_2530); +lean_ctor_set_uint8(x_2535, sizeof(void*)*1, x_2534); +x_2536 = l_Lake_OutStream_logEntry(x_2533, x_2535, x_2531, x_2532, x_2485); +lean_dec_ref(x_2535); +x_2537 = lean_ctor_get(x_2536, 1); +lean_inc(x_2537); +if (lean_is_exclusive(x_2536)) { + lean_ctor_release(x_2536, 0); + lean_ctor_release(x_2536, 1); + x_2538 = x_2536; +} else { + lean_dec_ref(x_2536); + x_2538 = lean_box(0); +} +x_2539 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1; +if (lean_is_scalar(x_2538)) { + x_2540 = lean_alloc_ctor(1, 2, 0); +} else { + x_2540 = x_2538; + lean_ctor_set_tag(x_2540, 1); +} +lean_ctor_set(x_2540, 0, x_2539); +lean_ctor_set(x_2540, 1, x_2537); +return x_2540; +} +} } } } else { -uint8_t x_2558; +lean_object* x_2541; lean_object* x_2542; lean_object* x_2543; lean_dec_ref(x_1); -x_2558 = !lean_is_exclusive(x_3); -if (x_2558 == 0) +x_2541 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47; +x_2542 = l___private_Lake_CLI_Main_0__Lake_takeOptArg(x_37, x_2541, x_2, x_3, x_4); +x_2543 = lean_ctor_get(x_2542, 0); +lean_inc(x_2543); +if (lean_obj_tag(x_2543) == 0) { -lean_object* x_2559; uint8_t x_2560; lean_object* x_2561; lean_object* x_2562; lean_object* x_2563; lean_object* x_2564; -x_2559 = lean_box(0); -x_2560 = 0; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 10, x_2560); -x_2561 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2561, 0, x_2559); -lean_ctor_set(x_2561, 1, x_2); -x_2562 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2562, 0, x_2561); -lean_ctor_set(x_2562, 1, x_3); -x_2563 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2563, 0, x_2562); -x_2564 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2564, 0, x_2563); -lean_ctor_set(x_2564, 1, x_4); -return x_2564; +uint8_t x_2544; +x_2544 = !lean_is_exclusive(x_2542); +if (x_2544 == 0) +{ +lean_object* x_2545; uint8_t x_2546; +x_2545 = lean_ctor_get(x_2542, 0); +lean_dec(x_2545); +x_2546 = !lean_is_exclusive(x_2543); +if (x_2546 == 0) +{ +return x_2542; } else { -lean_object* x_2565; lean_object* x_2566; lean_object* x_2567; lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; lean_object* x_2573; uint8_t x_2574; uint8_t x_2575; uint8_t x_2576; uint8_t x_2577; uint8_t x_2578; uint8_t x_2579; uint8_t x_2580; uint8_t x_2581; lean_object* x_2582; uint8_t x_2583; lean_object* x_2584; uint8_t x_2585; uint8_t x_2586; lean_object* x_2587; uint8_t x_2588; lean_object* x_2589; lean_object* x_2590; lean_object* x_2591; lean_object* x_2592; uint8_t x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; -x_2565 = lean_ctor_get(x_3, 0); -x_2566 = lean_ctor_get(x_3, 1); -x_2567 = lean_ctor_get(x_3, 2); -x_2568 = lean_ctor_get(x_3, 3); -x_2569 = lean_ctor_get(x_3, 4); -x_2570 = lean_ctor_get(x_3, 5); -x_2571 = lean_ctor_get(x_3, 6); -x_2572 = lean_ctor_get(x_3, 7); -x_2573 = lean_ctor_get(x_3, 8); -x_2574 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2575 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2576 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2577 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2578 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2579 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2580 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2581 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2582 = lean_ctor_get(x_3, 9); -x_2583 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2584 = lean_ctor_get(x_3, 10); -x_2585 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2586 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2587 = lean_ctor_get(x_3, 11); -x_2588 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2589 = lean_ctor_get(x_3, 12); -x_2590 = lean_ctor_get(x_3, 13); -x_2591 = lean_ctor_get(x_3, 14); +lean_object* x_2547; lean_object* x_2548; +x_2547 = lean_ctor_get(x_2543, 0); +lean_inc(x_2547); +lean_dec(x_2543); +x_2548 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2548, 0, x_2547); +lean_ctor_set(x_2542, 0, x_2548); +return x_2542; +} +} +else +{ +lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; lean_object* x_2552; lean_object* x_2553; +x_2549 = lean_ctor_get(x_2542, 1); +lean_inc(x_2549); +lean_dec(x_2542); +x_2550 = lean_ctor_get(x_2543, 0); +lean_inc(x_2550); +if (lean_is_exclusive(x_2543)) { + lean_ctor_release(x_2543, 0); + x_2551 = x_2543; +} else { + lean_dec_ref(x_2543); + x_2551 = lean_box(0); +} +if (lean_is_scalar(x_2551)) { + x_2552 = lean_alloc_ctor(0, 1, 0); +} else { + x_2552 = x_2551; +} +lean_ctor_set(x_2552, 0, x_2550); +x_2553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2553, 0, x_2552); +lean_ctor_set(x_2553, 1, x_2549); +return x_2553; +} +} +else +{ +uint8_t x_2554; +x_2554 = !lean_is_exclusive(x_2543); +if (x_2554 == 0) +{ +lean_object* x_2555; uint8_t x_2556; +x_2555 = lean_ctor_get(x_2543, 0); +x_2556 = !lean_is_exclusive(x_2555); +if (x_2556 == 0) +{ +uint8_t x_2557; +x_2557 = !lean_is_exclusive(x_2542); +if (x_2557 == 0) +{ +lean_object* x_2558; lean_object* x_2559; lean_object* x_2560; uint8_t x_2561; +x_2558 = lean_ctor_get(x_2555, 0); +x_2559 = lean_ctor_get(x_2555, 1); +x_2560 = lean_ctor_get(x_2542, 0); +lean_dec(x_2560); +x_2561 = !lean_is_exclusive(x_2558); +if (x_2561 == 0) +{ +uint8_t x_2562; +x_2562 = !lean_is_exclusive(x_2559); +if (x_2562 == 0) +{ +lean_object* x_2563; lean_object* x_2564; lean_object* x_2565; lean_object* x_2566; +x_2563 = lean_ctor_get(x_2558, 0); +x_2564 = lean_ctor_get(x_2559, 12); +lean_dec(x_2564); +x_2565 = lean_box(0); +x_2566 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2566, 0, x_2563); +lean_ctor_set(x_2559, 12, x_2566); +lean_ctor_set_uint8(x_2559, sizeof(void*)*17 + 13, x_36); +lean_ctor_set(x_2558, 0, x_2565); +return x_2542; +} +else +{ +lean_object* x_2567; lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; lean_object* x_2573; lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; uint8_t x_2577; uint8_t x_2578; uint8_t x_2579; uint8_t x_2580; uint8_t x_2581; uint8_t x_2582; uint8_t x_2583; uint8_t x_2584; lean_object* x_2585; uint8_t x_2586; lean_object* x_2587; uint8_t x_2588; uint8_t x_2589; uint8_t x_2590; lean_object* x_2591; uint8_t x_2592; lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; +x_2567 = lean_ctor_get(x_2558, 0); +x_2568 = lean_ctor_get(x_2559, 0); +x_2569 = lean_ctor_get(x_2559, 1); +x_2570 = lean_ctor_get(x_2559, 2); +x_2571 = lean_ctor_get(x_2559, 3); +x_2572 = lean_ctor_get(x_2559, 4); +x_2573 = lean_ctor_get(x_2559, 5); +x_2574 = lean_ctor_get(x_2559, 6); +x_2575 = lean_ctor_get(x_2559, 7); +x_2576 = lean_ctor_get(x_2559, 8); +x_2577 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17); +x_2578 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 1); +x_2579 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 2); +x_2580 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 3); +x_2581 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 4); +x_2582 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 5); +x_2583 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 6); +x_2584 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 7); +x_2585 = lean_ctor_get(x_2559, 9); +x_2586 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 8); +x_2587 = lean_ctor_get(x_2559, 10); +x_2588 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 9); +x_2589 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 10); +x_2590 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 11); +x_2591 = lean_ctor_get(x_2559, 11); +x_2592 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 12); +x_2593 = lean_ctor_get(x_2559, 13); +x_2594 = lean_ctor_get(x_2559, 14); +x_2595 = lean_ctor_get(x_2559, 15); +x_2596 = lean_ctor_get(x_2559, 16); +lean_inc(x_2596); +lean_inc(x_2595); +lean_inc(x_2594); +lean_inc(x_2593); lean_inc(x_2591); -lean_inc(x_2590); -lean_inc(x_2589); lean_inc(x_2587); -lean_inc(x_2584); -lean_inc(x_2582); +lean_inc(x_2585); +lean_inc(x_2576); +lean_inc(x_2575); +lean_inc(x_2574); lean_inc(x_2573); lean_inc(x_2572); lean_inc(x_2571); lean_inc(x_2570); lean_inc(x_2569); lean_inc(x_2568); -lean_inc(x_2567); -lean_inc(x_2566); -lean_inc(x_2565); -lean_dec(x_3); -x_2592 = lean_box(0); -x_2593 = 0; -x_2594 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2594, 0, x_2565); -lean_ctor_set(x_2594, 1, x_2566); -lean_ctor_set(x_2594, 2, x_2567); -lean_ctor_set(x_2594, 3, x_2568); -lean_ctor_set(x_2594, 4, x_2569); -lean_ctor_set(x_2594, 5, x_2570); -lean_ctor_set(x_2594, 6, x_2571); -lean_ctor_set(x_2594, 7, x_2572); -lean_ctor_set(x_2594, 8, x_2573); -lean_ctor_set(x_2594, 9, x_2582); -lean_ctor_set(x_2594, 10, x_2584); -lean_ctor_set(x_2594, 11, x_2587); -lean_ctor_set(x_2594, 12, x_2589); -lean_ctor_set(x_2594, 13, x_2590); -lean_ctor_set(x_2594, 14, x_2591); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15, x_2574); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 1, x_2575); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 2, x_2576); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 3, x_2577); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 4, x_2578); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 5, x_2579); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 6, x_2580); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 7, x_2581); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 8, x_2583); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 9, x_2585); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 10, x_2593); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 11, x_2586); -lean_ctor_set_uint8(x_2594, sizeof(void*)*15 + 12, x_2588); -x_2595 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2595, 0, x_2592); -lean_ctor_set(x_2595, 1, x_2); -x_2596 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2596, 0, x_2595); -lean_ctor_set(x_2596, 1, x_2594); -x_2597 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2597, 0, x_2596); -x_2598 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2598, 0, x_2597); -lean_ctor_set(x_2598, 1, x_4); -return x_2598; -} +lean_dec(x_2559); +x_2597 = lean_box(0); +x_2598 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2598, 0, x_2567); +x_2599 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2599, 0, x_2568); +lean_ctor_set(x_2599, 1, x_2569); +lean_ctor_set(x_2599, 2, x_2570); +lean_ctor_set(x_2599, 3, x_2571); +lean_ctor_set(x_2599, 4, x_2572); +lean_ctor_set(x_2599, 5, x_2573); +lean_ctor_set(x_2599, 6, x_2574); +lean_ctor_set(x_2599, 7, x_2575); +lean_ctor_set(x_2599, 8, x_2576); +lean_ctor_set(x_2599, 9, x_2585); +lean_ctor_set(x_2599, 10, x_2587); +lean_ctor_set(x_2599, 11, x_2591); +lean_ctor_set(x_2599, 12, x_2598); +lean_ctor_set(x_2599, 13, x_2593); +lean_ctor_set(x_2599, 14, x_2594); +lean_ctor_set(x_2599, 15, x_2595); +lean_ctor_set(x_2599, 16, x_2596); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17, x_2577); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 1, x_2578); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 2, x_2579); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 3, x_2580); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 4, x_2581); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 5, x_2582); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 6, x_2583); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 7, x_2584); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 8, x_2586); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 9, x_2588); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 10, x_2589); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 11, x_2590); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 12, x_2592); +lean_ctor_set_uint8(x_2599, sizeof(void*)*17 + 13, x_36); +lean_ctor_set(x_2558, 0, x_2597); +lean_ctor_set(x_2555, 1, x_2599); +return x_2542; } } else { -uint8_t x_2599; -lean_dec_ref(x_1); -x_2599 = !lean_is_exclusive(x_3); -if (x_2599 == 0) -{ -lean_object* x_2600; lean_object* x_2601; lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; -x_2600 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 5, x_16); -x_2601 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2601, 0, x_2600); -lean_ctor_set(x_2601, 1, x_2); -x_2602 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2602, 0, x_2601); -lean_ctor_set(x_2602, 1, x_3); -x_2603 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2603, 0, x_2602); -x_2604 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2604, 0, x_2603); -lean_ctor_set(x_2604, 1, x_4); -return x_2604; -} -else -{ -lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; uint8_t x_2614; uint8_t x_2615; uint8_t x_2616; uint8_t x_2617; uint8_t x_2618; uint8_t x_2619; uint8_t x_2620; lean_object* x_2621; uint8_t x_2622; lean_object* x_2623; uint8_t x_2624; uint8_t x_2625; uint8_t x_2626; lean_object* x_2627; uint8_t x_2628; lean_object* x_2629; lean_object* x_2630; lean_object* x_2631; lean_object* x_2632; lean_object* x_2633; lean_object* x_2634; lean_object* x_2635; lean_object* x_2636; lean_object* x_2637; -x_2605 = lean_ctor_get(x_3, 0); -x_2606 = lean_ctor_get(x_3, 1); -x_2607 = lean_ctor_get(x_3, 2); -x_2608 = lean_ctor_get(x_3, 3); -x_2609 = lean_ctor_get(x_3, 4); -x_2610 = lean_ctor_get(x_3, 5); -x_2611 = lean_ctor_get(x_3, 6); -x_2612 = lean_ctor_get(x_3, 7); -x_2613 = lean_ctor_get(x_3, 8); -x_2614 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2615 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2616 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2617 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2618 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2619 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2620 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2621 = lean_ctor_get(x_3, 9); -x_2622 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2623 = lean_ctor_get(x_3, 10); -x_2624 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2625 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2626 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2627 = lean_ctor_get(x_3, 11); -x_2628 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2629 = lean_ctor_get(x_3, 12); -x_2630 = lean_ctor_get(x_3, 13); -x_2631 = lean_ctor_get(x_3, 14); -lean_inc(x_2631); -lean_inc(x_2630); -lean_inc(x_2629); -lean_inc(x_2627); -lean_inc(x_2623); -lean_inc(x_2621); -lean_inc(x_2613); -lean_inc(x_2612); -lean_inc(x_2611); -lean_inc(x_2610); -lean_inc(x_2609); -lean_inc(x_2608); -lean_inc(x_2607); -lean_inc(x_2606); +lean_object* x_2600; lean_object* x_2601; lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; uint8_t x_2611; uint8_t x_2612; uint8_t x_2613; uint8_t x_2614; uint8_t x_2615; uint8_t x_2616; uint8_t x_2617; uint8_t x_2618; lean_object* x_2619; uint8_t x_2620; lean_object* x_2621; uint8_t x_2622; uint8_t x_2623; uint8_t x_2624; lean_object* x_2625; uint8_t x_2626; lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; lean_object* x_2631; lean_object* x_2632; lean_object* x_2633; lean_object* x_2634; lean_object* x_2635; +x_2600 = lean_ctor_get(x_2558, 0); +x_2601 = lean_ctor_get(x_2558, 1); +lean_inc(x_2601); +lean_inc(x_2600); +lean_dec(x_2558); +x_2602 = lean_ctor_get(x_2559, 0); +lean_inc(x_2602); +x_2603 = lean_ctor_get(x_2559, 1); +lean_inc_ref(x_2603); +x_2604 = lean_ctor_get(x_2559, 2); +lean_inc_ref(x_2604); +x_2605 = lean_ctor_get(x_2559, 3); lean_inc(x_2605); -lean_dec(x_3); +x_2606 = lean_ctor_get(x_2559, 4); +lean_inc(x_2606); +x_2607 = lean_ctor_get(x_2559, 5); +lean_inc(x_2607); +x_2608 = lean_ctor_get(x_2559, 6); +lean_inc(x_2608); +x_2609 = lean_ctor_get(x_2559, 7); +lean_inc_ref(x_2609); +x_2610 = lean_ctor_get(x_2559, 8); +lean_inc(x_2610); +x_2611 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17); +x_2612 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 1); +x_2613 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 2); +x_2614 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 3); +x_2615 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 4); +x_2616 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 5); +x_2617 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 6); +x_2618 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 7); +x_2619 = lean_ctor_get(x_2559, 9); +lean_inc(x_2619); +x_2620 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 8); +x_2621 = lean_ctor_get(x_2559, 10); +lean_inc(x_2621); +x_2622 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 9); +x_2623 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 10); +x_2624 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 11); +x_2625 = lean_ctor_get(x_2559, 11); +lean_inc(x_2625); +x_2626 = lean_ctor_get_uint8(x_2559, sizeof(void*)*17 + 12); +x_2627 = lean_ctor_get(x_2559, 13); +lean_inc(x_2627); +x_2628 = lean_ctor_get(x_2559, 14); +lean_inc(x_2628); +x_2629 = lean_ctor_get(x_2559, 15); +lean_inc(x_2629); +x_2630 = lean_ctor_get(x_2559, 16); +lean_inc(x_2630); +if (lean_is_exclusive(x_2559)) { + lean_ctor_release(x_2559, 0); + lean_ctor_release(x_2559, 1); + lean_ctor_release(x_2559, 2); + lean_ctor_release(x_2559, 3); + lean_ctor_release(x_2559, 4); + lean_ctor_release(x_2559, 5); + lean_ctor_release(x_2559, 6); + lean_ctor_release(x_2559, 7); + lean_ctor_release(x_2559, 8); + lean_ctor_release(x_2559, 9); + lean_ctor_release(x_2559, 10); + lean_ctor_release(x_2559, 11); + lean_ctor_release(x_2559, 12); + lean_ctor_release(x_2559, 13); + lean_ctor_release(x_2559, 14); + lean_ctor_release(x_2559, 15); + lean_ctor_release(x_2559, 16); + x_2631 = x_2559; +} else { + lean_dec_ref(x_2559); + x_2631 = lean_box(0); +} x_2632 = lean_box(0); -x_2633 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2633, 0, x_2605); -lean_ctor_set(x_2633, 1, x_2606); -lean_ctor_set(x_2633, 2, x_2607); -lean_ctor_set(x_2633, 3, x_2608); -lean_ctor_set(x_2633, 4, x_2609); -lean_ctor_set(x_2633, 5, x_2610); -lean_ctor_set(x_2633, 6, x_2611); -lean_ctor_set(x_2633, 7, x_2612); -lean_ctor_set(x_2633, 8, x_2613); -lean_ctor_set(x_2633, 9, x_2621); -lean_ctor_set(x_2633, 10, x_2623); -lean_ctor_set(x_2633, 11, x_2627); -lean_ctor_set(x_2633, 12, x_2629); -lean_ctor_set(x_2633, 13, x_2630); -lean_ctor_set(x_2633, 14, x_2631); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15, x_2614); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 1, x_2615); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 2, x_2616); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 3, x_2617); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 4, x_2618); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 5, x_16); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 6, x_2619); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 7, x_2620); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 8, x_2622); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 9, x_2624); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 10, x_2625); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 11, x_2626); -lean_ctor_set_uint8(x_2633, sizeof(void*)*15 + 12, x_2628); -x_2634 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2634, 0, x_2632); -lean_ctor_set(x_2634, 1, x_2); +x_2633 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2633, 0, x_2600); +if (lean_is_scalar(x_2631)) { + x_2634 = lean_alloc_ctor(0, 17, 14); +} else { + x_2634 = x_2631; +} +lean_ctor_set(x_2634, 0, x_2602); +lean_ctor_set(x_2634, 1, x_2603); +lean_ctor_set(x_2634, 2, x_2604); +lean_ctor_set(x_2634, 3, x_2605); +lean_ctor_set(x_2634, 4, x_2606); +lean_ctor_set(x_2634, 5, x_2607); +lean_ctor_set(x_2634, 6, x_2608); +lean_ctor_set(x_2634, 7, x_2609); +lean_ctor_set(x_2634, 8, x_2610); +lean_ctor_set(x_2634, 9, x_2619); +lean_ctor_set(x_2634, 10, x_2621); +lean_ctor_set(x_2634, 11, x_2625); +lean_ctor_set(x_2634, 12, x_2633); +lean_ctor_set(x_2634, 13, x_2627); +lean_ctor_set(x_2634, 14, x_2628); +lean_ctor_set(x_2634, 15, x_2629); +lean_ctor_set(x_2634, 16, x_2630); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17, x_2611); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 1, x_2612); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 2, x_2613); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 3, x_2614); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 4, x_2615); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 5, x_2616); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 6, x_2617); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 7, x_2618); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 8, x_2620); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 9, x_2622); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 10, x_2623); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 11, x_2624); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 12, x_2626); +lean_ctor_set_uint8(x_2634, sizeof(void*)*17 + 13, x_36); x_2635 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2635, 0, x_2634); -lean_ctor_set(x_2635, 1, x_2633); -x_2636 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2636, 0, x_2635); -x_2637 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2637, 0, x_2636); -lean_ctor_set(x_2637, 1, x_4); -return x_2637; -} +lean_ctor_set(x_2635, 0, x_2632); +lean_ctor_set(x_2635, 1, x_2601); +lean_ctor_set(x_2555, 1, x_2634); +lean_ctor_set(x_2555, 0, x_2635); +return x_2542; } } else { -uint8_t x_2638; -lean_dec_ref(x_1); -x_2638 = !lean_is_exclusive(x_3); -if (x_2638 == 0) -{ -lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_object* x_2643; -x_2639 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 4, x_14); -x_2640 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2640, 0, x_2639); -lean_ctor_set(x_2640, 1, x_2); -x_2641 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2641, 0, x_2640); -lean_ctor_set(x_2641, 1, x_3); -x_2642 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2642, 0, x_2641); -x_2643 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2643, 0, x_2642); -lean_ctor_set(x_2643, 1, x_4); -return x_2643; +lean_object* x_2636; lean_object* x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; uint8_t x_2651; uint8_t x_2652; uint8_t x_2653; uint8_t x_2654; uint8_t x_2655; uint8_t x_2656; uint8_t x_2657; uint8_t x_2658; lean_object* x_2659; uint8_t x_2660; lean_object* x_2661; uint8_t x_2662; uint8_t x_2663; uint8_t x_2664; lean_object* x_2665; uint8_t x_2666; lean_object* x_2667; lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; lean_object* x_2671; lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; lean_object* x_2676; +x_2636 = lean_ctor_get(x_2555, 0); +x_2637 = lean_ctor_get(x_2555, 1); +x_2638 = lean_ctor_get(x_2542, 1); +lean_inc(x_2638); +lean_dec(x_2542); +x_2639 = lean_ctor_get(x_2636, 0); +lean_inc(x_2639); +x_2640 = lean_ctor_get(x_2636, 1); +lean_inc(x_2640); +if (lean_is_exclusive(x_2636)) { + lean_ctor_release(x_2636, 0); + lean_ctor_release(x_2636, 1); + x_2641 = x_2636; +} else { + lean_dec_ref(x_2636); + x_2641 = lean_box(0); } -else -{ -lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; lean_object* x_2651; lean_object* x_2652; uint8_t x_2653; uint8_t x_2654; uint8_t x_2655; uint8_t x_2656; uint8_t x_2657; uint8_t x_2658; uint8_t x_2659; lean_object* x_2660; uint8_t x_2661; lean_object* x_2662; uint8_t x_2663; uint8_t x_2664; uint8_t x_2665; lean_object* x_2666; uint8_t x_2667; lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; lean_object* x_2671; lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; lean_object* x_2676; -x_2644 = lean_ctor_get(x_3, 0); -x_2645 = lean_ctor_get(x_3, 1); -x_2646 = lean_ctor_get(x_3, 2); -x_2647 = lean_ctor_get(x_3, 3); -x_2648 = lean_ctor_get(x_3, 4); -x_2649 = lean_ctor_get(x_3, 5); -x_2650 = lean_ctor_get(x_3, 6); -x_2651 = lean_ctor_get(x_3, 7); -x_2652 = lean_ctor_get(x_3, 8); -x_2653 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2654 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2655 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2656 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2657 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2658 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2659 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2660 = lean_ctor_get(x_3, 9); -x_2661 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2662 = lean_ctor_get(x_3, 10); -x_2663 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2664 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2665 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2666 = lean_ctor_get(x_3, 11); -x_2667 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2668 = lean_ctor_get(x_3, 12); -x_2669 = lean_ctor_get(x_3, 13); -x_2670 = lean_ctor_get(x_3, 14); -lean_inc(x_2670); -lean_inc(x_2669); -lean_inc(x_2668); -lean_inc(x_2666); -lean_inc(x_2662); -lean_inc(x_2660); -lean_inc(x_2652); -lean_inc(x_2651); -lean_inc(x_2650); -lean_inc(x_2649); -lean_inc(x_2648); -lean_inc(x_2647); -lean_inc(x_2646); +x_2642 = lean_ctor_get(x_2637, 0); +lean_inc(x_2642); +x_2643 = lean_ctor_get(x_2637, 1); +lean_inc_ref(x_2643); +x_2644 = lean_ctor_get(x_2637, 2); +lean_inc_ref(x_2644); +x_2645 = lean_ctor_get(x_2637, 3); lean_inc(x_2645); -lean_inc(x_2644); -lean_dec(x_3); -x_2671 = lean_box(0); -x_2672 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2672, 0, x_2644); -lean_ctor_set(x_2672, 1, x_2645); -lean_ctor_set(x_2672, 2, x_2646); -lean_ctor_set(x_2672, 3, x_2647); -lean_ctor_set(x_2672, 4, x_2648); -lean_ctor_set(x_2672, 5, x_2649); -lean_ctor_set(x_2672, 6, x_2650); -lean_ctor_set(x_2672, 7, x_2651); -lean_ctor_set(x_2672, 8, x_2652); -lean_ctor_set(x_2672, 9, x_2660); -lean_ctor_set(x_2672, 10, x_2662); -lean_ctor_set(x_2672, 11, x_2666); -lean_ctor_set(x_2672, 12, x_2668); -lean_ctor_set(x_2672, 13, x_2669); -lean_ctor_set(x_2672, 14, x_2670); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15, x_2653); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 1, x_2654); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 2, x_2655); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 3, x_2656); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 4, x_14); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 5, x_2657); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 6, x_2658); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 7, x_2659); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 8, x_2661); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 9, x_2663); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 10, x_2664); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 11, x_2665); -lean_ctor_set_uint8(x_2672, sizeof(void*)*15 + 12, x_2667); -x_2673 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2673, 0, x_2671); -lean_ctor_set(x_2673, 1, x_2); -x_2674 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2674, 0, x_2673); -lean_ctor_set(x_2674, 1, x_2672); -x_2675 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2675, 0, x_2674); +x_2646 = lean_ctor_get(x_2637, 4); +lean_inc(x_2646); +x_2647 = lean_ctor_get(x_2637, 5); +lean_inc(x_2647); +x_2648 = lean_ctor_get(x_2637, 6); +lean_inc(x_2648); +x_2649 = lean_ctor_get(x_2637, 7); +lean_inc_ref(x_2649); +x_2650 = lean_ctor_get(x_2637, 8); +lean_inc(x_2650); +x_2651 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17); +x_2652 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 1); +x_2653 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 2); +x_2654 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 3); +x_2655 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 4); +x_2656 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 5); +x_2657 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 6); +x_2658 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 7); +x_2659 = lean_ctor_get(x_2637, 9); +lean_inc(x_2659); +x_2660 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 8); +x_2661 = lean_ctor_get(x_2637, 10); +lean_inc(x_2661); +x_2662 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 9); +x_2663 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 10); +x_2664 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 11); +x_2665 = lean_ctor_get(x_2637, 11); +lean_inc(x_2665); +x_2666 = lean_ctor_get_uint8(x_2637, sizeof(void*)*17 + 12); +x_2667 = lean_ctor_get(x_2637, 13); +lean_inc(x_2667); +x_2668 = lean_ctor_get(x_2637, 14); +lean_inc(x_2668); +x_2669 = lean_ctor_get(x_2637, 15); +lean_inc(x_2669); +x_2670 = lean_ctor_get(x_2637, 16); +lean_inc(x_2670); +if (lean_is_exclusive(x_2637)) { + lean_ctor_release(x_2637, 0); + lean_ctor_release(x_2637, 1); + lean_ctor_release(x_2637, 2); + lean_ctor_release(x_2637, 3); + lean_ctor_release(x_2637, 4); + lean_ctor_release(x_2637, 5); + lean_ctor_release(x_2637, 6); + lean_ctor_release(x_2637, 7); + lean_ctor_release(x_2637, 8); + lean_ctor_release(x_2637, 9); + lean_ctor_release(x_2637, 10); + lean_ctor_release(x_2637, 11); + lean_ctor_release(x_2637, 12); + lean_ctor_release(x_2637, 13); + lean_ctor_release(x_2637, 14); + lean_ctor_release(x_2637, 15); + lean_ctor_release(x_2637, 16); + x_2671 = x_2637; +} else { + lean_dec_ref(x_2637); + x_2671 = lean_box(0); +} +x_2672 = lean_box(0); +x_2673 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2673, 0, x_2639); +if (lean_is_scalar(x_2671)) { + x_2674 = lean_alloc_ctor(0, 17, 14); +} else { + x_2674 = x_2671; +} +lean_ctor_set(x_2674, 0, x_2642); +lean_ctor_set(x_2674, 1, x_2643); +lean_ctor_set(x_2674, 2, x_2644); +lean_ctor_set(x_2674, 3, x_2645); +lean_ctor_set(x_2674, 4, x_2646); +lean_ctor_set(x_2674, 5, x_2647); +lean_ctor_set(x_2674, 6, x_2648); +lean_ctor_set(x_2674, 7, x_2649); +lean_ctor_set(x_2674, 8, x_2650); +lean_ctor_set(x_2674, 9, x_2659); +lean_ctor_set(x_2674, 10, x_2661); +lean_ctor_set(x_2674, 11, x_2665); +lean_ctor_set(x_2674, 12, x_2673); +lean_ctor_set(x_2674, 13, x_2667); +lean_ctor_set(x_2674, 14, x_2668); +lean_ctor_set(x_2674, 15, x_2669); +lean_ctor_set(x_2674, 16, x_2670); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17, x_2651); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 1, x_2652); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 2, x_2653); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 3, x_2654); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 4, x_2655); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 5, x_2656); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 6, x_2657); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 7, x_2658); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 8, x_2660); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 9, x_2662); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 10, x_2663); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 11, x_2664); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 12, x_2666); +lean_ctor_set_uint8(x_2674, sizeof(void*)*17 + 13, x_36); +if (lean_is_scalar(x_2641)) { + x_2675 = lean_alloc_ctor(0, 2, 0); +} else { + x_2675 = x_2641; +} +lean_ctor_set(x_2675, 0, x_2672); +lean_ctor_set(x_2675, 1, x_2640); +lean_ctor_set(x_2555, 1, x_2674); +lean_ctor_set(x_2555, 0, x_2675); x_2676 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2676, 0, x_2675); -lean_ctor_set(x_2676, 1, x_4); +lean_ctor_set(x_2676, 0, x_2543); +lean_ctor_set(x_2676, 1, x_2638); return x_2676; } } -} else { -uint8_t x_2677; -lean_dec_ref(x_1); -x_2677 = !lean_is_exclusive(x_3); -if (x_2677 == 0) -{ -lean_object* x_2678; lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; -x_2678 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 3, x_10); -x_2679 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2679, 0, x_2678); -lean_ctor_set(x_2679, 1, x_2); -x_2680 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2680, 0, x_2679); -lean_ctor_set(x_2680, 1, x_3); -x_2681 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2681, 0, x_2680); -x_2682 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2682, 0, x_2681); -lean_ctor_set(x_2682, 1, x_4); -return x_2682; +lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; lean_object* x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; lean_object* x_2691; lean_object* x_2692; uint8_t x_2693; uint8_t x_2694; uint8_t x_2695; uint8_t x_2696; uint8_t x_2697; uint8_t x_2698; uint8_t x_2699; uint8_t x_2700; lean_object* x_2701; uint8_t x_2702; lean_object* x_2703; uint8_t x_2704; uint8_t x_2705; uint8_t x_2706; lean_object* x_2707; uint8_t x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; lean_object* x_2716; lean_object* x_2717; lean_object* x_2718; lean_object* x_2719; +x_2677 = lean_ctor_get(x_2555, 0); +x_2678 = lean_ctor_get(x_2555, 1); +lean_inc(x_2678); +lean_inc(x_2677); +lean_dec(x_2555); +x_2679 = lean_ctor_get(x_2542, 1); +lean_inc(x_2679); +if (lean_is_exclusive(x_2542)) { + lean_ctor_release(x_2542, 0); + lean_ctor_release(x_2542, 1); + x_2680 = x_2542; +} else { + lean_dec_ref(x_2542); + x_2680 = lean_box(0); } -else -{ -lean_object* x_2683; lean_object* x_2684; lean_object* x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; lean_object* x_2691; uint8_t x_2692; uint8_t x_2693; uint8_t x_2694; uint8_t x_2695; uint8_t x_2696; uint8_t x_2697; uint8_t x_2698; lean_object* x_2699; uint8_t x_2700; lean_object* x_2701; uint8_t x_2702; uint8_t x_2703; uint8_t x_2704; lean_object* x_2705; uint8_t x_2706; lean_object* x_2707; lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; -x_2683 = lean_ctor_get(x_3, 0); -x_2684 = lean_ctor_get(x_3, 1); -x_2685 = lean_ctor_get(x_3, 2); -x_2686 = lean_ctor_get(x_3, 3); -x_2687 = lean_ctor_get(x_3, 4); -x_2688 = lean_ctor_get(x_3, 5); -x_2689 = lean_ctor_get(x_3, 6); -x_2690 = lean_ctor_get(x_3, 7); -x_2691 = lean_ctor_get(x_3, 8); -x_2692 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2693 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2694 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2695 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2696 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2697 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2698 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2699 = lean_ctor_get(x_3, 9); -x_2700 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2701 = lean_ctor_get(x_3, 10); -x_2702 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2703 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2704 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2705 = lean_ctor_get(x_3, 11); -x_2706 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2707 = lean_ctor_get(x_3, 12); -x_2708 = lean_ctor_get(x_3, 13); -x_2709 = lean_ctor_get(x_3, 14); -lean_inc(x_2709); -lean_inc(x_2708); -lean_inc(x_2707); -lean_inc(x_2705); -lean_inc(x_2701); -lean_inc(x_2699); -lean_inc(x_2691); -lean_inc(x_2690); -lean_inc(x_2689); -lean_inc(x_2688); -lean_inc(x_2687); -lean_inc(x_2686); -lean_inc(x_2685); +x_2681 = lean_ctor_get(x_2677, 0); +lean_inc(x_2681); +x_2682 = lean_ctor_get(x_2677, 1); +lean_inc(x_2682); +if (lean_is_exclusive(x_2677)) { + lean_ctor_release(x_2677, 0); + lean_ctor_release(x_2677, 1); + x_2683 = x_2677; +} else { + lean_dec_ref(x_2677); + x_2683 = lean_box(0); +} +x_2684 = lean_ctor_get(x_2678, 0); lean_inc(x_2684); -lean_inc(x_2683); -lean_dec(x_3); -x_2710 = lean_box(0); -x_2711 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2711, 0, x_2683); -lean_ctor_set(x_2711, 1, x_2684); -lean_ctor_set(x_2711, 2, x_2685); -lean_ctor_set(x_2711, 3, x_2686); -lean_ctor_set(x_2711, 4, x_2687); -lean_ctor_set(x_2711, 5, x_2688); -lean_ctor_set(x_2711, 6, x_2689); -lean_ctor_set(x_2711, 7, x_2690); -lean_ctor_set(x_2711, 8, x_2691); -lean_ctor_set(x_2711, 9, x_2699); -lean_ctor_set(x_2711, 10, x_2701); -lean_ctor_set(x_2711, 11, x_2705); -lean_ctor_set(x_2711, 12, x_2707); -lean_ctor_set(x_2711, 13, x_2708); -lean_ctor_set(x_2711, 14, x_2709); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15, x_2692); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 1, x_2693); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 2, x_2694); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 3, x_10); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 4, x_2695); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 5, x_2696); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 6, x_2697); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 7, x_2698); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 8, x_2700); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 9, x_2702); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 10, x_2703); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 11, x_2704); -lean_ctor_set_uint8(x_2711, sizeof(void*)*15 + 12, x_2706); -x_2712 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2712, 0, x_2710); -lean_ctor_set(x_2712, 1, x_2); -x_2713 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2713, 0, x_2712); -lean_ctor_set(x_2713, 1, x_2711); -x_2714 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2714, 0, x_2713); -x_2715 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2715, 0, x_2714); -lean_ctor_set(x_2715, 1, x_4); -return x_2715; +x_2685 = lean_ctor_get(x_2678, 1); +lean_inc_ref(x_2685); +x_2686 = lean_ctor_get(x_2678, 2); +lean_inc_ref(x_2686); +x_2687 = lean_ctor_get(x_2678, 3); +lean_inc(x_2687); +x_2688 = lean_ctor_get(x_2678, 4); +lean_inc(x_2688); +x_2689 = lean_ctor_get(x_2678, 5); +lean_inc(x_2689); +x_2690 = lean_ctor_get(x_2678, 6); +lean_inc(x_2690); +x_2691 = lean_ctor_get(x_2678, 7); +lean_inc_ref(x_2691); +x_2692 = lean_ctor_get(x_2678, 8); +lean_inc(x_2692); +x_2693 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17); +x_2694 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 1); +x_2695 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 2); +x_2696 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 3); +x_2697 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 4); +x_2698 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 5); +x_2699 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 6); +x_2700 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 7); +x_2701 = lean_ctor_get(x_2678, 9); +lean_inc(x_2701); +x_2702 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 8); +x_2703 = lean_ctor_get(x_2678, 10); +lean_inc(x_2703); +x_2704 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 9); +x_2705 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 10); +x_2706 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 11); +x_2707 = lean_ctor_get(x_2678, 11); +lean_inc(x_2707); +x_2708 = lean_ctor_get_uint8(x_2678, sizeof(void*)*17 + 12); +x_2709 = lean_ctor_get(x_2678, 13); +lean_inc(x_2709); +x_2710 = lean_ctor_get(x_2678, 14); +lean_inc(x_2710); +x_2711 = lean_ctor_get(x_2678, 15); +lean_inc(x_2711); +x_2712 = lean_ctor_get(x_2678, 16); +lean_inc(x_2712); +if (lean_is_exclusive(x_2678)) { + lean_ctor_release(x_2678, 0); + lean_ctor_release(x_2678, 1); + lean_ctor_release(x_2678, 2); + lean_ctor_release(x_2678, 3); + lean_ctor_release(x_2678, 4); + lean_ctor_release(x_2678, 5); + lean_ctor_release(x_2678, 6); + lean_ctor_release(x_2678, 7); + lean_ctor_release(x_2678, 8); + lean_ctor_release(x_2678, 9); + lean_ctor_release(x_2678, 10); + lean_ctor_release(x_2678, 11); + lean_ctor_release(x_2678, 12); + lean_ctor_release(x_2678, 13); + lean_ctor_release(x_2678, 14); + lean_ctor_release(x_2678, 15); + lean_ctor_release(x_2678, 16); + x_2713 = x_2678; +} else { + lean_dec_ref(x_2678); + x_2713 = lean_box(0); } +x_2714 = lean_box(0); +x_2715 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2715, 0, x_2681); +if (lean_is_scalar(x_2713)) { + x_2716 = lean_alloc_ctor(0, 17, 14); +} else { + x_2716 = x_2713; } +lean_ctor_set(x_2716, 0, x_2684); +lean_ctor_set(x_2716, 1, x_2685); +lean_ctor_set(x_2716, 2, x_2686); +lean_ctor_set(x_2716, 3, x_2687); +lean_ctor_set(x_2716, 4, x_2688); +lean_ctor_set(x_2716, 5, x_2689); +lean_ctor_set(x_2716, 6, x_2690); +lean_ctor_set(x_2716, 7, x_2691); +lean_ctor_set(x_2716, 8, x_2692); +lean_ctor_set(x_2716, 9, x_2701); +lean_ctor_set(x_2716, 10, x_2703); +lean_ctor_set(x_2716, 11, x_2707); +lean_ctor_set(x_2716, 12, x_2715); +lean_ctor_set(x_2716, 13, x_2709); +lean_ctor_set(x_2716, 14, x_2710); +lean_ctor_set(x_2716, 15, x_2711); +lean_ctor_set(x_2716, 16, x_2712); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17, x_2693); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 1, x_2694); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 2, x_2695); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 3, x_2696); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 4, x_2697); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 5, x_2698); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 6, x_2699); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 7, x_2700); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 8, x_2702); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 9, x_2704); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 10, x_2705); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 11, x_2706); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 12, x_2708); +lean_ctor_set_uint8(x_2716, sizeof(void*)*17 + 13, x_36); +if (lean_is_scalar(x_2683)) { + x_2717 = lean_alloc_ctor(0, 2, 0); +} else { + x_2717 = x_2683; } -else -{ -uint8_t x_2716; -lean_dec_ref(x_1); -x_2716 = !lean_is_exclusive(x_3); -if (x_2716 == 0) -{ -lean_object* x_2717; lean_object* x_2718; lean_object* x_2719; lean_object* x_2720; lean_object* x_2721; -x_2717 = lean_box(0); -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 2, x_10); +lean_ctor_set(x_2717, 0, x_2714); +lean_ctor_set(x_2717, 1, x_2682); x_2718 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2718, 0, x_2717); -lean_ctor_set(x_2718, 1, x_2); -x_2719 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2719, 0, x_2718); -lean_ctor_set(x_2719, 1, x_3); -x_2720 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2720, 0, x_2719); -x_2721 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2721, 0, x_2720); -lean_ctor_set(x_2721, 1, x_4); -return x_2721; +lean_ctor_set(x_2718, 1, x_2716); +lean_ctor_set(x_2543, 0, x_2718); +if (lean_is_scalar(x_2680)) { + x_2719 = lean_alloc_ctor(0, 2, 0); +} else { + x_2719 = x_2680; +} +lean_ctor_set(x_2719, 0, x_2543); +lean_ctor_set(x_2719, 1, x_2679); +return x_2719; +} } else { -lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; lean_object* x_2725; lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; lean_object* x_2730; uint8_t x_2731; uint8_t x_2732; uint8_t x_2733; uint8_t x_2734; uint8_t x_2735; uint8_t x_2736; uint8_t x_2737; lean_object* x_2738; uint8_t x_2739; lean_object* x_2740; uint8_t x_2741; uint8_t x_2742; uint8_t x_2743; lean_object* x_2744; uint8_t x_2745; lean_object* x_2746; lean_object* x_2747; lean_object* x_2748; lean_object* x_2749; lean_object* x_2750; lean_object* x_2751; lean_object* x_2752; lean_object* x_2753; lean_object* x_2754; -x_2722 = lean_ctor_get(x_3, 0); -x_2723 = lean_ctor_get(x_3, 1); -x_2724 = lean_ctor_get(x_3, 2); -x_2725 = lean_ctor_get(x_3, 3); -x_2726 = lean_ctor_get(x_3, 4); -x_2727 = lean_ctor_get(x_3, 5); -x_2728 = lean_ctor_get(x_3, 6); -x_2729 = lean_ctor_get(x_3, 7); -x_2730 = lean_ctor_get(x_3, 8); -x_2731 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2732 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 1); -x_2733 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2734 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2735 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2736 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2737 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2738 = lean_ctor_get(x_3, 9); -x_2739 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2740 = lean_ctor_get(x_3, 10); -x_2741 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2742 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2743 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2744 = lean_ctor_get(x_3, 11); -x_2745 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2746 = lean_ctor_get(x_3, 12); -x_2747 = lean_ctor_get(x_3, 13); -x_2748 = lean_ctor_get(x_3, 14); -lean_inc(x_2748); -lean_inc(x_2747); -lean_inc(x_2746); -lean_inc(x_2744); -lean_inc(x_2740); -lean_inc(x_2738); -lean_inc(x_2730); -lean_inc(x_2729); -lean_inc(x_2728); -lean_inc(x_2727); -lean_inc(x_2726); -lean_inc(x_2725); -lean_inc(x_2724); -lean_inc(x_2723); +lean_object* x_2720; lean_object* x_2721; lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; lean_object* x_2725; lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; lean_object* x_2730; lean_object* x_2731; lean_object* x_2732; lean_object* x_2733; lean_object* x_2734; lean_object* x_2735; lean_object* x_2736; lean_object* x_2737; uint8_t x_2738; uint8_t x_2739; uint8_t x_2740; uint8_t x_2741; uint8_t x_2742; uint8_t x_2743; uint8_t x_2744; uint8_t x_2745; lean_object* x_2746; uint8_t x_2747; lean_object* x_2748; uint8_t x_2749; uint8_t x_2750; uint8_t x_2751; lean_object* x_2752; uint8_t x_2753; lean_object* x_2754; lean_object* x_2755; lean_object* x_2756; lean_object* x_2757; lean_object* x_2758; lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; lean_object* x_2765; +x_2720 = lean_ctor_get(x_2543, 0); +lean_inc(x_2720); +lean_dec(x_2543); +x_2721 = lean_ctor_get(x_2720, 0); +lean_inc(x_2721); +x_2722 = lean_ctor_get(x_2720, 1); lean_inc(x_2722); -lean_dec(x_3); -x_2749 = lean_box(0); -x_2750 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2750, 0, x_2722); -lean_ctor_set(x_2750, 1, x_2723); -lean_ctor_set(x_2750, 2, x_2724); -lean_ctor_set(x_2750, 3, x_2725); -lean_ctor_set(x_2750, 4, x_2726); -lean_ctor_set(x_2750, 5, x_2727); -lean_ctor_set(x_2750, 6, x_2728); -lean_ctor_set(x_2750, 7, x_2729); -lean_ctor_set(x_2750, 8, x_2730); -lean_ctor_set(x_2750, 9, x_2738); -lean_ctor_set(x_2750, 10, x_2740); -lean_ctor_set(x_2750, 11, x_2744); -lean_ctor_set(x_2750, 12, x_2746); -lean_ctor_set(x_2750, 13, x_2747); -lean_ctor_set(x_2750, 14, x_2748); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15, x_2731); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 1, x_2732); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 2, x_10); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 3, x_2733); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 4, x_2734); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 5, x_2735); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 6, x_2736); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 7, x_2737); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 8, x_2739); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 9, x_2741); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 10, x_2742); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 11, x_2743); -lean_ctor_set_uint8(x_2750, sizeof(void*)*15 + 12, x_2745); -x_2751 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2751, 0, x_2749); -lean_ctor_set(x_2751, 1, x_2); -x_2752 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2752, 0, x_2751); -lean_ctor_set(x_2752, 1, x_2750); -x_2753 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2753, 0, x_2752); -x_2754 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2754, 0, x_2753); -lean_ctor_set(x_2754, 1, x_4); -return x_2754; +if (lean_is_exclusive(x_2720)) { + lean_ctor_release(x_2720, 0); + lean_ctor_release(x_2720, 1); + x_2723 = x_2720; +} else { + lean_dec_ref(x_2720); + x_2723 = lean_box(0); } +x_2724 = lean_ctor_get(x_2542, 1); +lean_inc(x_2724); +if (lean_is_exclusive(x_2542)) { + lean_ctor_release(x_2542, 0); + lean_ctor_release(x_2542, 1); + x_2725 = x_2542; +} else { + lean_dec_ref(x_2542); + x_2725 = lean_box(0); } +x_2726 = lean_ctor_get(x_2721, 0); +lean_inc(x_2726); +x_2727 = lean_ctor_get(x_2721, 1); +lean_inc(x_2727); +if (lean_is_exclusive(x_2721)) { + lean_ctor_release(x_2721, 0); + lean_ctor_release(x_2721, 1); + x_2728 = x_2721; +} else { + lean_dec_ref(x_2721); + x_2728 = lean_box(0); } -else -{ -uint8_t x_2755; -lean_dec_ref(x_1); -x_2755 = !lean_is_exclusive(x_3); -if (x_2755 == 0) -{ -lean_object* x_2756; uint8_t x_2757; lean_object* x_2758; lean_object* x_2759; lean_object* x_2760; lean_object* x_2761; -x_2756 = lean_box(0); -x_2757 = 2; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 1, x_2757); -x_2758 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2758, 0, x_2756); -lean_ctor_set(x_2758, 1, x_2); -x_2759 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2759, 0, x_2758); -lean_ctor_set(x_2759, 1, x_3); +x_2729 = lean_ctor_get(x_2722, 0); +lean_inc(x_2729); +x_2730 = lean_ctor_get(x_2722, 1); +lean_inc_ref(x_2730); +x_2731 = lean_ctor_get(x_2722, 2); +lean_inc_ref(x_2731); +x_2732 = lean_ctor_get(x_2722, 3); +lean_inc(x_2732); +x_2733 = lean_ctor_get(x_2722, 4); +lean_inc(x_2733); +x_2734 = lean_ctor_get(x_2722, 5); +lean_inc(x_2734); +x_2735 = lean_ctor_get(x_2722, 6); +lean_inc(x_2735); +x_2736 = lean_ctor_get(x_2722, 7); +lean_inc_ref(x_2736); +x_2737 = lean_ctor_get(x_2722, 8); +lean_inc(x_2737); +x_2738 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17); +x_2739 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 1); +x_2740 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 2); +x_2741 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 3); +x_2742 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 4); +x_2743 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 5); +x_2744 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 6); +x_2745 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 7); +x_2746 = lean_ctor_get(x_2722, 9); +lean_inc(x_2746); +x_2747 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 8); +x_2748 = lean_ctor_get(x_2722, 10); +lean_inc(x_2748); +x_2749 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 9); +x_2750 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 10); +x_2751 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 11); +x_2752 = lean_ctor_get(x_2722, 11); +lean_inc(x_2752); +x_2753 = lean_ctor_get_uint8(x_2722, sizeof(void*)*17 + 12); +x_2754 = lean_ctor_get(x_2722, 13); +lean_inc(x_2754); +x_2755 = lean_ctor_get(x_2722, 14); +lean_inc(x_2755); +x_2756 = lean_ctor_get(x_2722, 15); +lean_inc(x_2756); +x_2757 = lean_ctor_get(x_2722, 16); +lean_inc(x_2757); +if (lean_is_exclusive(x_2722)) { + lean_ctor_release(x_2722, 0); + lean_ctor_release(x_2722, 1); + lean_ctor_release(x_2722, 2); + lean_ctor_release(x_2722, 3); + lean_ctor_release(x_2722, 4); + lean_ctor_release(x_2722, 5); + lean_ctor_release(x_2722, 6); + lean_ctor_release(x_2722, 7); + lean_ctor_release(x_2722, 8); + lean_ctor_release(x_2722, 9); + lean_ctor_release(x_2722, 10); + lean_ctor_release(x_2722, 11); + lean_ctor_release(x_2722, 12); + lean_ctor_release(x_2722, 13); + lean_ctor_release(x_2722, 14); + lean_ctor_release(x_2722, 15); + lean_ctor_release(x_2722, 16); + x_2758 = x_2722; +} else { + lean_dec_ref(x_2722); + x_2758 = lean_box(0); +} +x_2759 = lean_box(0); x_2760 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2760, 0, x_2759); -x_2761 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2761, 0, x_2760); -lean_ctor_set(x_2761, 1, x_4); -return x_2761; +lean_ctor_set(x_2760, 0, x_2726); +if (lean_is_scalar(x_2758)) { + x_2761 = lean_alloc_ctor(0, 17, 14); +} else { + x_2761 = x_2758; +} +lean_ctor_set(x_2761, 0, x_2729); +lean_ctor_set(x_2761, 1, x_2730); +lean_ctor_set(x_2761, 2, x_2731); +lean_ctor_set(x_2761, 3, x_2732); +lean_ctor_set(x_2761, 4, x_2733); +lean_ctor_set(x_2761, 5, x_2734); +lean_ctor_set(x_2761, 6, x_2735); +lean_ctor_set(x_2761, 7, x_2736); +lean_ctor_set(x_2761, 8, x_2737); +lean_ctor_set(x_2761, 9, x_2746); +lean_ctor_set(x_2761, 10, x_2748); +lean_ctor_set(x_2761, 11, x_2752); +lean_ctor_set(x_2761, 12, x_2760); +lean_ctor_set(x_2761, 13, x_2754); +lean_ctor_set(x_2761, 14, x_2755); +lean_ctor_set(x_2761, 15, x_2756); +lean_ctor_set(x_2761, 16, x_2757); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17, x_2738); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 1, x_2739); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 2, x_2740); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 3, x_2741); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 4, x_2742); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 5, x_2743); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 6, x_2744); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 7, x_2745); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 8, x_2747); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 9, x_2749); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 10, x_2750); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 11, x_2751); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 12, x_2753); +lean_ctor_set_uint8(x_2761, sizeof(void*)*17 + 13, x_36); +if (lean_is_scalar(x_2728)) { + x_2762 = lean_alloc_ctor(0, 2, 0); +} else { + x_2762 = x_2728; +} +lean_ctor_set(x_2762, 0, x_2759); +lean_ctor_set(x_2762, 1, x_2727); +if (lean_is_scalar(x_2723)) { + x_2763 = lean_alloc_ctor(0, 2, 0); +} else { + x_2763 = x_2723; +} +lean_ctor_set(x_2763, 0, x_2762); +lean_ctor_set(x_2763, 1, x_2761); +x_2764 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2764, 0, x_2763); +if (lean_is_scalar(x_2725)) { + x_2765 = lean_alloc_ctor(0, 2, 0); +} else { + x_2765 = x_2725; +} +lean_ctor_set(x_2765, 0, x_2764); +lean_ctor_set(x_2765, 1, x_2724); +return x_2765; } -else -{ -lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; lean_object* x_2769; lean_object* x_2770; uint8_t x_2771; uint8_t x_2772; uint8_t x_2773; uint8_t x_2774; uint8_t x_2775; uint8_t x_2776; uint8_t x_2777; lean_object* x_2778; uint8_t x_2779; lean_object* x_2780; uint8_t x_2781; uint8_t x_2782; uint8_t x_2783; lean_object* x_2784; uint8_t x_2785; lean_object* x_2786; lean_object* x_2787; lean_object* x_2788; lean_object* x_2789; uint8_t x_2790; lean_object* x_2791; lean_object* x_2792; lean_object* x_2793; lean_object* x_2794; lean_object* x_2795; -x_2762 = lean_ctor_get(x_3, 0); -x_2763 = lean_ctor_get(x_3, 1); -x_2764 = lean_ctor_get(x_3, 2); -x_2765 = lean_ctor_get(x_3, 3); -x_2766 = lean_ctor_get(x_3, 4); -x_2767 = lean_ctor_get(x_3, 5); -x_2768 = lean_ctor_get(x_3, 6); -x_2769 = lean_ctor_get(x_3, 7); -x_2770 = lean_ctor_get(x_3, 8); -x_2771 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2772 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2773 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2774 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2775 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2776 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2777 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2778 = lean_ctor_get(x_3, 9); -x_2779 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2780 = lean_ctor_get(x_3, 10); -x_2781 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2782 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2783 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2784 = lean_ctor_get(x_3, 11); -x_2785 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2786 = lean_ctor_get(x_3, 12); -x_2787 = lean_ctor_get(x_3, 13); -x_2788 = lean_ctor_get(x_3, 14); -lean_inc(x_2788); -lean_inc(x_2787); -lean_inc(x_2786); -lean_inc(x_2784); -lean_inc(x_2780); -lean_inc(x_2778); -lean_inc(x_2770); -lean_inc(x_2769); -lean_inc(x_2768); -lean_inc(x_2767); -lean_inc(x_2766); -lean_inc(x_2765); -lean_inc(x_2764); -lean_inc(x_2763); -lean_inc(x_2762); -lean_dec(x_3); -x_2789 = lean_box(0); -x_2790 = 2; -x_2791 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2791, 0, x_2762); -lean_ctor_set(x_2791, 1, x_2763); -lean_ctor_set(x_2791, 2, x_2764); -lean_ctor_set(x_2791, 3, x_2765); -lean_ctor_set(x_2791, 4, x_2766); -lean_ctor_set(x_2791, 5, x_2767); -lean_ctor_set(x_2791, 6, x_2768); -lean_ctor_set(x_2791, 7, x_2769); -lean_ctor_set(x_2791, 8, x_2770); -lean_ctor_set(x_2791, 9, x_2778); -lean_ctor_set(x_2791, 10, x_2780); -lean_ctor_set(x_2791, 11, x_2784); -lean_ctor_set(x_2791, 12, x_2786); -lean_ctor_set(x_2791, 13, x_2787); -lean_ctor_set(x_2791, 14, x_2788); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15, x_2771); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 1, x_2790); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 2, x_2772); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 3, x_2773); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 4, x_2774); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 5, x_2775); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 6, x_2776); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 7, x_2777); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 8, x_2779); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 9, x_2781); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 10, x_2782); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 11, x_2783); -lean_ctor_set_uint8(x_2791, sizeof(void*)*15 + 12, x_2785); -x_2792 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2792, 0, x_2789); -lean_ctor_set(x_2792, 1, x_2); -x_2793 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2793, 0, x_2792); -lean_ctor_set(x_2793, 1, x_2791); -x_2794 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2794, 0, x_2793); -x_2795 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2795, 0, x_2794); -lean_ctor_set(x_2795, 1, x_4); -return x_2795; } } } else { -uint8_t x_2796; +uint8_t x_2766; lean_dec_ref(x_1); -x_2796 = !lean_is_exclusive(x_3); -if (x_2796 == 0) +x_2766 = !lean_is_exclusive(x_3); +if (x_2766 == 0) { -lean_object* x_2797; uint8_t x_2798; lean_object* x_2799; lean_object* x_2800; lean_object* x_2801; lean_object* x_2802; -x_2797 = lean_box(0); -x_2798 = 0; -lean_ctor_set_uint8(x_3, sizeof(void*)*15 + 1, x_2798); -x_2799 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2799, 0, x_2797); -lean_ctor_set(x_2799, 1, x_2); -x_2800 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2800, 0, x_2799); -lean_ctor_set(x_2800, 1, x_3); -x_2801 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2801, 0, x_2800); -x_2802 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2802, 0, x_2801); -lean_ctor_set(x_2802, 1, x_4); -return x_2802; +lean_object* x_2767; lean_object* x_2768; lean_object* x_2769; lean_object* x_2770; lean_object* x_2771; +x_2767 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 12, x_36); +x_2768 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2768, 0, x_2767); +lean_ctor_set(x_2768, 1, x_2); +x_2769 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2769, 0, x_2768); +lean_ctor_set(x_2769, 1, x_3); +x_2770 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2770, 0, x_2769); +x_2771 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2771, 0, x_2770); +lean_ctor_set(x_2771, 1, x_4); +return x_2771; } else { -lean_object* x_2803; lean_object* x_2804; lean_object* x_2805; lean_object* x_2806; lean_object* x_2807; lean_object* x_2808; lean_object* x_2809; lean_object* x_2810; lean_object* x_2811; uint8_t x_2812; uint8_t x_2813; uint8_t x_2814; uint8_t x_2815; uint8_t x_2816; uint8_t x_2817; uint8_t x_2818; lean_object* x_2819; uint8_t x_2820; lean_object* x_2821; uint8_t x_2822; uint8_t x_2823; uint8_t x_2824; lean_object* x_2825; uint8_t x_2826; lean_object* x_2827; lean_object* x_2828; lean_object* x_2829; lean_object* x_2830; uint8_t x_2831; lean_object* x_2832; lean_object* x_2833; lean_object* x_2834; lean_object* x_2835; lean_object* x_2836; -x_2803 = lean_ctor_get(x_3, 0); -x_2804 = lean_ctor_get(x_3, 1); -x_2805 = lean_ctor_get(x_3, 2); -x_2806 = lean_ctor_get(x_3, 3); -x_2807 = lean_ctor_get(x_3, 4); -x_2808 = lean_ctor_get(x_3, 5); -x_2809 = lean_ctor_get(x_3, 6); -x_2810 = lean_ctor_get(x_3, 7); -x_2811 = lean_ctor_get(x_3, 8); -x_2812 = lean_ctor_get_uint8(x_3, sizeof(void*)*15); -x_2813 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 2); -x_2814 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 3); -x_2815 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 4); -x_2816 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 5); -x_2817 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 6); -x_2818 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 7); -x_2819 = lean_ctor_get(x_3, 9); -x_2820 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 8); -x_2821 = lean_ctor_get(x_3, 10); -x_2822 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 9); -x_2823 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 10); -x_2824 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 11); -x_2825 = lean_ctor_get(x_3, 11); -x_2826 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -x_2827 = lean_ctor_get(x_3, 12); -x_2828 = lean_ctor_get(x_3, 13); -x_2829 = lean_ctor_get(x_3, 14); -lean_inc(x_2829); -lean_inc(x_2828); -lean_inc(x_2827); -lean_inc(x_2825); -lean_inc(x_2821); -lean_inc(x_2819); -lean_inc(x_2811); -lean_inc(x_2810); -lean_inc(x_2809); -lean_inc(x_2808); -lean_inc(x_2807); -lean_inc(x_2806); -lean_inc(x_2805); -lean_inc(x_2804); -lean_inc(x_2803); +lean_object* x_2772; lean_object* x_2773; lean_object* x_2774; lean_object* x_2775; lean_object* x_2776; lean_object* x_2777; lean_object* x_2778; lean_object* x_2779; lean_object* x_2780; uint8_t x_2781; uint8_t x_2782; uint8_t x_2783; uint8_t x_2784; uint8_t x_2785; uint8_t x_2786; uint8_t x_2787; uint8_t x_2788; lean_object* x_2789; uint8_t x_2790; lean_object* x_2791; uint8_t x_2792; uint8_t x_2793; uint8_t x_2794; lean_object* x_2795; lean_object* x_2796; uint8_t x_2797; lean_object* x_2798; lean_object* x_2799; lean_object* x_2800; lean_object* x_2801; lean_object* x_2802; lean_object* x_2803; lean_object* x_2804; lean_object* x_2805; lean_object* x_2806; lean_object* x_2807; +x_2772 = lean_ctor_get(x_3, 0); +x_2773 = lean_ctor_get(x_3, 1); +x_2774 = lean_ctor_get(x_3, 2); +x_2775 = lean_ctor_get(x_3, 3); +x_2776 = lean_ctor_get(x_3, 4); +x_2777 = lean_ctor_get(x_3, 5); +x_2778 = lean_ctor_get(x_3, 6); +x_2779 = lean_ctor_get(x_3, 7); +x_2780 = lean_ctor_get(x_3, 8); +x_2781 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2782 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_2783 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_2784 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_2785 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_2786 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_2787 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_2788 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_2789 = lean_ctor_get(x_3, 9); +x_2790 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_2791 = lean_ctor_get(x_3, 10); +x_2792 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_2793 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_2794 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_2795 = lean_ctor_get(x_3, 11); +x_2796 = lean_ctor_get(x_3, 12); +x_2797 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_2798 = lean_ctor_get(x_3, 13); +x_2799 = lean_ctor_get(x_3, 14); +x_2800 = lean_ctor_get(x_3, 15); +x_2801 = lean_ctor_get(x_3, 16); +lean_inc(x_2801); +lean_inc(x_2800); +lean_inc(x_2799); +lean_inc(x_2798); +lean_inc(x_2796); +lean_inc(x_2795); +lean_inc(x_2791); +lean_inc(x_2789); +lean_inc(x_2780); +lean_inc(x_2779); +lean_inc(x_2778); +lean_inc(x_2777); +lean_inc(x_2776); +lean_inc(x_2775); +lean_inc(x_2774); +lean_inc(x_2773); +lean_inc(x_2772); lean_dec(x_3); -x_2830 = lean_box(0); -x_2831 = 0; -x_2832 = lean_alloc_ctor(0, 15, 13); -lean_ctor_set(x_2832, 0, x_2803); -lean_ctor_set(x_2832, 1, x_2804); -lean_ctor_set(x_2832, 2, x_2805); -lean_ctor_set(x_2832, 3, x_2806); -lean_ctor_set(x_2832, 4, x_2807); -lean_ctor_set(x_2832, 5, x_2808); -lean_ctor_set(x_2832, 6, x_2809); -lean_ctor_set(x_2832, 7, x_2810); -lean_ctor_set(x_2832, 8, x_2811); -lean_ctor_set(x_2832, 9, x_2819); -lean_ctor_set(x_2832, 10, x_2821); -lean_ctor_set(x_2832, 11, x_2825); -lean_ctor_set(x_2832, 12, x_2827); -lean_ctor_set(x_2832, 13, x_2828); -lean_ctor_set(x_2832, 14, x_2829); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15, x_2812); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 1, x_2831); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 2, x_2813); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 3, x_2814); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 4, x_2815); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 5, x_2816); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 6, x_2817); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 7, x_2818); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 8, x_2820); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 9, x_2822); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 10, x_2823); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 11, x_2824); -lean_ctor_set_uint8(x_2832, sizeof(void*)*15 + 12, x_2826); -x_2833 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2833, 0, x_2830); -lean_ctor_set(x_2833, 1, x_2); -x_2834 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2834, 0, x_2833); -lean_ctor_set(x_2834, 1, x_2832); -x_2835 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2835, 0, x_2834); -x_2836 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2836, 0, x_2835); -lean_ctor_set(x_2836, 1, x_4); -return x_2836; +x_2802 = lean_box(0); +x_2803 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2803, 0, x_2772); +lean_ctor_set(x_2803, 1, x_2773); +lean_ctor_set(x_2803, 2, x_2774); +lean_ctor_set(x_2803, 3, x_2775); +lean_ctor_set(x_2803, 4, x_2776); +lean_ctor_set(x_2803, 5, x_2777); +lean_ctor_set(x_2803, 6, x_2778); +lean_ctor_set(x_2803, 7, x_2779); +lean_ctor_set(x_2803, 8, x_2780); +lean_ctor_set(x_2803, 9, x_2789); +lean_ctor_set(x_2803, 10, x_2791); +lean_ctor_set(x_2803, 11, x_2795); +lean_ctor_set(x_2803, 12, x_2796); +lean_ctor_set(x_2803, 13, x_2798); +lean_ctor_set(x_2803, 14, x_2799); +lean_ctor_set(x_2803, 15, x_2800); +lean_ctor_set(x_2803, 16, x_2801); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17, x_2781); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 1, x_2782); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 2, x_2783); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 3, x_2784); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 4, x_2785); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 5, x_2786); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 6, x_2787); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 7, x_2788); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 8, x_2790); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 9, x_2792); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 10, x_2793); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 11, x_2794); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 12, x_36); +lean_ctor_set_uint8(x_2803, sizeof(void*)*17 + 13, x_2797); +x_2804 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2804, 0, x_2802); +lean_ctor_set(x_2804, 1, x_2); +x_2805 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2805, 0, x_2804); +lean_ctor_set(x_2805, 1, x_2803); +x_2806 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2806, 0, x_2805); +x_2807 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2807, 0, x_2806); +lean_ctor_set(x_2807, 1, x_4); +return x_2807; +} +} +} +else +{ +uint8_t x_2808; +lean_dec_ref(x_1); +x_2808 = !lean_is_exclusive(x_3); +if (x_2808 == 0) +{ +lean_object* x_2809; uint8_t x_2810; lean_object* x_2811; lean_object* x_2812; lean_object* x_2813; lean_object* x_2814; +x_2809 = lean_box(0); +x_2810 = 1; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 8, x_2810); +x_2811 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2811, 0, x_2809); +lean_ctor_set(x_2811, 1, x_2); +x_2812 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2812, 0, x_2811); +lean_ctor_set(x_2812, 1, x_3); +x_2813 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2813, 0, x_2812); +x_2814 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2814, 0, x_2813); +lean_ctor_set(x_2814, 1, x_4); +return x_2814; +} +else +{ +lean_object* x_2815; lean_object* x_2816; lean_object* x_2817; lean_object* x_2818; lean_object* x_2819; lean_object* x_2820; lean_object* x_2821; lean_object* x_2822; lean_object* x_2823; uint8_t x_2824; uint8_t x_2825; uint8_t x_2826; uint8_t x_2827; uint8_t x_2828; uint8_t x_2829; uint8_t x_2830; uint8_t x_2831; lean_object* x_2832; lean_object* x_2833; uint8_t x_2834; uint8_t x_2835; uint8_t x_2836; lean_object* x_2837; uint8_t x_2838; lean_object* x_2839; uint8_t x_2840; lean_object* x_2841; lean_object* x_2842; lean_object* x_2843; lean_object* x_2844; lean_object* x_2845; uint8_t x_2846; lean_object* x_2847; lean_object* x_2848; lean_object* x_2849; lean_object* x_2850; lean_object* x_2851; +x_2815 = lean_ctor_get(x_3, 0); +x_2816 = lean_ctor_get(x_3, 1); +x_2817 = lean_ctor_get(x_3, 2); +x_2818 = lean_ctor_get(x_3, 3); +x_2819 = lean_ctor_get(x_3, 4); +x_2820 = lean_ctor_get(x_3, 5); +x_2821 = lean_ctor_get(x_3, 6); +x_2822 = lean_ctor_get(x_3, 7); +x_2823 = lean_ctor_get(x_3, 8); +x_2824 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2825 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_2826 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_2827 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_2828 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_2829 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_2830 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_2831 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_2832 = lean_ctor_get(x_3, 9); +x_2833 = lean_ctor_get(x_3, 10); +x_2834 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_2835 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_2836 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_2837 = lean_ctor_get(x_3, 11); +x_2838 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_2839 = lean_ctor_get(x_3, 12); +x_2840 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_2841 = lean_ctor_get(x_3, 13); +x_2842 = lean_ctor_get(x_3, 14); +x_2843 = lean_ctor_get(x_3, 15); +x_2844 = lean_ctor_get(x_3, 16); +lean_inc(x_2844); +lean_inc(x_2843); +lean_inc(x_2842); +lean_inc(x_2841); +lean_inc(x_2839); +lean_inc(x_2837); +lean_inc(x_2833); +lean_inc(x_2832); +lean_inc(x_2823); +lean_inc(x_2822); +lean_inc(x_2821); +lean_inc(x_2820); +lean_inc(x_2819); +lean_inc(x_2818); +lean_inc(x_2817); +lean_inc(x_2816); +lean_inc(x_2815); +lean_dec(x_3); +x_2845 = lean_box(0); +x_2846 = 1; +x_2847 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2847, 0, x_2815); +lean_ctor_set(x_2847, 1, x_2816); +lean_ctor_set(x_2847, 2, x_2817); +lean_ctor_set(x_2847, 3, x_2818); +lean_ctor_set(x_2847, 4, x_2819); +lean_ctor_set(x_2847, 5, x_2820); +lean_ctor_set(x_2847, 6, x_2821); +lean_ctor_set(x_2847, 7, x_2822); +lean_ctor_set(x_2847, 8, x_2823); +lean_ctor_set(x_2847, 9, x_2832); +lean_ctor_set(x_2847, 10, x_2833); +lean_ctor_set(x_2847, 11, x_2837); +lean_ctor_set(x_2847, 12, x_2839); +lean_ctor_set(x_2847, 13, x_2841); +lean_ctor_set(x_2847, 14, x_2842); +lean_ctor_set(x_2847, 15, x_2843); +lean_ctor_set(x_2847, 16, x_2844); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17, x_2824); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 1, x_2825); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 2, x_2826); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 3, x_2827); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 4, x_2828); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 5, x_2829); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 6, x_2830); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 7, x_2831); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 8, x_2846); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 9, x_2834); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 10, x_2835); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 11, x_2836); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 12, x_2838); +lean_ctor_set_uint8(x_2847, sizeof(void*)*17 + 13, x_2840); +x_2848 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2848, 0, x_2845); +lean_ctor_set(x_2848, 1, x_2); +x_2849 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2849, 0, x_2848); +lean_ctor_set(x_2849, 1, x_2847); +x_2850 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2850, 0, x_2849); +x_2851 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2851, 0, x_2850); +lean_ctor_set(x_2851, 1, x_4); +return x_2851; +} +} +} +else +{ +uint8_t x_2852; +lean_dec_ref(x_1); +x_2852 = !lean_is_exclusive(x_3); +if (x_2852 == 0) +{ +lean_object* x_2853; uint8_t x_2854; lean_object* x_2855; lean_object* x_2856; lean_object* x_2857; lean_object* x_2858; +x_2853 = lean_box(0); +x_2854 = 2; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 8, x_2854); +x_2855 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2855, 0, x_2853); +lean_ctor_set(x_2855, 1, x_2); +x_2856 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2856, 0, x_2855); +lean_ctor_set(x_2856, 1, x_3); +x_2857 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2857, 0, x_2856); +x_2858 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2858, 0, x_2857); +lean_ctor_set(x_2858, 1, x_4); +return x_2858; +} +else +{ +lean_object* x_2859; lean_object* x_2860; lean_object* x_2861; lean_object* x_2862; lean_object* x_2863; lean_object* x_2864; lean_object* x_2865; lean_object* x_2866; lean_object* x_2867; uint8_t x_2868; uint8_t x_2869; uint8_t x_2870; uint8_t x_2871; uint8_t x_2872; uint8_t x_2873; uint8_t x_2874; uint8_t x_2875; lean_object* x_2876; lean_object* x_2877; uint8_t x_2878; uint8_t x_2879; uint8_t x_2880; lean_object* x_2881; uint8_t x_2882; lean_object* x_2883; uint8_t x_2884; lean_object* x_2885; lean_object* x_2886; lean_object* x_2887; lean_object* x_2888; lean_object* x_2889; uint8_t x_2890; lean_object* x_2891; lean_object* x_2892; lean_object* x_2893; lean_object* x_2894; lean_object* x_2895; +x_2859 = lean_ctor_get(x_3, 0); +x_2860 = lean_ctor_get(x_3, 1); +x_2861 = lean_ctor_get(x_3, 2); +x_2862 = lean_ctor_get(x_3, 3); +x_2863 = lean_ctor_get(x_3, 4); +x_2864 = lean_ctor_get(x_3, 5); +x_2865 = lean_ctor_get(x_3, 6); +x_2866 = lean_ctor_get(x_3, 7); +x_2867 = lean_ctor_get(x_3, 8); +x_2868 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2869 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_2870 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_2871 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_2872 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_2873 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_2874 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_2875 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_2876 = lean_ctor_get(x_3, 9); +x_2877 = lean_ctor_get(x_3, 10); +x_2878 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_2879 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_2880 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_2881 = lean_ctor_get(x_3, 11); +x_2882 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_2883 = lean_ctor_get(x_3, 12); +x_2884 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_2885 = lean_ctor_get(x_3, 13); +x_2886 = lean_ctor_get(x_3, 14); +x_2887 = lean_ctor_get(x_3, 15); +x_2888 = lean_ctor_get(x_3, 16); +lean_inc(x_2888); +lean_inc(x_2887); +lean_inc(x_2886); +lean_inc(x_2885); +lean_inc(x_2883); +lean_inc(x_2881); +lean_inc(x_2877); +lean_inc(x_2876); +lean_inc(x_2867); +lean_inc(x_2866); +lean_inc(x_2865); +lean_inc(x_2864); +lean_inc(x_2863); +lean_inc(x_2862); +lean_inc(x_2861); +lean_inc(x_2860); +lean_inc(x_2859); +lean_dec(x_3); +x_2889 = lean_box(0); +x_2890 = 2; +x_2891 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2891, 0, x_2859); +lean_ctor_set(x_2891, 1, x_2860); +lean_ctor_set(x_2891, 2, x_2861); +lean_ctor_set(x_2891, 3, x_2862); +lean_ctor_set(x_2891, 4, x_2863); +lean_ctor_set(x_2891, 5, x_2864); +lean_ctor_set(x_2891, 6, x_2865); +lean_ctor_set(x_2891, 7, x_2866); +lean_ctor_set(x_2891, 8, x_2867); +lean_ctor_set(x_2891, 9, x_2876); +lean_ctor_set(x_2891, 10, x_2877); +lean_ctor_set(x_2891, 11, x_2881); +lean_ctor_set(x_2891, 12, x_2883); +lean_ctor_set(x_2891, 13, x_2885); +lean_ctor_set(x_2891, 14, x_2886); +lean_ctor_set(x_2891, 15, x_2887); +lean_ctor_set(x_2891, 16, x_2888); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17, x_2868); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 1, x_2869); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 2, x_2870); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 3, x_2871); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 4, x_2872); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 5, x_2873); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 6, x_2874); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 7, x_2875); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 8, x_2890); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 9, x_2878); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 10, x_2879); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 11, x_2880); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 12, x_2882); +lean_ctor_set_uint8(x_2891, sizeof(void*)*17 + 13, x_2884); +x_2892 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2892, 0, x_2889); +lean_ctor_set(x_2892, 1, x_2); +x_2893 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2893, 0, x_2892); +lean_ctor_set(x_2893, 1, x_2891); +x_2894 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2894, 0, x_2893); +x_2895 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2895, 0, x_2894); +lean_ctor_set(x_2895, 1, x_4); +return x_2895; +} +} +} +else +{ +uint8_t x_2896; +lean_dec_ref(x_1); +x_2896 = !lean_is_exclusive(x_3); +if (x_2896 == 0) +{ +lean_object* x_2897; lean_object* x_2898; lean_object* x_2899; lean_object* x_2900; lean_object* x_2901; +x_2897 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 11, x_30); +x_2898 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2898, 0, x_2897); +lean_ctor_set(x_2898, 1, x_2); +x_2899 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2899, 0, x_2898); +lean_ctor_set(x_2899, 1, x_3); +x_2900 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2900, 0, x_2899); +x_2901 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2901, 0, x_2900); +lean_ctor_set(x_2901, 1, x_4); +return x_2901; +} +else +{ +lean_object* x_2902; lean_object* x_2903; lean_object* x_2904; lean_object* x_2905; lean_object* x_2906; lean_object* x_2907; lean_object* x_2908; lean_object* x_2909; lean_object* x_2910; uint8_t x_2911; uint8_t x_2912; uint8_t x_2913; uint8_t x_2914; uint8_t x_2915; uint8_t x_2916; uint8_t x_2917; uint8_t x_2918; lean_object* x_2919; uint8_t x_2920; lean_object* x_2921; uint8_t x_2922; uint8_t x_2923; lean_object* x_2924; uint8_t x_2925; lean_object* x_2926; uint8_t x_2927; lean_object* x_2928; lean_object* x_2929; lean_object* x_2930; lean_object* x_2931; lean_object* x_2932; lean_object* x_2933; lean_object* x_2934; lean_object* x_2935; lean_object* x_2936; lean_object* x_2937; +x_2902 = lean_ctor_get(x_3, 0); +x_2903 = lean_ctor_get(x_3, 1); +x_2904 = lean_ctor_get(x_3, 2); +x_2905 = lean_ctor_get(x_3, 3); +x_2906 = lean_ctor_get(x_3, 4); +x_2907 = lean_ctor_get(x_3, 5); +x_2908 = lean_ctor_get(x_3, 6); +x_2909 = lean_ctor_get(x_3, 7); +x_2910 = lean_ctor_get(x_3, 8); +x_2911 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2912 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_2913 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_2914 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_2915 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_2916 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_2917 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_2918 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_2919 = lean_ctor_get(x_3, 9); +x_2920 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_2921 = lean_ctor_get(x_3, 10); +x_2922 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_2923 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_2924 = lean_ctor_get(x_3, 11); +x_2925 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_2926 = lean_ctor_get(x_3, 12); +x_2927 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_2928 = lean_ctor_get(x_3, 13); +x_2929 = lean_ctor_get(x_3, 14); +x_2930 = lean_ctor_get(x_3, 15); +x_2931 = lean_ctor_get(x_3, 16); +lean_inc(x_2931); +lean_inc(x_2930); +lean_inc(x_2929); +lean_inc(x_2928); +lean_inc(x_2926); +lean_inc(x_2924); +lean_inc(x_2921); +lean_inc(x_2919); +lean_inc(x_2910); +lean_inc(x_2909); +lean_inc(x_2908); +lean_inc(x_2907); +lean_inc(x_2906); +lean_inc(x_2905); +lean_inc(x_2904); +lean_inc(x_2903); +lean_inc(x_2902); +lean_dec(x_3); +x_2932 = lean_box(0); +x_2933 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2933, 0, x_2902); +lean_ctor_set(x_2933, 1, x_2903); +lean_ctor_set(x_2933, 2, x_2904); +lean_ctor_set(x_2933, 3, x_2905); +lean_ctor_set(x_2933, 4, x_2906); +lean_ctor_set(x_2933, 5, x_2907); +lean_ctor_set(x_2933, 6, x_2908); +lean_ctor_set(x_2933, 7, x_2909); +lean_ctor_set(x_2933, 8, x_2910); +lean_ctor_set(x_2933, 9, x_2919); +lean_ctor_set(x_2933, 10, x_2921); +lean_ctor_set(x_2933, 11, x_2924); +lean_ctor_set(x_2933, 12, x_2926); +lean_ctor_set(x_2933, 13, x_2928); +lean_ctor_set(x_2933, 14, x_2929); +lean_ctor_set(x_2933, 15, x_2930); +lean_ctor_set(x_2933, 16, x_2931); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17, x_2911); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 1, x_2912); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 2, x_2913); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 3, x_2914); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 4, x_2915); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 5, x_2916); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 6, x_2917); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 7, x_2918); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 8, x_2920); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 9, x_2922); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 10, x_2923); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 11, x_30); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 12, x_2925); +lean_ctor_set_uint8(x_2933, sizeof(void*)*17 + 13, x_2927); +x_2934 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2934, 0, x_2932); +lean_ctor_set(x_2934, 1, x_2); +x_2935 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2935, 0, x_2934); +lean_ctor_set(x_2935, 1, x_2933); +x_2936 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2936, 0, x_2935); +x_2937 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2937, 0, x_2936); +lean_ctor_set(x_2937, 1, x_4); +return x_2937; +} +} +} +else +{ +uint8_t x_2938; +lean_dec_ref(x_1); +x_2938 = !lean_is_exclusive(x_3); +if (x_2938 == 0) +{ +lean_object* x_2939; lean_object* x_2940; lean_object* x_2941; lean_object* x_2942; lean_object* x_2943; +x_2939 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 6, x_26); +x_2940 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2940, 0, x_2939); +lean_ctor_set(x_2940, 1, x_2); +x_2941 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2941, 0, x_2940); +lean_ctor_set(x_2941, 1, x_3); +x_2942 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2942, 0, x_2941); +x_2943 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2943, 0, x_2942); +lean_ctor_set(x_2943, 1, x_4); +return x_2943; +} +else +{ +lean_object* x_2944; lean_object* x_2945; lean_object* x_2946; lean_object* x_2947; lean_object* x_2948; lean_object* x_2949; lean_object* x_2950; lean_object* x_2951; lean_object* x_2952; uint8_t x_2953; uint8_t x_2954; uint8_t x_2955; uint8_t x_2956; uint8_t x_2957; uint8_t x_2958; uint8_t x_2959; lean_object* x_2960; uint8_t x_2961; lean_object* x_2962; uint8_t x_2963; uint8_t x_2964; uint8_t x_2965; lean_object* x_2966; uint8_t x_2967; lean_object* x_2968; uint8_t x_2969; lean_object* x_2970; lean_object* x_2971; lean_object* x_2972; lean_object* x_2973; lean_object* x_2974; lean_object* x_2975; lean_object* x_2976; lean_object* x_2977; lean_object* x_2978; lean_object* x_2979; +x_2944 = lean_ctor_get(x_3, 0); +x_2945 = lean_ctor_get(x_3, 1); +x_2946 = lean_ctor_get(x_3, 2); +x_2947 = lean_ctor_get(x_3, 3); +x_2948 = lean_ctor_get(x_3, 4); +x_2949 = lean_ctor_get(x_3, 5); +x_2950 = lean_ctor_get(x_3, 6); +x_2951 = lean_ctor_get(x_3, 7); +x_2952 = lean_ctor_get(x_3, 8); +x_2953 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2954 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_2955 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_2956 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_2957 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_2958 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_2959 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_2960 = lean_ctor_get(x_3, 9); +x_2961 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_2962 = lean_ctor_get(x_3, 10); +x_2963 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_2964 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_2965 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_2966 = lean_ctor_get(x_3, 11); +x_2967 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_2968 = lean_ctor_get(x_3, 12); +x_2969 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_2970 = lean_ctor_get(x_3, 13); +x_2971 = lean_ctor_get(x_3, 14); +x_2972 = lean_ctor_get(x_3, 15); +x_2973 = lean_ctor_get(x_3, 16); +lean_inc(x_2973); +lean_inc(x_2972); +lean_inc(x_2971); +lean_inc(x_2970); +lean_inc(x_2968); +lean_inc(x_2966); +lean_inc(x_2962); +lean_inc(x_2960); +lean_inc(x_2952); +lean_inc(x_2951); +lean_inc(x_2950); +lean_inc(x_2949); +lean_inc(x_2948); +lean_inc(x_2947); +lean_inc(x_2946); +lean_inc(x_2945); +lean_inc(x_2944); +lean_dec(x_3); +x_2974 = lean_box(0); +x_2975 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_2975, 0, x_2944); +lean_ctor_set(x_2975, 1, x_2945); +lean_ctor_set(x_2975, 2, x_2946); +lean_ctor_set(x_2975, 3, x_2947); +lean_ctor_set(x_2975, 4, x_2948); +lean_ctor_set(x_2975, 5, x_2949); +lean_ctor_set(x_2975, 6, x_2950); +lean_ctor_set(x_2975, 7, x_2951); +lean_ctor_set(x_2975, 8, x_2952); +lean_ctor_set(x_2975, 9, x_2960); +lean_ctor_set(x_2975, 10, x_2962); +lean_ctor_set(x_2975, 11, x_2966); +lean_ctor_set(x_2975, 12, x_2968); +lean_ctor_set(x_2975, 13, x_2970); +lean_ctor_set(x_2975, 14, x_2971); +lean_ctor_set(x_2975, 15, x_2972); +lean_ctor_set(x_2975, 16, x_2973); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17, x_2953); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 1, x_2954); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 2, x_2955); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 3, x_2956); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 4, x_2957); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 5, x_2958); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 6, x_26); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 7, x_2959); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 8, x_2961); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 9, x_2963); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 10, x_2964); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 11, x_2965); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 12, x_2967); +lean_ctor_set_uint8(x_2975, sizeof(void*)*17 + 13, x_2969); +x_2976 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2976, 0, x_2974); +lean_ctor_set(x_2976, 1, x_2); +x_2977 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2977, 0, x_2976); +lean_ctor_set(x_2977, 1, x_2975); +x_2978 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2978, 0, x_2977); +x_2979 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2979, 0, x_2978); +lean_ctor_set(x_2979, 1, x_4); +return x_2979; +} +} +} +else +{ +uint8_t x_2980; +lean_dec_ref(x_1); +x_2980 = !lean_is_exclusive(x_3); +if (x_2980 == 0) +{ +lean_object* x_2981; lean_object* x_2982; lean_object* x_2983; lean_object* x_2984; lean_object* x_2985; lean_object* x_2986; lean_object* x_2987; lean_object* x_2988; +x_2981 = lean_ctor_get(x_3, 9); +lean_dec(x_2981); +x_2982 = lean_box(0); +x_2983 = lean_box(x_24); +x_2984 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2984, 0, x_2983); +lean_ctor_set(x_3, 9, x_2984); +x_2985 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2985, 0, x_2982); +lean_ctor_set(x_2985, 1, x_2); +x_2986 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2986, 0, x_2985); +lean_ctor_set(x_2986, 1, x_3); +x_2987 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2987, 0, x_2986); +x_2988 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2988, 0, x_2987); +lean_ctor_set(x_2988, 1, x_4); +return x_2988; +} +else +{ +lean_object* x_2989; lean_object* x_2990; lean_object* x_2991; lean_object* x_2992; lean_object* x_2993; lean_object* x_2994; lean_object* x_2995; lean_object* x_2996; lean_object* x_2997; uint8_t x_2998; uint8_t x_2999; uint8_t x_3000; uint8_t x_3001; uint8_t x_3002; uint8_t x_3003; uint8_t x_3004; uint8_t x_3005; uint8_t x_3006; lean_object* x_3007; uint8_t x_3008; uint8_t x_3009; uint8_t x_3010; lean_object* x_3011; uint8_t x_3012; lean_object* x_3013; uint8_t x_3014; lean_object* x_3015; lean_object* x_3016; lean_object* x_3017; lean_object* x_3018; lean_object* x_3019; lean_object* x_3020; lean_object* x_3021; lean_object* x_3022; lean_object* x_3023; lean_object* x_3024; lean_object* x_3025; lean_object* x_3026; +x_2989 = lean_ctor_get(x_3, 0); +x_2990 = lean_ctor_get(x_3, 1); +x_2991 = lean_ctor_get(x_3, 2); +x_2992 = lean_ctor_get(x_3, 3); +x_2993 = lean_ctor_get(x_3, 4); +x_2994 = lean_ctor_get(x_3, 5); +x_2995 = lean_ctor_get(x_3, 6); +x_2996 = lean_ctor_get(x_3, 7); +x_2997 = lean_ctor_get(x_3, 8); +x_2998 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_2999 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3000 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3001 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3002 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3003 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3004 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3005 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3006 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3007 = lean_ctor_get(x_3, 10); +x_3008 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3009 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3010 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3011 = lean_ctor_get(x_3, 11); +x_3012 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3013 = lean_ctor_get(x_3, 12); +x_3014 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3015 = lean_ctor_get(x_3, 13); +x_3016 = lean_ctor_get(x_3, 14); +x_3017 = lean_ctor_get(x_3, 15); +x_3018 = lean_ctor_get(x_3, 16); +lean_inc(x_3018); +lean_inc(x_3017); +lean_inc(x_3016); +lean_inc(x_3015); +lean_inc(x_3013); +lean_inc(x_3011); +lean_inc(x_3007); +lean_inc(x_2997); +lean_inc(x_2996); +lean_inc(x_2995); +lean_inc(x_2994); +lean_inc(x_2993); +lean_inc(x_2992); +lean_inc(x_2991); +lean_inc(x_2990); +lean_inc(x_2989); +lean_dec(x_3); +x_3019 = lean_box(0); +x_3020 = lean_box(x_24); +x_3021 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3021, 0, x_3020); +x_3022 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3022, 0, x_2989); +lean_ctor_set(x_3022, 1, x_2990); +lean_ctor_set(x_3022, 2, x_2991); +lean_ctor_set(x_3022, 3, x_2992); +lean_ctor_set(x_3022, 4, x_2993); +lean_ctor_set(x_3022, 5, x_2994); +lean_ctor_set(x_3022, 6, x_2995); +lean_ctor_set(x_3022, 7, x_2996); +lean_ctor_set(x_3022, 8, x_2997); +lean_ctor_set(x_3022, 9, x_3021); +lean_ctor_set(x_3022, 10, x_3007); +lean_ctor_set(x_3022, 11, x_3011); +lean_ctor_set(x_3022, 12, x_3013); +lean_ctor_set(x_3022, 13, x_3015); +lean_ctor_set(x_3022, 14, x_3016); +lean_ctor_set(x_3022, 15, x_3017); +lean_ctor_set(x_3022, 16, x_3018); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17, x_2998); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 1, x_2999); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 2, x_3000); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 3, x_3001); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 4, x_3002); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 5, x_3003); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 6, x_3004); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 7, x_3005); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 8, x_3006); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 9, x_3008); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 10, x_3009); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 11, x_3010); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 12, x_3012); +lean_ctor_set_uint8(x_3022, sizeof(void*)*17 + 13, x_3014); +x_3023 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3023, 0, x_3019); +lean_ctor_set(x_3023, 1, x_2); +x_3024 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3024, 0, x_3023); +lean_ctor_set(x_3024, 1, x_3022); +x_3025 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3025, 0, x_3024); +x_3026 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3026, 0, x_3025); +lean_ctor_set(x_3026, 1, x_4); +return x_3026; +} +} +} +else +{ +uint8_t x_3027; +lean_dec_ref(x_1); +x_3027 = !lean_is_exclusive(x_3); +if (x_3027 == 0) +{ +lean_object* x_3028; lean_object* x_3029; lean_object* x_3030; lean_object* x_3031; lean_object* x_3032; lean_object* x_3033; lean_object* x_3034; lean_object* x_3035; +x_3028 = lean_ctor_get(x_3, 9); +lean_dec(x_3028); +x_3029 = lean_box(0); +x_3030 = lean_box(x_24); +x_3031 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3031, 0, x_3030); +lean_ctor_set(x_3, 9, x_3031); +x_3032 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3032, 0, x_3029); +lean_ctor_set(x_3032, 1, x_2); +x_3033 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3033, 0, x_3032); +lean_ctor_set(x_3033, 1, x_3); +x_3034 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3034, 0, x_3033); +x_3035 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3035, 0, x_3034); +lean_ctor_set(x_3035, 1, x_4); +return x_3035; +} +else +{ +lean_object* x_3036; lean_object* x_3037; lean_object* x_3038; lean_object* x_3039; lean_object* x_3040; lean_object* x_3041; lean_object* x_3042; lean_object* x_3043; lean_object* x_3044; uint8_t x_3045; uint8_t x_3046; uint8_t x_3047; uint8_t x_3048; uint8_t x_3049; uint8_t x_3050; uint8_t x_3051; uint8_t x_3052; uint8_t x_3053; lean_object* x_3054; uint8_t x_3055; uint8_t x_3056; uint8_t x_3057; lean_object* x_3058; uint8_t x_3059; lean_object* x_3060; uint8_t x_3061; lean_object* x_3062; lean_object* x_3063; lean_object* x_3064; lean_object* x_3065; lean_object* x_3066; lean_object* x_3067; lean_object* x_3068; lean_object* x_3069; lean_object* x_3070; lean_object* x_3071; lean_object* x_3072; lean_object* x_3073; +x_3036 = lean_ctor_get(x_3, 0); +x_3037 = lean_ctor_get(x_3, 1); +x_3038 = lean_ctor_get(x_3, 2); +x_3039 = lean_ctor_get(x_3, 3); +x_3040 = lean_ctor_get(x_3, 4); +x_3041 = lean_ctor_get(x_3, 5); +x_3042 = lean_ctor_get(x_3, 6); +x_3043 = lean_ctor_get(x_3, 7); +x_3044 = lean_ctor_get(x_3, 8); +x_3045 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3046 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3047 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3048 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3049 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3050 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3051 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3052 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3053 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3054 = lean_ctor_get(x_3, 10); +x_3055 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3056 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3057 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3058 = lean_ctor_get(x_3, 11); +x_3059 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3060 = lean_ctor_get(x_3, 12); +x_3061 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3062 = lean_ctor_get(x_3, 13); +x_3063 = lean_ctor_get(x_3, 14); +x_3064 = lean_ctor_get(x_3, 15); +x_3065 = lean_ctor_get(x_3, 16); +lean_inc(x_3065); +lean_inc(x_3064); +lean_inc(x_3063); +lean_inc(x_3062); +lean_inc(x_3060); +lean_inc(x_3058); +lean_inc(x_3054); +lean_inc(x_3044); +lean_inc(x_3043); +lean_inc(x_3042); +lean_inc(x_3041); +lean_inc(x_3040); +lean_inc(x_3039); +lean_inc(x_3038); +lean_inc(x_3037); +lean_inc(x_3036); +lean_dec(x_3); +x_3066 = lean_box(0); +x_3067 = lean_box(x_24); +x_3068 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3068, 0, x_3067); +x_3069 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3069, 0, x_3036); +lean_ctor_set(x_3069, 1, x_3037); +lean_ctor_set(x_3069, 2, x_3038); +lean_ctor_set(x_3069, 3, x_3039); +lean_ctor_set(x_3069, 4, x_3040); +lean_ctor_set(x_3069, 5, x_3041); +lean_ctor_set(x_3069, 6, x_3042); +lean_ctor_set(x_3069, 7, x_3043); +lean_ctor_set(x_3069, 8, x_3044); +lean_ctor_set(x_3069, 9, x_3068); +lean_ctor_set(x_3069, 10, x_3054); +lean_ctor_set(x_3069, 11, x_3058); +lean_ctor_set(x_3069, 12, x_3060); +lean_ctor_set(x_3069, 13, x_3062); +lean_ctor_set(x_3069, 14, x_3063); +lean_ctor_set(x_3069, 15, x_3064); +lean_ctor_set(x_3069, 16, x_3065); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17, x_3045); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 1, x_3046); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 2, x_3047); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 3, x_3048); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 4, x_3049); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 5, x_3050); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 6, x_3051); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 7, x_3052); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 8, x_3053); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 9, x_3055); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 10, x_3056); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 11, x_3057); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 12, x_3059); +lean_ctor_set_uint8(x_3069, sizeof(void*)*17 + 13, x_3061); +x_3070 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3070, 0, x_3066); +lean_ctor_set(x_3070, 1, x_2); +x_3071 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3071, 0, x_3070); +lean_ctor_set(x_3071, 1, x_3069); +x_3072 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3072, 0, x_3071); +x_3073 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3073, 0, x_3072); +lean_ctor_set(x_3073, 1, x_4); +return x_3073; +} +} +} +else +{ +uint8_t x_3074; +lean_dec_ref(x_1); +x_3074 = !lean_is_exclusive(x_3); +if (x_3074 == 0) +{ +lean_object* x_3075; lean_object* x_3076; lean_object* x_3077; lean_object* x_3078; lean_object* x_3079; +x_3075 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 7, x_22); +x_3076 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3076, 0, x_3075); +lean_ctor_set(x_3076, 1, x_2); +x_3077 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3077, 0, x_3076); +lean_ctor_set(x_3077, 1, x_3); +x_3078 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3078, 0, x_3077); +x_3079 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3079, 0, x_3078); +lean_ctor_set(x_3079, 1, x_4); +return x_3079; +} +else +{ +lean_object* x_3080; lean_object* x_3081; lean_object* x_3082; lean_object* x_3083; lean_object* x_3084; lean_object* x_3085; lean_object* x_3086; lean_object* x_3087; lean_object* x_3088; uint8_t x_3089; uint8_t x_3090; uint8_t x_3091; uint8_t x_3092; uint8_t x_3093; uint8_t x_3094; uint8_t x_3095; lean_object* x_3096; uint8_t x_3097; lean_object* x_3098; uint8_t x_3099; uint8_t x_3100; uint8_t x_3101; lean_object* x_3102; uint8_t x_3103; lean_object* x_3104; uint8_t x_3105; lean_object* x_3106; lean_object* x_3107; lean_object* x_3108; lean_object* x_3109; lean_object* x_3110; lean_object* x_3111; lean_object* x_3112; lean_object* x_3113; lean_object* x_3114; lean_object* x_3115; +x_3080 = lean_ctor_get(x_3, 0); +x_3081 = lean_ctor_get(x_3, 1); +x_3082 = lean_ctor_get(x_3, 2); +x_3083 = lean_ctor_get(x_3, 3); +x_3084 = lean_ctor_get(x_3, 4); +x_3085 = lean_ctor_get(x_3, 5); +x_3086 = lean_ctor_get(x_3, 6); +x_3087 = lean_ctor_get(x_3, 7); +x_3088 = lean_ctor_get(x_3, 8); +x_3089 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3090 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3091 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3092 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3093 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3094 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3095 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3096 = lean_ctor_get(x_3, 9); +x_3097 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3098 = lean_ctor_get(x_3, 10); +x_3099 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3100 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3101 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3102 = lean_ctor_get(x_3, 11); +x_3103 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3104 = lean_ctor_get(x_3, 12); +x_3105 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3106 = lean_ctor_get(x_3, 13); +x_3107 = lean_ctor_get(x_3, 14); +x_3108 = lean_ctor_get(x_3, 15); +x_3109 = lean_ctor_get(x_3, 16); +lean_inc(x_3109); +lean_inc(x_3108); +lean_inc(x_3107); +lean_inc(x_3106); +lean_inc(x_3104); +lean_inc(x_3102); +lean_inc(x_3098); +lean_inc(x_3096); +lean_inc(x_3088); +lean_inc(x_3087); +lean_inc(x_3086); +lean_inc(x_3085); +lean_inc(x_3084); +lean_inc(x_3083); +lean_inc(x_3082); +lean_inc(x_3081); +lean_inc(x_3080); +lean_dec(x_3); +x_3110 = lean_box(0); +x_3111 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3111, 0, x_3080); +lean_ctor_set(x_3111, 1, x_3081); +lean_ctor_set(x_3111, 2, x_3082); +lean_ctor_set(x_3111, 3, x_3083); +lean_ctor_set(x_3111, 4, x_3084); +lean_ctor_set(x_3111, 5, x_3085); +lean_ctor_set(x_3111, 6, x_3086); +lean_ctor_set(x_3111, 7, x_3087); +lean_ctor_set(x_3111, 8, x_3088); +lean_ctor_set(x_3111, 9, x_3096); +lean_ctor_set(x_3111, 10, x_3098); +lean_ctor_set(x_3111, 11, x_3102); +lean_ctor_set(x_3111, 12, x_3104); +lean_ctor_set(x_3111, 13, x_3106); +lean_ctor_set(x_3111, 14, x_3107); +lean_ctor_set(x_3111, 15, x_3108); +lean_ctor_set(x_3111, 16, x_3109); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17, x_3089); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 1, x_3090); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 2, x_3091); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 3, x_3092); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 4, x_3093); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 5, x_3094); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 6, x_3095); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 7, x_22); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 8, x_3097); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 9, x_3099); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 10, x_3100); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 11, x_3101); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 12, x_3103); +lean_ctor_set_uint8(x_3111, sizeof(void*)*17 + 13, x_3105); +x_3112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3112, 0, x_3110); +lean_ctor_set(x_3112, 1, x_2); +x_3113 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3113, 0, x_3112); +lean_ctor_set(x_3113, 1, x_3111); +x_3114 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3114, 0, x_3113); +x_3115 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3115, 0, x_3114); +lean_ctor_set(x_3115, 1, x_4); +return x_3115; +} +} +} +else +{ +uint8_t x_3116; +lean_dec_ref(x_1); +x_3116 = !lean_is_exclusive(x_3); +if (x_3116 == 0) +{ +lean_object* x_3117; uint8_t x_3118; lean_object* x_3119; lean_object* x_3120; lean_object* x_3121; lean_object* x_3122; +x_3117 = lean_box(0); +x_3118 = 1; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 10, x_3118); +x_3119 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3119, 0, x_3117); +lean_ctor_set(x_3119, 1, x_2); +x_3120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3120, 0, x_3119); +lean_ctor_set(x_3120, 1, x_3); +x_3121 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3121, 0, x_3120); +x_3122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3122, 0, x_3121); +lean_ctor_set(x_3122, 1, x_4); +return x_3122; +} +else +{ +lean_object* x_3123; lean_object* x_3124; lean_object* x_3125; lean_object* x_3126; lean_object* x_3127; lean_object* x_3128; lean_object* x_3129; lean_object* x_3130; lean_object* x_3131; uint8_t x_3132; uint8_t x_3133; uint8_t x_3134; uint8_t x_3135; uint8_t x_3136; uint8_t x_3137; uint8_t x_3138; uint8_t x_3139; lean_object* x_3140; uint8_t x_3141; lean_object* x_3142; uint8_t x_3143; uint8_t x_3144; lean_object* x_3145; uint8_t x_3146; lean_object* x_3147; uint8_t x_3148; lean_object* x_3149; lean_object* x_3150; lean_object* x_3151; lean_object* x_3152; lean_object* x_3153; uint8_t x_3154; lean_object* x_3155; lean_object* x_3156; lean_object* x_3157; lean_object* x_3158; lean_object* x_3159; +x_3123 = lean_ctor_get(x_3, 0); +x_3124 = lean_ctor_get(x_3, 1); +x_3125 = lean_ctor_get(x_3, 2); +x_3126 = lean_ctor_get(x_3, 3); +x_3127 = lean_ctor_get(x_3, 4); +x_3128 = lean_ctor_get(x_3, 5); +x_3129 = lean_ctor_get(x_3, 6); +x_3130 = lean_ctor_get(x_3, 7); +x_3131 = lean_ctor_get(x_3, 8); +x_3132 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3133 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3134 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3135 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3136 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3137 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3138 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3139 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3140 = lean_ctor_get(x_3, 9); +x_3141 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3142 = lean_ctor_get(x_3, 10); +x_3143 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3144 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3145 = lean_ctor_get(x_3, 11); +x_3146 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3147 = lean_ctor_get(x_3, 12); +x_3148 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3149 = lean_ctor_get(x_3, 13); +x_3150 = lean_ctor_get(x_3, 14); +x_3151 = lean_ctor_get(x_3, 15); +x_3152 = lean_ctor_get(x_3, 16); +lean_inc(x_3152); +lean_inc(x_3151); +lean_inc(x_3150); +lean_inc(x_3149); +lean_inc(x_3147); +lean_inc(x_3145); +lean_inc(x_3142); +lean_inc(x_3140); +lean_inc(x_3131); +lean_inc(x_3130); +lean_inc(x_3129); +lean_inc(x_3128); +lean_inc(x_3127); +lean_inc(x_3126); +lean_inc(x_3125); +lean_inc(x_3124); +lean_inc(x_3123); +lean_dec(x_3); +x_3153 = lean_box(0); +x_3154 = 1; +x_3155 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3155, 0, x_3123); +lean_ctor_set(x_3155, 1, x_3124); +lean_ctor_set(x_3155, 2, x_3125); +lean_ctor_set(x_3155, 3, x_3126); +lean_ctor_set(x_3155, 4, x_3127); +lean_ctor_set(x_3155, 5, x_3128); +lean_ctor_set(x_3155, 6, x_3129); +lean_ctor_set(x_3155, 7, x_3130); +lean_ctor_set(x_3155, 8, x_3131); +lean_ctor_set(x_3155, 9, x_3140); +lean_ctor_set(x_3155, 10, x_3142); +lean_ctor_set(x_3155, 11, x_3145); +lean_ctor_set(x_3155, 12, x_3147); +lean_ctor_set(x_3155, 13, x_3149); +lean_ctor_set(x_3155, 14, x_3150); +lean_ctor_set(x_3155, 15, x_3151); +lean_ctor_set(x_3155, 16, x_3152); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17, x_3132); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 1, x_3133); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 2, x_3134); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 3, x_3135); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 4, x_3136); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 5, x_3137); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 6, x_3138); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 7, x_3139); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 8, x_3141); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 9, x_3143); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 10, x_3154); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 11, x_3144); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 12, x_3146); +lean_ctor_set_uint8(x_3155, sizeof(void*)*17 + 13, x_3148); +x_3156 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3156, 0, x_3153); +lean_ctor_set(x_3156, 1, x_2); +x_3157 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3157, 0, x_3156); +lean_ctor_set(x_3157, 1, x_3155); +x_3158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3158, 0, x_3157); +x_3159 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3159, 0, x_3158); +lean_ctor_set(x_3159, 1, x_4); +return x_3159; +} +} +} +else +{ +uint8_t x_3160; +lean_dec_ref(x_1); +x_3160 = !lean_is_exclusive(x_3); +if (x_3160 == 0) +{ +lean_object* x_3161; uint8_t x_3162; lean_object* x_3163; lean_object* x_3164; lean_object* x_3165; lean_object* x_3166; +x_3161 = lean_box(0); +x_3162 = 0; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 10, x_3162); +x_3163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3163, 0, x_3161); +lean_ctor_set(x_3163, 1, x_2); +x_3164 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3164, 0, x_3163); +lean_ctor_set(x_3164, 1, x_3); +x_3165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3165, 0, x_3164); +x_3166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3166, 0, x_3165); +lean_ctor_set(x_3166, 1, x_4); +return x_3166; +} +else +{ +lean_object* x_3167; lean_object* x_3168; lean_object* x_3169; lean_object* x_3170; lean_object* x_3171; lean_object* x_3172; lean_object* x_3173; lean_object* x_3174; lean_object* x_3175; uint8_t x_3176; uint8_t x_3177; uint8_t x_3178; uint8_t x_3179; uint8_t x_3180; uint8_t x_3181; uint8_t x_3182; uint8_t x_3183; lean_object* x_3184; uint8_t x_3185; lean_object* x_3186; uint8_t x_3187; uint8_t x_3188; lean_object* x_3189; uint8_t x_3190; lean_object* x_3191; uint8_t x_3192; lean_object* x_3193; lean_object* x_3194; lean_object* x_3195; lean_object* x_3196; lean_object* x_3197; uint8_t x_3198; lean_object* x_3199; lean_object* x_3200; lean_object* x_3201; lean_object* x_3202; lean_object* x_3203; +x_3167 = lean_ctor_get(x_3, 0); +x_3168 = lean_ctor_get(x_3, 1); +x_3169 = lean_ctor_get(x_3, 2); +x_3170 = lean_ctor_get(x_3, 3); +x_3171 = lean_ctor_get(x_3, 4); +x_3172 = lean_ctor_get(x_3, 5); +x_3173 = lean_ctor_get(x_3, 6); +x_3174 = lean_ctor_get(x_3, 7); +x_3175 = lean_ctor_get(x_3, 8); +x_3176 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3177 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3178 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3179 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3180 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3181 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3182 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3183 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3184 = lean_ctor_get(x_3, 9); +x_3185 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3186 = lean_ctor_get(x_3, 10); +x_3187 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3188 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3189 = lean_ctor_get(x_3, 11); +x_3190 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3191 = lean_ctor_get(x_3, 12); +x_3192 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3193 = lean_ctor_get(x_3, 13); +x_3194 = lean_ctor_get(x_3, 14); +x_3195 = lean_ctor_get(x_3, 15); +x_3196 = lean_ctor_get(x_3, 16); +lean_inc(x_3196); +lean_inc(x_3195); +lean_inc(x_3194); +lean_inc(x_3193); +lean_inc(x_3191); +lean_inc(x_3189); +lean_inc(x_3186); +lean_inc(x_3184); +lean_inc(x_3175); +lean_inc(x_3174); +lean_inc(x_3173); +lean_inc(x_3172); +lean_inc(x_3171); +lean_inc(x_3170); +lean_inc(x_3169); +lean_inc(x_3168); +lean_inc(x_3167); +lean_dec(x_3); +x_3197 = lean_box(0); +x_3198 = 0; +x_3199 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3199, 0, x_3167); +lean_ctor_set(x_3199, 1, x_3168); +lean_ctor_set(x_3199, 2, x_3169); +lean_ctor_set(x_3199, 3, x_3170); +lean_ctor_set(x_3199, 4, x_3171); +lean_ctor_set(x_3199, 5, x_3172); +lean_ctor_set(x_3199, 6, x_3173); +lean_ctor_set(x_3199, 7, x_3174); +lean_ctor_set(x_3199, 8, x_3175); +lean_ctor_set(x_3199, 9, x_3184); +lean_ctor_set(x_3199, 10, x_3186); +lean_ctor_set(x_3199, 11, x_3189); +lean_ctor_set(x_3199, 12, x_3191); +lean_ctor_set(x_3199, 13, x_3193); +lean_ctor_set(x_3199, 14, x_3194); +lean_ctor_set(x_3199, 15, x_3195); +lean_ctor_set(x_3199, 16, x_3196); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17, x_3176); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 1, x_3177); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 2, x_3178); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 3, x_3179); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 4, x_3180); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 5, x_3181); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 6, x_3182); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 7, x_3183); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 8, x_3185); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 9, x_3187); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 10, x_3198); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 11, x_3188); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 12, x_3190); +lean_ctor_set_uint8(x_3199, sizeof(void*)*17 + 13, x_3192); +x_3200 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3200, 0, x_3197); +lean_ctor_set(x_3200, 1, x_2); +x_3201 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3201, 0, x_3200); +lean_ctor_set(x_3201, 1, x_3199); +x_3202 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3202, 0, x_3201); +x_3203 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3203, 0, x_3202); +lean_ctor_set(x_3203, 1, x_4); +return x_3203; +} +} +} +else +{ +uint8_t x_3204; +lean_dec_ref(x_1); +x_3204 = !lean_is_exclusive(x_3); +if (x_3204 == 0) +{ +lean_object* x_3205; lean_object* x_3206; lean_object* x_3207; lean_object* x_3208; lean_object* x_3209; +x_3205 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 5, x_16); +x_3206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3206, 0, x_3205); +lean_ctor_set(x_3206, 1, x_2); +x_3207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3207, 0, x_3206); +lean_ctor_set(x_3207, 1, x_3); +x_3208 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3208, 0, x_3207); +x_3209 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3209, 0, x_3208); +lean_ctor_set(x_3209, 1, x_4); +return x_3209; +} +else +{ +lean_object* x_3210; lean_object* x_3211; lean_object* x_3212; lean_object* x_3213; lean_object* x_3214; lean_object* x_3215; lean_object* x_3216; lean_object* x_3217; lean_object* x_3218; uint8_t x_3219; uint8_t x_3220; uint8_t x_3221; uint8_t x_3222; uint8_t x_3223; uint8_t x_3224; uint8_t x_3225; lean_object* x_3226; uint8_t x_3227; lean_object* x_3228; uint8_t x_3229; uint8_t x_3230; uint8_t x_3231; lean_object* x_3232; uint8_t x_3233; lean_object* x_3234; uint8_t x_3235; lean_object* x_3236; lean_object* x_3237; lean_object* x_3238; lean_object* x_3239; lean_object* x_3240; lean_object* x_3241; lean_object* x_3242; lean_object* x_3243; lean_object* x_3244; lean_object* x_3245; +x_3210 = lean_ctor_get(x_3, 0); +x_3211 = lean_ctor_get(x_3, 1); +x_3212 = lean_ctor_get(x_3, 2); +x_3213 = lean_ctor_get(x_3, 3); +x_3214 = lean_ctor_get(x_3, 4); +x_3215 = lean_ctor_get(x_3, 5); +x_3216 = lean_ctor_get(x_3, 6); +x_3217 = lean_ctor_get(x_3, 7); +x_3218 = lean_ctor_get(x_3, 8); +x_3219 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3220 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3221 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3222 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3223 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3224 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3225 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3226 = lean_ctor_get(x_3, 9); +x_3227 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3228 = lean_ctor_get(x_3, 10); +x_3229 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3230 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3231 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3232 = lean_ctor_get(x_3, 11); +x_3233 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3234 = lean_ctor_get(x_3, 12); +x_3235 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3236 = lean_ctor_get(x_3, 13); +x_3237 = lean_ctor_get(x_3, 14); +x_3238 = lean_ctor_get(x_3, 15); +x_3239 = lean_ctor_get(x_3, 16); +lean_inc(x_3239); +lean_inc(x_3238); +lean_inc(x_3237); +lean_inc(x_3236); +lean_inc(x_3234); +lean_inc(x_3232); +lean_inc(x_3228); +lean_inc(x_3226); +lean_inc(x_3218); +lean_inc(x_3217); +lean_inc(x_3216); +lean_inc(x_3215); +lean_inc(x_3214); +lean_inc(x_3213); +lean_inc(x_3212); +lean_inc(x_3211); +lean_inc(x_3210); +lean_dec(x_3); +x_3240 = lean_box(0); +x_3241 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3241, 0, x_3210); +lean_ctor_set(x_3241, 1, x_3211); +lean_ctor_set(x_3241, 2, x_3212); +lean_ctor_set(x_3241, 3, x_3213); +lean_ctor_set(x_3241, 4, x_3214); +lean_ctor_set(x_3241, 5, x_3215); +lean_ctor_set(x_3241, 6, x_3216); +lean_ctor_set(x_3241, 7, x_3217); +lean_ctor_set(x_3241, 8, x_3218); +lean_ctor_set(x_3241, 9, x_3226); +lean_ctor_set(x_3241, 10, x_3228); +lean_ctor_set(x_3241, 11, x_3232); +lean_ctor_set(x_3241, 12, x_3234); +lean_ctor_set(x_3241, 13, x_3236); +lean_ctor_set(x_3241, 14, x_3237); +lean_ctor_set(x_3241, 15, x_3238); +lean_ctor_set(x_3241, 16, x_3239); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17, x_3219); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 1, x_3220); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 2, x_3221); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 3, x_3222); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 4, x_3223); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 5, x_16); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 6, x_3224); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 7, x_3225); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 8, x_3227); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 9, x_3229); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 10, x_3230); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 11, x_3231); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 12, x_3233); +lean_ctor_set_uint8(x_3241, sizeof(void*)*17 + 13, x_3235); +x_3242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3242, 0, x_3240); +lean_ctor_set(x_3242, 1, x_2); +x_3243 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3243, 0, x_3242); +lean_ctor_set(x_3243, 1, x_3241); +x_3244 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3244, 0, x_3243); +x_3245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3245, 0, x_3244); +lean_ctor_set(x_3245, 1, x_4); +return x_3245; +} +} +} +else +{ +uint8_t x_3246; +lean_dec_ref(x_1); +x_3246 = !lean_is_exclusive(x_3); +if (x_3246 == 0) +{ +lean_object* x_3247; lean_object* x_3248; lean_object* x_3249; lean_object* x_3250; lean_object* x_3251; +x_3247 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 4, x_14); +x_3248 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3248, 0, x_3247); +lean_ctor_set(x_3248, 1, x_2); +x_3249 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3249, 0, x_3248); +lean_ctor_set(x_3249, 1, x_3); +x_3250 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3250, 0, x_3249); +x_3251 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3251, 0, x_3250); +lean_ctor_set(x_3251, 1, x_4); +return x_3251; +} +else +{ +lean_object* x_3252; lean_object* x_3253; lean_object* x_3254; lean_object* x_3255; lean_object* x_3256; lean_object* x_3257; lean_object* x_3258; lean_object* x_3259; lean_object* x_3260; uint8_t x_3261; uint8_t x_3262; uint8_t x_3263; uint8_t x_3264; uint8_t x_3265; uint8_t x_3266; uint8_t x_3267; lean_object* x_3268; uint8_t x_3269; lean_object* x_3270; uint8_t x_3271; uint8_t x_3272; uint8_t x_3273; lean_object* x_3274; uint8_t x_3275; lean_object* x_3276; uint8_t x_3277; lean_object* x_3278; lean_object* x_3279; lean_object* x_3280; lean_object* x_3281; lean_object* x_3282; lean_object* x_3283; lean_object* x_3284; lean_object* x_3285; lean_object* x_3286; lean_object* x_3287; +x_3252 = lean_ctor_get(x_3, 0); +x_3253 = lean_ctor_get(x_3, 1); +x_3254 = lean_ctor_get(x_3, 2); +x_3255 = lean_ctor_get(x_3, 3); +x_3256 = lean_ctor_get(x_3, 4); +x_3257 = lean_ctor_get(x_3, 5); +x_3258 = lean_ctor_get(x_3, 6); +x_3259 = lean_ctor_get(x_3, 7); +x_3260 = lean_ctor_get(x_3, 8); +x_3261 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3262 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3263 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3264 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3265 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3266 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3267 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3268 = lean_ctor_get(x_3, 9); +x_3269 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3270 = lean_ctor_get(x_3, 10); +x_3271 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3272 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3273 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3274 = lean_ctor_get(x_3, 11); +x_3275 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3276 = lean_ctor_get(x_3, 12); +x_3277 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3278 = lean_ctor_get(x_3, 13); +x_3279 = lean_ctor_get(x_3, 14); +x_3280 = lean_ctor_get(x_3, 15); +x_3281 = lean_ctor_get(x_3, 16); +lean_inc(x_3281); +lean_inc(x_3280); +lean_inc(x_3279); +lean_inc(x_3278); +lean_inc(x_3276); +lean_inc(x_3274); +lean_inc(x_3270); +lean_inc(x_3268); +lean_inc(x_3260); +lean_inc(x_3259); +lean_inc(x_3258); +lean_inc(x_3257); +lean_inc(x_3256); +lean_inc(x_3255); +lean_inc(x_3254); +lean_inc(x_3253); +lean_inc(x_3252); +lean_dec(x_3); +x_3282 = lean_box(0); +x_3283 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3283, 0, x_3252); +lean_ctor_set(x_3283, 1, x_3253); +lean_ctor_set(x_3283, 2, x_3254); +lean_ctor_set(x_3283, 3, x_3255); +lean_ctor_set(x_3283, 4, x_3256); +lean_ctor_set(x_3283, 5, x_3257); +lean_ctor_set(x_3283, 6, x_3258); +lean_ctor_set(x_3283, 7, x_3259); +lean_ctor_set(x_3283, 8, x_3260); +lean_ctor_set(x_3283, 9, x_3268); +lean_ctor_set(x_3283, 10, x_3270); +lean_ctor_set(x_3283, 11, x_3274); +lean_ctor_set(x_3283, 12, x_3276); +lean_ctor_set(x_3283, 13, x_3278); +lean_ctor_set(x_3283, 14, x_3279); +lean_ctor_set(x_3283, 15, x_3280); +lean_ctor_set(x_3283, 16, x_3281); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17, x_3261); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 1, x_3262); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 2, x_3263); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 3, x_3264); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 4, x_14); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 5, x_3265); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 6, x_3266); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 7, x_3267); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 8, x_3269); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 9, x_3271); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 10, x_3272); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 11, x_3273); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 12, x_3275); +lean_ctor_set_uint8(x_3283, sizeof(void*)*17 + 13, x_3277); +x_3284 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3284, 0, x_3282); +lean_ctor_set(x_3284, 1, x_2); +x_3285 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3285, 0, x_3284); +lean_ctor_set(x_3285, 1, x_3283); +x_3286 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3286, 0, x_3285); +x_3287 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3287, 0, x_3286); +lean_ctor_set(x_3287, 1, x_4); +return x_3287; +} +} +} +else +{ +uint8_t x_3288; +lean_dec_ref(x_1); +x_3288 = !lean_is_exclusive(x_3); +if (x_3288 == 0) +{ +lean_object* x_3289; lean_object* x_3290; lean_object* x_3291; lean_object* x_3292; lean_object* x_3293; +x_3289 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 3, x_10); +x_3290 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3290, 0, x_3289); +lean_ctor_set(x_3290, 1, x_2); +x_3291 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3291, 0, x_3290); +lean_ctor_set(x_3291, 1, x_3); +x_3292 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3292, 0, x_3291); +x_3293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3293, 0, x_3292); +lean_ctor_set(x_3293, 1, x_4); +return x_3293; +} +else +{ +lean_object* x_3294; lean_object* x_3295; lean_object* x_3296; lean_object* x_3297; lean_object* x_3298; lean_object* x_3299; lean_object* x_3300; lean_object* x_3301; lean_object* x_3302; uint8_t x_3303; uint8_t x_3304; uint8_t x_3305; uint8_t x_3306; uint8_t x_3307; uint8_t x_3308; uint8_t x_3309; lean_object* x_3310; uint8_t x_3311; lean_object* x_3312; uint8_t x_3313; uint8_t x_3314; uint8_t x_3315; lean_object* x_3316; uint8_t x_3317; lean_object* x_3318; uint8_t x_3319; lean_object* x_3320; lean_object* x_3321; lean_object* x_3322; lean_object* x_3323; lean_object* x_3324; lean_object* x_3325; lean_object* x_3326; lean_object* x_3327; lean_object* x_3328; lean_object* x_3329; +x_3294 = lean_ctor_get(x_3, 0); +x_3295 = lean_ctor_get(x_3, 1); +x_3296 = lean_ctor_get(x_3, 2); +x_3297 = lean_ctor_get(x_3, 3); +x_3298 = lean_ctor_get(x_3, 4); +x_3299 = lean_ctor_get(x_3, 5); +x_3300 = lean_ctor_get(x_3, 6); +x_3301 = lean_ctor_get(x_3, 7); +x_3302 = lean_ctor_get(x_3, 8); +x_3303 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3304 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3305 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3306 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3307 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3308 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3309 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3310 = lean_ctor_get(x_3, 9); +x_3311 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3312 = lean_ctor_get(x_3, 10); +x_3313 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3314 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3315 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3316 = lean_ctor_get(x_3, 11); +x_3317 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3318 = lean_ctor_get(x_3, 12); +x_3319 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3320 = lean_ctor_get(x_3, 13); +x_3321 = lean_ctor_get(x_3, 14); +x_3322 = lean_ctor_get(x_3, 15); +x_3323 = lean_ctor_get(x_3, 16); +lean_inc(x_3323); +lean_inc(x_3322); +lean_inc(x_3321); +lean_inc(x_3320); +lean_inc(x_3318); +lean_inc(x_3316); +lean_inc(x_3312); +lean_inc(x_3310); +lean_inc(x_3302); +lean_inc(x_3301); +lean_inc(x_3300); +lean_inc(x_3299); +lean_inc(x_3298); +lean_inc(x_3297); +lean_inc(x_3296); +lean_inc(x_3295); +lean_inc(x_3294); +lean_dec(x_3); +x_3324 = lean_box(0); +x_3325 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3325, 0, x_3294); +lean_ctor_set(x_3325, 1, x_3295); +lean_ctor_set(x_3325, 2, x_3296); +lean_ctor_set(x_3325, 3, x_3297); +lean_ctor_set(x_3325, 4, x_3298); +lean_ctor_set(x_3325, 5, x_3299); +lean_ctor_set(x_3325, 6, x_3300); +lean_ctor_set(x_3325, 7, x_3301); +lean_ctor_set(x_3325, 8, x_3302); +lean_ctor_set(x_3325, 9, x_3310); +lean_ctor_set(x_3325, 10, x_3312); +lean_ctor_set(x_3325, 11, x_3316); +lean_ctor_set(x_3325, 12, x_3318); +lean_ctor_set(x_3325, 13, x_3320); +lean_ctor_set(x_3325, 14, x_3321); +lean_ctor_set(x_3325, 15, x_3322); +lean_ctor_set(x_3325, 16, x_3323); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17, x_3303); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 1, x_3304); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 2, x_3305); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 3, x_10); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 4, x_3306); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 5, x_3307); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 6, x_3308); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 7, x_3309); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 8, x_3311); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 9, x_3313); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 10, x_3314); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 11, x_3315); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 12, x_3317); +lean_ctor_set_uint8(x_3325, sizeof(void*)*17 + 13, x_3319); +x_3326 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3326, 0, x_3324); +lean_ctor_set(x_3326, 1, x_2); +x_3327 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3327, 0, x_3326); +lean_ctor_set(x_3327, 1, x_3325); +x_3328 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3328, 0, x_3327); +x_3329 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3329, 0, x_3328); +lean_ctor_set(x_3329, 1, x_4); +return x_3329; +} +} +} +else +{ +uint8_t x_3330; +lean_dec_ref(x_1); +x_3330 = !lean_is_exclusive(x_3); +if (x_3330 == 0) +{ +lean_object* x_3331; lean_object* x_3332; lean_object* x_3333; lean_object* x_3334; lean_object* x_3335; +x_3331 = lean_box(0); +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 2, x_10); +x_3332 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3332, 0, x_3331); +lean_ctor_set(x_3332, 1, x_2); +x_3333 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3333, 0, x_3332); +lean_ctor_set(x_3333, 1, x_3); +x_3334 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3334, 0, x_3333); +x_3335 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3335, 0, x_3334); +lean_ctor_set(x_3335, 1, x_4); +return x_3335; +} +else +{ +lean_object* x_3336; lean_object* x_3337; lean_object* x_3338; lean_object* x_3339; lean_object* x_3340; lean_object* x_3341; lean_object* x_3342; lean_object* x_3343; lean_object* x_3344; uint8_t x_3345; uint8_t x_3346; uint8_t x_3347; uint8_t x_3348; uint8_t x_3349; uint8_t x_3350; uint8_t x_3351; lean_object* x_3352; uint8_t x_3353; lean_object* x_3354; uint8_t x_3355; uint8_t x_3356; uint8_t x_3357; lean_object* x_3358; uint8_t x_3359; lean_object* x_3360; uint8_t x_3361; lean_object* x_3362; lean_object* x_3363; lean_object* x_3364; lean_object* x_3365; lean_object* x_3366; lean_object* x_3367; lean_object* x_3368; lean_object* x_3369; lean_object* x_3370; lean_object* x_3371; +x_3336 = lean_ctor_get(x_3, 0); +x_3337 = lean_ctor_get(x_3, 1); +x_3338 = lean_ctor_get(x_3, 2); +x_3339 = lean_ctor_get(x_3, 3); +x_3340 = lean_ctor_get(x_3, 4); +x_3341 = lean_ctor_get(x_3, 5); +x_3342 = lean_ctor_get(x_3, 6); +x_3343 = lean_ctor_get(x_3, 7); +x_3344 = lean_ctor_get(x_3, 8); +x_3345 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3346 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 1); +x_3347 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3348 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3349 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3350 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3351 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3352 = lean_ctor_get(x_3, 9); +x_3353 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3354 = lean_ctor_get(x_3, 10); +x_3355 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3356 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3357 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3358 = lean_ctor_get(x_3, 11); +x_3359 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3360 = lean_ctor_get(x_3, 12); +x_3361 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3362 = lean_ctor_get(x_3, 13); +x_3363 = lean_ctor_get(x_3, 14); +x_3364 = lean_ctor_get(x_3, 15); +x_3365 = lean_ctor_get(x_3, 16); +lean_inc(x_3365); +lean_inc(x_3364); +lean_inc(x_3363); +lean_inc(x_3362); +lean_inc(x_3360); +lean_inc(x_3358); +lean_inc(x_3354); +lean_inc(x_3352); +lean_inc(x_3344); +lean_inc(x_3343); +lean_inc(x_3342); +lean_inc(x_3341); +lean_inc(x_3340); +lean_inc(x_3339); +lean_inc(x_3338); +lean_inc(x_3337); +lean_inc(x_3336); +lean_dec(x_3); +x_3366 = lean_box(0); +x_3367 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3367, 0, x_3336); +lean_ctor_set(x_3367, 1, x_3337); +lean_ctor_set(x_3367, 2, x_3338); +lean_ctor_set(x_3367, 3, x_3339); +lean_ctor_set(x_3367, 4, x_3340); +lean_ctor_set(x_3367, 5, x_3341); +lean_ctor_set(x_3367, 6, x_3342); +lean_ctor_set(x_3367, 7, x_3343); +lean_ctor_set(x_3367, 8, x_3344); +lean_ctor_set(x_3367, 9, x_3352); +lean_ctor_set(x_3367, 10, x_3354); +lean_ctor_set(x_3367, 11, x_3358); +lean_ctor_set(x_3367, 12, x_3360); +lean_ctor_set(x_3367, 13, x_3362); +lean_ctor_set(x_3367, 14, x_3363); +lean_ctor_set(x_3367, 15, x_3364); +lean_ctor_set(x_3367, 16, x_3365); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17, x_3345); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 1, x_3346); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 2, x_10); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 3, x_3347); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 4, x_3348); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 5, x_3349); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 6, x_3350); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 7, x_3351); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 8, x_3353); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 9, x_3355); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 10, x_3356); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 11, x_3357); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 12, x_3359); +lean_ctor_set_uint8(x_3367, sizeof(void*)*17 + 13, x_3361); +x_3368 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3368, 0, x_3366); +lean_ctor_set(x_3368, 1, x_2); +x_3369 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3369, 0, x_3368); +lean_ctor_set(x_3369, 1, x_3367); +x_3370 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3370, 0, x_3369); +x_3371 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3371, 0, x_3370); +lean_ctor_set(x_3371, 1, x_4); +return x_3371; +} +} +} +else +{ +uint8_t x_3372; +lean_dec_ref(x_1); +x_3372 = !lean_is_exclusive(x_3); +if (x_3372 == 0) +{ +lean_object* x_3373; uint8_t x_3374; lean_object* x_3375; lean_object* x_3376; lean_object* x_3377; lean_object* x_3378; +x_3373 = lean_box(0); +x_3374 = 2; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 1, x_3374); +x_3375 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3375, 0, x_3373); +lean_ctor_set(x_3375, 1, x_2); +x_3376 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3376, 0, x_3375); +lean_ctor_set(x_3376, 1, x_3); +x_3377 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3377, 0, x_3376); +x_3378 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3378, 0, x_3377); +lean_ctor_set(x_3378, 1, x_4); +return x_3378; +} +else +{ +lean_object* x_3379; lean_object* x_3380; lean_object* x_3381; lean_object* x_3382; lean_object* x_3383; lean_object* x_3384; lean_object* x_3385; lean_object* x_3386; lean_object* x_3387; uint8_t x_3388; uint8_t x_3389; uint8_t x_3390; uint8_t x_3391; uint8_t x_3392; uint8_t x_3393; uint8_t x_3394; lean_object* x_3395; uint8_t x_3396; lean_object* x_3397; uint8_t x_3398; uint8_t x_3399; uint8_t x_3400; lean_object* x_3401; uint8_t x_3402; lean_object* x_3403; uint8_t x_3404; lean_object* x_3405; lean_object* x_3406; lean_object* x_3407; lean_object* x_3408; lean_object* x_3409; uint8_t x_3410; lean_object* x_3411; lean_object* x_3412; lean_object* x_3413; lean_object* x_3414; lean_object* x_3415; +x_3379 = lean_ctor_get(x_3, 0); +x_3380 = lean_ctor_get(x_3, 1); +x_3381 = lean_ctor_get(x_3, 2); +x_3382 = lean_ctor_get(x_3, 3); +x_3383 = lean_ctor_get(x_3, 4); +x_3384 = lean_ctor_get(x_3, 5); +x_3385 = lean_ctor_get(x_3, 6); +x_3386 = lean_ctor_get(x_3, 7); +x_3387 = lean_ctor_get(x_3, 8); +x_3388 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3389 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3390 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3391 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3392 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3393 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3394 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3395 = lean_ctor_get(x_3, 9); +x_3396 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3397 = lean_ctor_get(x_3, 10); +x_3398 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3399 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3400 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3401 = lean_ctor_get(x_3, 11); +x_3402 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3403 = lean_ctor_get(x_3, 12); +x_3404 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3405 = lean_ctor_get(x_3, 13); +x_3406 = lean_ctor_get(x_3, 14); +x_3407 = lean_ctor_get(x_3, 15); +x_3408 = lean_ctor_get(x_3, 16); +lean_inc(x_3408); +lean_inc(x_3407); +lean_inc(x_3406); +lean_inc(x_3405); +lean_inc(x_3403); +lean_inc(x_3401); +lean_inc(x_3397); +lean_inc(x_3395); +lean_inc(x_3387); +lean_inc(x_3386); +lean_inc(x_3385); +lean_inc(x_3384); +lean_inc(x_3383); +lean_inc(x_3382); +lean_inc(x_3381); +lean_inc(x_3380); +lean_inc(x_3379); +lean_dec(x_3); +x_3409 = lean_box(0); +x_3410 = 2; +x_3411 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3411, 0, x_3379); +lean_ctor_set(x_3411, 1, x_3380); +lean_ctor_set(x_3411, 2, x_3381); +lean_ctor_set(x_3411, 3, x_3382); +lean_ctor_set(x_3411, 4, x_3383); +lean_ctor_set(x_3411, 5, x_3384); +lean_ctor_set(x_3411, 6, x_3385); +lean_ctor_set(x_3411, 7, x_3386); +lean_ctor_set(x_3411, 8, x_3387); +lean_ctor_set(x_3411, 9, x_3395); +lean_ctor_set(x_3411, 10, x_3397); +lean_ctor_set(x_3411, 11, x_3401); +lean_ctor_set(x_3411, 12, x_3403); +lean_ctor_set(x_3411, 13, x_3405); +lean_ctor_set(x_3411, 14, x_3406); +lean_ctor_set(x_3411, 15, x_3407); +lean_ctor_set(x_3411, 16, x_3408); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17, x_3388); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 1, x_3410); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 2, x_3389); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 3, x_3390); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 4, x_3391); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 5, x_3392); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 6, x_3393); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 7, x_3394); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 8, x_3396); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 9, x_3398); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 10, x_3399); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 11, x_3400); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 12, x_3402); +lean_ctor_set_uint8(x_3411, sizeof(void*)*17 + 13, x_3404); +x_3412 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3412, 0, x_3409); +lean_ctor_set(x_3412, 1, x_2); +x_3413 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3413, 0, x_3412); +lean_ctor_set(x_3413, 1, x_3411); +x_3414 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3414, 0, x_3413); +x_3415 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3415, 0, x_3414); +lean_ctor_set(x_3415, 1, x_4); +return x_3415; +} +} +} +else +{ +uint8_t x_3416; +lean_dec_ref(x_1); +x_3416 = !lean_is_exclusive(x_3); +if (x_3416 == 0) +{ +lean_object* x_3417; uint8_t x_3418; lean_object* x_3419; lean_object* x_3420; lean_object* x_3421; lean_object* x_3422; +x_3417 = lean_box(0); +x_3418 = 0; +lean_ctor_set_uint8(x_3, sizeof(void*)*17 + 1, x_3418); +x_3419 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3419, 0, x_3417); +lean_ctor_set(x_3419, 1, x_2); +x_3420 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3420, 0, x_3419); +lean_ctor_set(x_3420, 1, x_3); +x_3421 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3421, 0, x_3420); +x_3422 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3422, 0, x_3421); +lean_ctor_set(x_3422, 1, x_4); +return x_3422; +} +else +{ +lean_object* x_3423; lean_object* x_3424; lean_object* x_3425; lean_object* x_3426; lean_object* x_3427; lean_object* x_3428; lean_object* x_3429; lean_object* x_3430; lean_object* x_3431; uint8_t x_3432; uint8_t x_3433; uint8_t x_3434; uint8_t x_3435; uint8_t x_3436; uint8_t x_3437; uint8_t x_3438; lean_object* x_3439; uint8_t x_3440; lean_object* x_3441; uint8_t x_3442; uint8_t x_3443; uint8_t x_3444; lean_object* x_3445; uint8_t x_3446; lean_object* x_3447; uint8_t x_3448; lean_object* x_3449; lean_object* x_3450; lean_object* x_3451; lean_object* x_3452; lean_object* x_3453; uint8_t x_3454; lean_object* x_3455; lean_object* x_3456; lean_object* x_3457; lean_object* x_3458; lean_object* x_3459; +x_3423 = lean_ctor_get(x_3, 0); +x_3424 = lean_ctor_get(x_3, 1); +x_3425 = lean_ctor_get(x_3, 2); +x_3426 = lean_ctor_get(x_3, 3); +x_3427 = lean_ctor_get(x_3, 4); +x_3428 = lean_ctor_get(x_3, 5); +x_3429 = lean_ctor_get(x_3, 6); +x_3430 = lean_ctor_get(x_3, 7); +x_3431 = lean_ctor_get(x_3, 8); +x_3432 = lean_ctor_get_uint8(x_3, sizeof(void*)*17); +x_3433 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 2); +x_3434 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 3); +x_3435 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 4); +x_3436 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 5); +x_3437 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 6); +x_3438 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 7); +x_3439 = lean_ctor_get(x_3, 9); +x_3440 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_3441 = lean_ctor_get(x_3, 10); +x_3442 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 9); +x_3443 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 10); +x_3444 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 11); +x_3445 = lean_ctor_get(x_3, 11); +x_3446 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +x_3447 = lean_ctor_get(x_3, 12); +x_3448 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 13); +x_3449 = lean_ctor_get(x_3, 13); +x_3450 = lean_ctor_get(x_3, 14); +x_3451 = lean_ctor_get(x_3, 15); +x_3452 = lean_ctor_get(x_3, 16); +lean_inc(x_3452); +lean_inc(x_3451); +lean_inc(x_3450); +lean_inc(x_3449); +lean_inc(x_3447); +lean_inc(x_3445); +lean_inc(x_3441); +lean_inc(x_3439); +lean_inc(x_3431); +lean_inc(x_3430); +lean_inc(x_3429); +lean_inc(x_3428); +lean_inc(x_3427); +lean_inc(x_3426); +lean_inc(x_3425); +lean_inc(x_3424); +lean_inc(x_3423); +lean_dec(x_3); +x_3453 = lean_box(0); +x_3454 = 0; +x_3455 = lean_alloc_ctor(0, 17, 14); +lean_ctor_set(x_3455, 0, x_3423); +lean_ctor_set(x_3455, 1, x_3424); +lean_ctor_set(x_3455, 2, x_3425); +lean_ctor_set(x_3455, 3, x_3426); +lean_ctor_set(x_3455, 4, x_3427); +lean_ctor_set(x_3455, 5, x_3428); +lean_ctor_set(x_3455, 6, x_3429); +lean_ctor_set(x_3455, 7, x_3430); +lean_ctor_set(x_3455, 8, x_3431); +lean_ctor_set(x_3455, 9, x_3439); +lean_ctor_set(x_3455, 10, x_3441); +lean_ctor_set(x_3455, 11, x_3445); +lean_ctor_set(x_3455, 12, x_3447); +lean_ctor_set(x_3455, 13, x_3449); +lean_ctor_set(x_3455, 14, x_3450); +lean_ctor_set(x_3455, 15, x_3451); +lean_ctor_set(x_3455, 16, x_3452); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17, x_3432); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 1, x_3454); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 2, x_3433); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 3, x_3434); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 4, x_3435); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 5, x_3436); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 6, x_3437); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 7, x_3438); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 8, x_3440); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 9, x_3442); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 10, x_3443); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 11, x_3444); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 12, x_3446); +lean_ctor_set_uint8(x_3455, sizeof(void*)*17 + 13, x_3448); +x_3456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3456, 0, x_3453); +lean_ctor_set(x_3456, 1, x_2); +x_3457 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3457, 0, x_3456); +lean_ctor_set(x_3457, 1, x_3455); +x_3458 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3458, 0, x_3457); +x_3459 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3459, 0, x_3458); +lean_ctor_set(x_3459, 1, x_4); +return x_3459; } } } @@ -18001,6 +20924,93 @@ lean_dec_ref(x_1); return x_2; } } +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cacheToolchain(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; +x_3 = lean_ctor_get(x_1, 4); +x_4 = lean_ctor_get_uint8(x_3, sizeof(void*)*26); +if (x_4 == 0) +{ +lean_inc_ref(x_2); +return x_2; +} +else +{ +lean_object* x_5; +x_5 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +return x_5; +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cacheToolchain___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cacheToolchain(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_alloc_closure((void*)(l_instDecidableEqBool___boxed), 2, 0); +x_2 = l_instBEqOfDecidableEq___redArg(x_1); +return x_2; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_3 = lean_ctor_get(x_1, 4); +lean_inc_ref(x_3); +lean_dec_ref(x_1); +x_4 = lean_ctor_get(x_3, 1); +lean_inc_ref(x_4); +lean_dec_ref(x_3); +x_5 = lean_ctor_get(x_4, 10); +lean_inc(x_5); +lean_dec_ref(x_4); +x_6 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0; +x_7 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1; +x_8 = l_Option_instBEq_beq___redArg(x_6, x_5, x_7); +if (x_8 == 0) +{ +lean_inc_ref(x_2); +return x_2; +} +else +{ +lean_object* x_9; +x_9 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +return x_9; +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform(x_1, x_2); +lean_dec_ref(x_2); +return x_3; +} +} static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__0() { _start: { @@ -18049,7 +21059,7 @@ lean_dec_ref(x_1); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -18074,239 +21084,241 @@ return x_8; } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___redArg(x_2, x_3, x_4); +x_5 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___redArg(x_2, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -uint8_t x_9; lean_object* x_10; -x_9 = 0; -x_10 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_6, x_1, x_2, x_3, x_9, x_7, x_8); -if (lean_obj_tag(x_10) == 0) +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = l_Lake_Package_cacheScope(x_1); +x_13 = 0; +x_14 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_9, x_2, x_3, x_12, x_4, x_5, x_6, x_13, x_10, x_11); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_4); -lean_ctor_set(x_10, 0, x_14); -return x_10; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_4); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_7); +lean_ctor_set(x_14, 0, x_18); +return x_14; } else { -uint8_t x_18; -lean_dec_ref(x_4); -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -lean_dec(x_19); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 0, x_7); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_5); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_10, 0, x_22); -return x_10; +lean_ctor_set(x_21, 1, x_19); +return x_21; +} } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 1); -lean_inc(x_23); -lean_dec(x_10); +uint8_t x_22; +lean_dec_ref(x_7); +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_14, 0); +lean_dec(x_23); x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 0, x_15); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_5); +lean_ctor_set(x_25, 1, x_8); x_26 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_23); -return x_27; -} -} +lean_ctor_set(x_14, 0, x_26); +return x_14; } else { -uint8_t x_28; -lean_dec_ref(x_4); -x_28 = !lean_is_exclusive(x_10); -if (x_28 == 0) -{ -return x_10; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_14, 1); +lean_inc(x_27); +lean_dec(x_14); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_15); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_8); +x_30 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); return x_31; } } } -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +else { -lean_object* x_11; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_9, x_10); -return x_11; -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: +uint8_t x_32; +lean_dec_ref(x_7); +x_32 = !lean_is_exclusive(x_14); +if (x_32 == 0) { -uint8_t x_9; lean_object* x_10; -x_9 = 0; -x_10 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_7, x_2, x_3, x_4, x_9, x_1, x_8); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_5); -lean_ctor_set(x_10, 0, x_14); -return x_10; +return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_14, 0); +x_34 = lean_ctor_get(x_14, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_14); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_12, x_13); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = l_Lake_Package_cacheScope(x_2); +x_13 = 0; +x_14 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_10, x_3, x_4, x_12, x_5, x_6, x_7, x_13, x_1, x_11); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_5); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} +if (lean_obj_tag(x_15) == 0) +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 0); +lean_dec(x_17); +x_18 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_18, 0, x_8); +lean_ctor_set(x_14, 0, x_18); +return x_14; } else { -uint8_t x_18; -lean_dec_ref(x_5); -x_18 = !lean_is_exclusive(x_10); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_10, 0); -lean_dec(x_19); +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); x_20 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_20, 0, x_11); +lean_ctor_set(x_20, 0, x_8); x_21 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_6); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_10, 0, x_22); -return x_10; +lean_ctor_set(x_21, 1, x_19); +return x_21; +} } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_23 = lean_ctor_get(x_10, 1); -lean_inc(x_23); -lean_dec(x_10); +uint8_t x_22; +lean_dec_ref(x_8); +x_22 = !lean_is_exclusive(x_14); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_14, 0); +lean_dec(x_23); x_24 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_24, 0, x_11); +lean_ctor_set(x_24, 0, x_15); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_6); +lean_ctor_set(x_25, 1, x_9); x_26 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_26, 0, x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_23); -return x_27; -} -} +lean_ctor_set(x_14, 0, x_26); +return x_14; } else { -uint8_t x_28; -lean_dec_ref(x_5); -x_28 = !lean_is_exclusive(x_10); -if (x_28 == 0) -{ -return x_10; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_10, 0); -x_30 = lean_ctor_get(x_10, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_10); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_27 = lean_ctor_get(x_14, 1); +lean_inc(x_27); +lean_dec(x_14); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_15); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_9); +x_30 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_30, 0, x_29); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); return x_31; } } } +else +{ +uint8_t x_32; +lean_dec_ref(x_8); +x_32 = !lean_is_exclusive(x_14); +if (x_32 == 0) +{ +return x_14; } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_14, 0); +x_34 = lean_ctor_get(x_14, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_14); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_11; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_10); -return x_11; +lean_object* x_14; +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_13); +return x_14; } } -static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0() { +static lean_object* _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -18318,122 +21330,126 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -uint8_t x_10; -x_10 = lean_usize_dec_lt(x_6, x_5); -if (x_10 == 0) +uint8_t x_13; +x_13 = lean_usize_dec_lt(x_9, x_8); +if (x_13 == 0) { -lean_object* x_11; -lean_dec_ref(x_8); +lean_object* x_14; +lean_dec_ref(x_11); +lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_9); -return x_11; +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_10); +lean_ctor_set(x_14, 1, x_12); +return x_14; } else { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -lean_dec_ref(x_7); -x_12 = lean_box(0); -x_13 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0; -x_14 = lean_array_uget(x_4, x_6); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_dec_ref(x_10); +x_15 = lean_box(0); +x_16 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0; +x_17 = lean_array_uget(x_7, x_9); +lean_inc_ref(x_4); lean_inc_ref(x_3); lean_inc_ref(x_2); lean_inc_ref(x_1); -lean_inc_ref(x_8); -x_15 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg(x_8, x_1, x_2, x_3, x_13, x_12, x_14, x_9); -lean_dec_ref(x_14); -if (lean_obj_tag(x_15) == 0) +lean_inc_ref(x_11); +x_18 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___redArg(x_11, x_1, x_2, x_3, x_4, x_5, x_6, x_16, x_15, x_17, x_12); +lean_dec_ref(x_17); +if (lean_obj_tag(x_18) == 0) { -lean_object* x_16; -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -if (lean_obj_tag(x_16) == 0) +lean_object* x_19; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) { -uint8_t x_17; -lean_dec_ref(x_8); +uint8_t x_20; +lean_dec_ref(x_11); +lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +x_20 = !lean_is_exclusive(x_18); +if (x_20 == 0) { -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_15, 0); -lean_dec(x_18); -x_19 = lean_ctor_get(x_16, 0); -lean_inc(x_19); -lean_dec_ref(x_16); -lean_ctor_set(x_15, 0, x_19); -return x_15; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_18, 0); +lean_dec(x_21); +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec_ref(x_19); +lean_ctor_set(x_18, 0, x_22); +return x_18; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_15, 1); -lean_inc(x_20); -lean_dec(x_15); -x_21 = lean_ctor_get(x_16, 0); -lean_inc(x_21); -lean_dec_ref(x_16); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; -x_23 = lean_ctor_get(x_15, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 1); lean_inc(x_23); -lean_dec_ref(x_15); -x_24 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_24 = lean_ctor_get(x_19, 0); lean_inc(x_24); -lean_dec_ref(x_16); -x_25 = 1; -x_26 = lean_usize_add(x_6, x_25); -x_6 = x_26; -x_7 = x_24; -x_9 = x_23; +lean_dec_ref(x_19); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; +} +} +else +{ +lean_object* x_26; lean_object* x_27; size_t x_28; size_t x_29; +x_26 = lean_ctor_get(x_18, 1); +lean_inc(x_26); +lean_dec_ref(x_18); +x_27 = lean_ctor_get(x_19, 0); +lean_inc(x_27); +lean_dec_ref(x_19); +x_28 = 1; +x_29 = lean_usize_add(x_9, x_28); +x_9 = x_29; +x_10 = x_27; +x_12 = x_26; goto _start; } } else { -uint8_t x_28; -lean_dec_ref(x_8); +uint8_t x_31; +lean_dec_ref(x_11); +lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_28 = !lean_is_exclusive(x_15); -if (x_28 == 0) +x_31 = !lean_is_exclusive(x_18); +if (x_31 == 0) { -return x_15; +return x_18; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_15, 0); -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_15); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_18, 0); +x_33 = lean_ctor_get(x_18, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_18); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -18458,15 +21474,15 @@ return x_8; } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2___redArg(x_1, x_3, x_4); +x_5 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2___redArg(x_1, x_3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { uint8_t x_7; @@ -18476,7 +21492,7 @@ if (x_7 == 0) lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; x_8 = lean_array_uget(x_1, x_2); lean_inc_ref(x_5); -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2_spec__2___redArg(x_5, x_8, x_6); +x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2_spec__2___redArg(x_5, x_8, x_6); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); @@ -18500,7 +21516,7 @@ return x_15; } } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0() { _start: { lean_object* x_1; @@ -18508,7 +21524,7 @@ x_1 = lean_mk_string_unchecked(": no outputs found ", 19, 19); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1() { _start: { lean_object* x_1; @@ -18516,7 +21532,7 @@ x_1 = lean_mk_string_unchecked("in ", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2() { _start: { lean_object* x_1; @@ -18524,7 +21540,7 @@ x_1 = lean_mk_string_unchecked(" revisions from HEAD", 20, 20); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3() { _start: { lean_object* x_1; @@ -18532,7 +21548,7 @@ x_1 = lean_mk_string_unchecked("for any revision", 16, 16); return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4() { _start: { lean_object* x_1; @@ -18540,7 +21556,7 @@ x_1 = lean_mk_string_unchecked(": package has changes; only artifacts for commit return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -18549,944 +21565,645 @@ x_2 = lean_array_get_size(x_1); return x_2; } } -static uint8_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6() { +static uint8_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6() { _start: { lean_object* x_1; lean_object* x_2; uint8_t x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_nat_dec_lt(x_2, x_1); return x_3; } } -static uint8_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7() { +static uint8_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7() { _start: { lean_object* x_1; uint8_t x_2; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5; x_2 = lean_nat_dec_le(x_1, x_1); return x_2; } } -static size_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8() { +static size_t _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8() { _start: { lean_object* x_1; size_t x_2; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5; x_2 = lean_usize_of_nat(x_1); return x_2; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9() { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked(": outputs not found for revision ", 33, 33); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: +lean_object* x_10; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_120; lean_object* x_121; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_153; +x_74 = lean_ctor_get(x_3, 0); +x_75 = lean_ctor_get(x_3, 2); +lean_inc_ref(x_75); +x_140 = l_Lake_GitRepo_hasNoDiff(x_75, x_9); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec_ref(x_140); +x_143 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; +x_153 = lean_unbox(x_141); +lean_dec(x_141); +if (x_153 == 0) { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_68; lean_object* x_72; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_124; lean_object* x_125; -x_76 = lean_ctor_get(x_3, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_3, 2); -lean_inc_ref(x_77); -lean_dec_ref(x_3); -x_78 = lean_ctor_get_uint8(x_5, sizeof(void*)*15 + 8); -x_79 = lean_ctor_get(x_5, 13); -lean_inc(x_79); -x_80 = lean_ctor_get(x_5, 14); -lean_inc(x_80); -lean_dec_ref(x_5); -if (lean_obj_tag(x_79) == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; uint8_t x_155; -lean_inc_ref(x_77); -x_142 = l_Lake_GitRepo_hasNoDiff(x_77, x_7); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec_ref(x_142); -x_145 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -x_155 = lean_unbox(x_143); -lean_dec(x_143); -if (x_155 == 0) -{ -uint8_t x_156; -x_156 = 1; -x_146 = x_156; -goto block_154; +uint8_t x_154; +x_154 = 1; +x_144 = x_154; +goto block_152; } else { -uint8_t x_157; -x_157 = 0; -x_146 = x_157; -goto block_154; +uint8_t x_155; +x_155 = 0; +x_144 = x_155; +goto block_152; } -block_154: +block_13: { -uint8_t x_147; -x_147 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6; -if (x_147 == 0) -{ -x_124 = x_146; -x_125 = x_144; -goto block_141; +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; } -else +block_29: { -uint8_t x_148; -x_148 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7; -if (x_148 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_17 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0; +x_18 = lean_string_append(x_4, x_17); +x_19 = lean_string_append(x_18, x_16); +lean_dec_ref(x_16); +x_20 = 3; +x_21 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20); +x_22 = lean_apply_2(x_15, x_21, x_14); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -x_124 = x_146; -x_125 = x_144; -goto block_141; -} -else -{ -lean_object* x_149; size_t x_150; size_t x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_box(0); -x_150 = 0; -x_151 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8; -lean_inc_ref(x_6); -x_152 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_145, x_150, x_151, x_149, x_6, x_144); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec_ref(x_152); -x_124 = x_146; -x_125 = x_153; -goto block_141; -} -} -} -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_80); -lean_dec(x_76); -x_158 = lean_ctor_get(x_79, 0); -lean_inc(x_158); -lean_dec_ref(x_79); -x_159 = lean_unsigned_to_nat(0u); -x_160 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -x_161 = l_Lake_GitRepo_resolveRevision(x_158, x_77, x_160, x_7); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_194; uint8_t x_195; -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec_ref(x_161); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec_ref(x_162); -x_194 = lean_array_get_size(x_165); -x_195 = lean_nat_dec_lt(x_159, x_194); -if (x_195 == 0) -{ -lean_dec(x_194); -lean_dec(x_165); -x_166 = x_163; -goto block_193; -} -else -{ -uint8_t x_196; -x_196 = lean_nat_dec_le(x_194, x_194); -if (x_196 == 0) -{ -lean_dec(x_194); -lean_dec(x_165); -x_166 = x_163; -goto block_193; -} -else -{ -lean_object* x_197; size_t x_198; size_t x_199; lean_object* x_200; lean_object* x_201; -x_197 = lean_box(0); -x_198 = 0; -x_199 = lean_usize_of_nat(x_194); -lean_dec(x_194); -lean_inc_ref(x_6); -x_200 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_165, x_198, x_199, x_197, x_6, x_163); -lean_dec(x_165); -x_201 = lean_ctor_get(x_200, 1); -lean_inc(x_201); -lean_dec_ref(x_200); -x_166 = x_201; -goto block_193; -} -} -block_193: -{ -uint8_t x_167; lean_object* x_168; -x_167 = 0; -lean_inc_ref(x_6); -lean_inc_ref(x_4); -x_168 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_164, x_1, x_4, x_2, x_167, x_6, x_166); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec_ref(x_168); -x_171 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9; -x_172 = lean_string_append(x_4, x_171); -x_173 = lean_string_append(x_172, x_164); -lean_dec(x_164); -x_174 = 3; -x_175 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set_uint8(x_175, sizeof(void*)*1, x_174); -x_176 = lean_apply_2(x_6, x_175, x_170); -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_176, 0); -lean_dec(x_178); -x_179 = lean_box(0); -lean_ctor_set_tag(x_176, 1); -lean_ctor_set(x_176, 0, x_179); -return x_176; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_176, 1); -lean_inc(x_180); -lean_dec(x_176); -x_181 = lean_box(0); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -else -{ -uint8_t x_183; -lean_dec(x_164); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -x_183 = !lean_is_exclusive(x_168); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_168, 0); -lean_dec(x_184); -x_185 = lean_ctor_get(x_169, 0); -lean_inc(x_185); -lean_dec_ref(x_169); -lean_ctor_set(x_168, 0, x_185); -return x_168; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_168, 1); -lean_inc(x_186); -lean_dec(x_168); -x_187 = lean_ctor_get(x_169, 0); -lean_inc(x_187); -lean_dec_ref(x_169); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -return x_188; -} -} -} -else -{ -uint8_t x_189; -lean_dec(x_164); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -x_189 = !lean_is_exclusive(x_168); -if (x_189 == 0) -{ -return x_168; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_190 = lean_ctor_get(x_168, 0); -x_191 = lean_ctor_get(x_168, 1); -lean_inc(x_191); -lean_inc(x_190); -lean_dec(x_168); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set(x_192, 1, x_191); -return x_192; -} -} -} -} -else -{ -uint8_t x_202; -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_202 = !lean_is_exclusive(x_161); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; -x_203 = lean_ctor_get(x_161, 1); -x_204 = lean_ctor_get(x_161, 0); -lean_dec(x_204); -x_205 = lean_ctor_get(x_162, 1); -lean_inc(x_205); -lean_dec_ref(x_162); -x_206 = lean_array_get_size(x_205); -x_207 = lean_nat_dec_lt(x_159, x_206); -if (x_207 == 0) -{ -lean_object* x_208; -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_6); -x_208 = lean_box(0); -lean_ctor_set_tag(x_161, 1); -lean_ctor_set(x_161, 0, x_208); -return x_161; -} -else -{ -uint8_t x_209; -lean_free_object(x_161); -x_209 = lean_nat_dec_le(x_206, x_206); -if (x_209 == 0) -{ -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_6); -x_72 = x_203; -goto block_75; -} -else -{ -lean_object* x_210; size_t x_211; size_t x_212; lean_object* x_213; lean_object* x_214; -x_210 = lean_box(0); -x_211 = 0; -x_212 = lean_usize_of_nat(x_206); -lean_dec(x_206); -x_213 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_205, x_211, x_212, x_210, x_6, x_203); -lean_dec(x_205); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -lean_dec_ref(x_213); -x_72 = x_214; -goto block_75; -} -} -} -else -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -x_215 = lean_ctor_get(x_161, 1); -lean_inc(x_215); -lean_dec(x_161); -x_216 = lean_ctor_get(x_162, 1); -lean_inc(x_216); -lean_dec_ref(x_162); -x_217 = lean_array_get_size(x_216); -x_218 = lean_nat_dec_lt(x_159, x_217); -if (x_218 == 0) -{ -lean_object* x_219; lean_object* x_220; -lean_dec(x_217); -lean_dec(x_216); -lean_dec_ref(x_6); -x_219 = lean_box(0); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_215); -return x_220; -} -else -{ -uint8_t x_221; -x_221 = lean_nat_dec_le(x_217, x_217); -if (x_221 == 0) -{ -lean_dec(x_217); -lean_dec(x_216); -lean_dec_ref(x_6); -x_72 = x_215; -goto block_75; -} -else -{ -lean_object* x_222; size_t x_223; size_t x_224; lean_object* x_225; lean_object* x_226; -x_222 = lean_box(0); -x_223 = 0; -x_224 = lean_usize_of_nat(x_217); -lean_dec(x_217); -x_225 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_216, x_223, x_224, x_222, x_6, x_215); -lean_dec(x_216); -x_226 = lean_ctor_get(x_225, 1); -lean_inc(x_226); -lean_dec_ref(x_225); -x_72 = x_226; -goto block_75; -} -} -} -} -} -block_23: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0; -x_12 = lean_string_append(x_4, x_11); -x_13 = lean_string_append(x_12, x_10); -lean_dec_ref(x_10); -x_14 = 3; -x_15 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_14); -x_16 = lean_apply_2(x_9, x_15, x_8); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set_tag(x_16, 1); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set_tag(x_22, 1); +lean_ctor_set(x_22, 0, x_25); return x_22; } +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; } -block_34: +} +block_40: { -if (x_27 == 0) +if (x_33 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1; -x_29 = l_Nat_reprFast(x_26); -x_30 = lean_string_append(x_28, x_29); -lean_dec_ref(x_29); -x_31 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2; -x_32 = lean_string_append(x_30, x_31); -x_8 = x_24; -x_9 = x_25; -x_10 = x_32; -goto block_23; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1; +x_35 = l_Nat_reprFast(x_30); +x_36 = lean_string_append(x_34, x_35); +lean_dec_ref(x_35); +x_37 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2; +x_38 = lean_string_append(x_36, x_37); +x_14 = x_31; +x_15 = x_32; +x_16 = x_38; +goto block_29; } else { -lean_object* x_33; -lean_dec(x_26); -x_33 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3; -x_8 = x_24; -x_9 = x_25; -x_10 = x_33; -goto block_23; +lean_object* x_39; +lean_dec(x_30); +x_39 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3; +x_14 = x_31; +x_15 = x_32; +x_16 = x_39; +goto block_29; } } -block_43: +block_49: { -lean_object* x_39; uint8_t x_40; -x_39 = lean_unsigned_to_nat(0u); -x_40 = lean_nat_dec_eq(x_35, x_39); -if (x_40 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_nat_dec_eq(x_41, x_45); +if (x_46 == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = lean_array_get_size(x_37); -lean_dec_ref(x_37); -x_42 = lean_nat_dec_lt(x_41, x_35); -lean_dec(x_41); -x_24 = x_38; -x_25 = x_36; -x_26 = x_35; -x_27 = x_42; -goto block_34; +lean_object* x_47; uint8_t x_48; +x_47 = lean_array_get_size(x_42); +lean_dec_ref(x_42); +x_48 = lean_nat_dec_lt(x_47, x_41); +lean_dec(x_47); +x_30 = x_41; +x_31 = x_44; +x_32 = x_43; +x_33 = x_48; +goto block_40; } else { -lean_dec_ref(x_37); -x_24 = x_38; -x_25 = x_36; -x_26 = x_35; -x_27 = x_40; -goto block_34; +lean_dec_ref(x_42); +x_30 = x_41; +x_31 = x_44; +x_32 = x_43; +x_33 = x_46; +goto block_40; } } -block_67: +block_73: { -lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; -x_48 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0; -x_49 = lean_array_size(x_46); -x_50 = 0; -lean_inc_ref(x_44); +lean_object* x_54; size_t x_55; size_t x_56; lean_object* x_57; +x_54 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0; +x_55 = lean_array_size(x_52); +x_56 = 0; +lean_inc_ref(x_51); lean_inc_ref(x_4); -x_51 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0(x_1, x_4, x_2, x_46, x_49, x_50, x_48, x_44, x_47); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec_ref(x_51); -x_35 = x_45; -x_36 = x_44; -x_37 = x_46; -x_38 = x_54; -goto block_43; -} -else -{ -lean_object* x_55; -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -lean_dec_ref(x_53); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_51, 1); -lean_inc(x_56); -lean_dec_ref(x_51); -x_35 = x_45; -x_36 = x_44; -x_37 = x_46; -x_38 = x_56; -goto block_43; -} -else -{ -uint8_t x_57; -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec_ref(x_44); -lean_dec_ref(x_4); -x_57 = !lean_is_exclusive(x_51); -if (x_57 == 0) +x_57 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0(x_3, x_1, x_2, x_4, x_6, x_7, x_52, x_55, x_56, x_54, x_51, x_53); +if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 0); -lean_dec(x_58); -x_59 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec_ref(x_55); -lean_ctor_set(x_51, 0, x_59); -return x_51; +lean_dec(x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec_ref(x_57); +x_41 = x_50; +x_42 = x_52; +x_43 = x_51; +x_44 = x_60; +goto block_49; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_51, 1); -lean_inc(x_60); -lean_dec(x_51); -x_61 = lean_ctor_get(x_55, 0); +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); lean_inc(x_61); -lean_dec_ref(x_55); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -} +lean_dec_ref(x_59); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +lean_dec_ref(x_57); +x_41 = x_50; +x_42 = x_52; +x_43 = x_51; +x_44 = x_62; +goto block_49; } else { uint8_t x_63; -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec_ref(x_44); +lean_dec_ref(x_52); +lean_dec_ref(x_51); +lean_dec(x_50); lean_dec_ref(x_4); -x_63 = !lean_is_exclusive(x_51); +x_63 = !lean_is_exclusive(x_57); if (x_63 == 0) { -return x_51; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_51, 0); -x_65 = lean_ctor_get(x_51, 1); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_57, 0); +lean_dec(x_64); +x_65 = lean_ctor_get(x_61, 0); lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_51); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -block_71: -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_box(0); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -return x_70; -} -block_75: -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -return x_74; -} -block_123: -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -lean_inc(x_80); -x_85 = l_Lake_GitRepo_getHeadRevisions(x_77, x_80, x_84, x_82); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec_ref(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_dec_ref(x_86); -x_90 = lean_array_get_size(x_89); -x_91 = lean_nat_dec_lt(x_83, x_90); -if (x_91 == 0) -{ -lean_dec(x_90); -lean_dec(x_89); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_87; -goto block_67; +lean_dec_ref(x_61); +lean_ctor_set(x_57, 0, x_65); +return x_57; } else { -uint8_t x_92; -x_92 = lean_nat_dec_le(x_90, x_90); -if (x_92 == 0) -{ -lean_dec(x_90); -lean_dec(x_89); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_87; -goto block_67; +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +lean_dec(x_57); +x_67 = lean_ctor_get(x_61, 0); +lean_inc(x_67); +lean_dec_ref(x_61); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +return x_68; } -else -{ -lean_object* x_93; size_t x_94; size_t x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_box(0); -x_94 = 0; -x_95 = lean_usize_of_nat(x_90); -lean_dec(x_90); -lean_inc_ref(x_81); -x_96 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_89, x_94, x_95, x_93, x_81, x_87); -lean_dec(x_89); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_97; -goto block_67; } } } else { -uint8_t x_98; -lean_dec(x_80); +uint8_t x_69; +lean_dec_ref(x_52); +lean_dec_ref(x_51); +lean_dec(x_50); lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_98 = !lean_is_exclusive(x_85); -if (x_98 == 0) +x_69 = !lean_is_exclusive(x_57); +if (x_69 == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = lean_ctor_get(x_85, 1); -x_100 = lean_ctor_get(x_85, 0); -lean_dec(x_100); -x_101 = lean_ctor_get(x_86, 1); -lean_inc(x_101); -lean_dec_ref(x_86); -x_102 = lean_array_get_size(x_101); -x_103 = lean_nat_dec_lt(x_83, x_102); -if (x_103 == 0) +return x_57; +} +else { -lean_object* x_104; -lean_dec(x_102); -lean_dec(x_101); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_57, 0); +x_71 = lean_ctor_get(x_57, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_57); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +block_119: +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_5, 16); +lean_inc(x_78); +lean_dec_ref(x_5); +x_79 = lean_unsigned_to_nat(0u); +x_80 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; +lean_inc(x_78); +lean_inc_ref(x_75); +x_81 = l_Lake_GitRepo_getHeadRevisions(x_75, x_78, x_80, x_77); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); lean_dec_ref(x_81); -x_104 = lean_box(0); -lean_ctor_set_tag(x_85, 1); -lean_ctor_set(x_85, 0, x_104); -return x_85; -} -else +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec_ref(x_82); +x_86 = lean_array_get_size(x_85); +x_87 = lean_nat_dec_lt(x_79, x_86); +if (x_87 == 0) { -uint8_t x_105; -lean_free_object(x_85); -x_105 = lean_nat_dec_le(x_102, x_102); -if (x_105 == 0) -{ -lean_dec(x_102); -lean_dec(x_101); -lean_dec_ref(x_81); -x_68 = x_99; -goto block_71; -} -else -{ -lean_object* x_106; size_t x_107; size_t x_108; lean_object* x_109; lean_object* x_110; -x_106 = lean_box(0); -x_107 = 0; -x_108 = lean_usize_of_nat(x_102); -lean_dec(x_102); -x_109 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_101, x_107, x_108, x_106, x_81, x_99); -lean_dec(x_101); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec_ref(x_109); -x_68 = x_110; -goto block_71; -} -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_111 = lean_ctor_get(x_85, 1); -lean_inc(x_111); +lean_dec(x_86); lean_dec(x_85); -x_112 = lean_ctor_get(x_86, 1); -lean_inc(x_112); -lean_dec_ref(x_86); -x_113 = lean_array_get_size(x_112); -x_114 = lean_nat_dec_lt(x_83, x_113); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_113); -lean_dec(x_112); -lean_dec_ref(x_81); -x_115 = lean_box(0); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_111); -return x_116; +x_50 = x_78; +x_51 = x_76; +x_52 = x_84; +x_53 = x_83; +goto block_73; } else { -uint8_t x_117; -x_117 = lean_nat_dec_le(x_113, x_113); -if (x_117 == 0) +uint8_t x_88; +x_88 = lean_nat_dec_le(x_86, x_86); +if (x_88 == 0) { -lean_dec(x_113); -lean_dec(x_112); -lean_dec_ref(x_81); -x_68 = x_111; -goto block_71; +lean_dec(x_86); +lean_dec(x_85); +x_50 = x_78; +x_51 = x_76; +x_52 = x_84; +x_53 = x_83; +goto block_73; } else { -lean_object* x_118; size_t x_119; size_t x_120; lean_object* x_121; lean_object* x_122; -x_118 = lean_box(0); -x_119 = 0; -x_120 = lean_usize_of_nat(x_113); -lean_dec(x_113); -x_121 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_112, x_119, x_120, x_118, x_81, x_111); -lean_dec(x_112); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -lean_dec_ref(x_121); -x_68 = x_122; -goto block_71; +lean_object* x_89; size_t x_90; size_t x_91; lean_object* x_92; lean_object* x_93; +x_89 = lean_box(0); +x_90 = 0; +x_91 = lean_usize_of_nat(x_86); +lean_dec(x_86); +lean_inc_ref(x_76); +x_92 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_85, x_90, x_91, x_89, x_76, x_83); +lean_dec(x_85); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec_ref(x_92); +x_50 = x_78; +x_51 = x_76; +x_52 = x_84; +x_53 = x_93; +goto block_73; } } } -} -} -block_141: -{ -if (x_124 == 0) -{ -lean_dec(x_76); -x_81 = x_6; -x_82 = x_125; -goto block_123; -} else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_126 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_76, x_124); -x_127 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4; -x_128 = lean_string_append(x_126, x_127); -x_129 = 2; -x_130 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set_uint8(x_130, sizeof(void*)*1, x_129); -lean_inc_ref(x_6); -x_131 = lean_apply_2(x_6, x_130, x_125); -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) -{ -lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_133 = lean_ctor_get(x_131, 1); -x_134 = lean_ctor_get(x_131, 0); -lean_dec(x_134); -x_135 = l_Lake_instOrdLogLevel_ord(x_129, x_78); -if (x_135 == 2) -{ -lean_free_object(x_131); -x_81 = x_6; -x_82 = x_133; -goto block_123; -} -else -{ -lean_object* x_136; -lean_dec(x_80); -lean_dec_ref(x_77); -lean_dec_ref(x_6); +uint8_t x_94; +lean_dec(x_78); lean_dec_ref(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_136 = lean_box(0); -lean_ctor_set_tag(x_131, 1); -lean_ctor_set(x_131, 0, x_136); -return x_131; +x_94 = !lean_is_exclusive(x_81); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_95 = lean_ctor_get(x_81, 1); +x_96 = lean_ctor_get(x_81, 0); +lean_dec(x_96); +x_97 = lean_ctor_get(x_82, 1); +lean_inc(x_97); +lean_dec_ref(x_82); +x_98 = lean_array_get_size(x_97); +x_99 = lean_nat_dec_lt(x_79, x_98); +if (x_99 == 0) +{ +lean_object* x_100; +lean_dec(x_98); +lean_dec(x_97); +lean_dec_ref(x_76); +x_100 = lean_box(0); +lean_ctor_set_tag(x_81, 1); +lean_ctor_set(x_81, 0, x_100); +return x_81; +} +else +{ +uint8_t x_101; +lean_free_object(x_81); +x_101 = lean_nat_dec_le(x_98, x_98); +if (x_101 == 0) +{ +lean_dec(x_98); +lean_dec(x_97); +lean_dec_ref(x_76); +x_10 = x_95; +goto block_13; +} +else +{ +lean_object* x_102; size_t x_103; size_t x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_box(0); +x_103 = 0; +x_104 = lean_usize_of_nat(x_98); +lean_dec(x_98); +x_105 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_97, x_103, x_104, x_102, x_76, x_95); +lean_dec(x_97); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec_ref(x_105); +x_10 = x_106; +goto block_13; +} } } else { -lean_object* x_137; uint8_t x_138; -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -lean_dec(x_131); -x_138 = l_Lake_instOrdLogLevel_ord(x_129, x_78); -if (x_138 == 2) +lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_107 = lean_ctor_get(x_81, 1); +lean_inc(x_107); +lean_dec(x_81); +x_108 = lean_ctor_get(x_82, 1); +lean_inc(x_108); +lean_dec_ref(x_82); +x_109 = lean_array_get_size(x_108); +x_110 = lean_nat_dec_lt(x_79, x_109); +if (x_110 == 0) { -x_81 = x_6; -x_82 = x_137; -goto block_123; +lean_object* x_111; lean_object* x_112; +lean_dec(x_109); +lean_dec(x_108); +lean_dec_ref(x_76); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_107); +return x_112; } else { -lean_object* x_139; lean_object* x_140; -lean_dec(x_80); -lean_dec_ref(x_77); -lean_dec_ref(x_6); -lean_dec_ref(x_4); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_139 = lean_box(0); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_137); -return x_140; -} -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: +uint8_t x_113; +x_113 = lean_nat_dec_le(x_109, x_109); +if (x_113 == 0) { -lean_object* x_9; -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec_ref(x_6); -return x_9; +lean_dec(x_109); +lean_dec(x_108); +lean_dec_ref(x_76); +x_10 = x_107; +goto block_13; } -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: +else { -lean_object* x_11; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_114; size_t x_115; size_t x_116; lean_object* x_117; lean_object* x_118; +x_114 = lean_box(0); +x_115 = 0; +x_116 = lean_usize_of_nat(x_109); +lean_dec(x_109); +x_117 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_108, x_115, x_116, x_114, x_76, x_107); +lean_dec(x_108); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec_ref(x_117); +x_10 = x_118; +goto block_13; +} +} +} +} +} +block_139: +{ +if (x_120 == 0) +{ +x_76 = x_8; +x_77 = x_121; +goto block_119; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +lean_inc(x_74); +x_122 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_74, x_120); +x_123 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4; +x_124 = lean_string_append(x_122, x_123); +x_125 = 2; +x_126 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set_uint8(x_126, sizeof(void*)*1, x_125); +lean_inc_ref(x_8); +x_127 = lean_apply_2(x_8, x_126, x_121); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) +{ +lean_object* x_129; lean_object* x_130; uint8_t x_131; uint8_t x_132; +x_129 = lean_ctor_get(x_127, 1); +x_130 = lean_ctor_get(x_127, 0); +lean_dec(x_130); +x_131 = lean_ctor_get_uint8(x_5, sizeof(void*)*17 + 8); +x_132 = l_Lake_instOrdLogLevel_ord(x_125, x_131); +if (x_132 == 2) +{ +lean_free_object(x_127); +x_76 = x_8; +x_77 = x_129; +goto block_119; +} +else +{ +lean_object* x_133; lean_dec_ref(x_8); -lean_dec_ref(x_6); -return x_11; -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec_ref(x_7); -return x_9; -} -} -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___elam__5___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec_ref(x_9); -lean_dec_ref(x_7); -return x_11; -} -} -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -size_t x_10; size_t x_11; lean_object* x_12; -x_10 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_11 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_12 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0(x_1, x_2, x_3, x_4, x_10, x_11, x_7, x_8, x_9); +lean_dec_ref(x_5); lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_133 = lean_box(0); +lean_ctor_set_tag(x_127, 1); +lean_ctor_set(x_127, 0, x_133); +return x_127; +} +} +else +{ +lean_object* x_134; uint8_t x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_127, 1); +lean_inc(x_134); +lean_dec(x_127); +x_135 = lean_ctor_get_uint8(x_5, sizeof(void*)*17 + 8); +x_136 = l_Lake_instOrdLogLevel_ord(x_125, x_135); +if (x_136 == 2) +{ +x_76 = x_8; +x_77 = x_134; +goto block_119; +} +else +{ +lean_object* x_137; lean_object* x_138; +lean_dec_ref(x_8); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_137 = lean_box(0); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_134); +return x_138; +} +} +} +} +block_152: +{ +uint8_t x_145; +x_145 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6; +if (x_145 == 0) +{ +x_120 = x_144; +x_121 = x_142; +goto block_139; +} +else +{ +uint8_t x_146; +x_146 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7; +if (x_146 == 0) +{ +x_120 = x_144; +x_121 = x_142; +goto block_139; +} +else +{ +lean_object* x_147; size_t x_148; size_t x_149; lean_object* x_150; lean_object* x_151; +x_147 = lean_box(0); +x_148 = 0; +x_149 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8; +lean_inc_ref(x_8); +x_150 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_143, x_148, x_149, x_147, x_8, x_142); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec_ref(x_150); +x_120 = x_144; +x_121 = x_151; +goto block_139; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); return x_12; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec_ref(x_11); +lean_dec_ref(x_9); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +return x_12; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__3___at_____private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec_ref(x_12); +lean_dec_ref(x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +return x_14; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +size_t x_13; size_t x_14; lean_object* x_15; +x_13 = lean_unbox_usize(x_8); +lean_dec(x_8); +x_14 = lean_unbox_usize(x_9); +lean_dec(x_9); +x_15 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_13, x_14, x_10, x_11, x_12); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_5); +return x_15; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { size_t x_7; size_t x_8; lean_object* x_9; @@ -19494,862 +22211,631 @@ x_7 = lean_unbox_usize(x_2); lean_dec(x_2); x_8 = lean_unbox_usize(x_3); lean_dec(x_3); -x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_1, x_7, x_8, x_4, x_5, x_6); +x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_1, x_7, x_8, x_4, x_5, x_6); lean_dec_ref(x_1); return x_9; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_68; lean_object* x_72; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_124; lean_object* x_125; -x_76 = lean_ctor_get(x_4, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_4, 2); -lean_inc_ref(x_77); -lean_dec_ref(x_4); -x_78 = lean_ctor_get_uint8(x_6, sizeof(void*)*15 + 8); -x_79 = lean_ctor_get(x_6, 13); -lean_inc(x_79); -x_80 = lean_ctor_get(x_6, 14); -lean_inc(x_80); +lean_object* x_10; +x_10 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec_ref(x_7); lean_dec_ref(x_6); -if (lean_obj_tag(x_79) == 0) +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; uint8_t x_155; -lean_inc_ref(x_77); -x_142 = l_Lake_GitRepo_hasNoDiff(x_77, x_7); -x_143 = lean_ctor_get(x_142, 0); -lean_inc(x_143); -x_144 = lean_ctor_get(x_142, 1); -lean_inc(x_144); -lean_dec_ref(x_142); -x_145 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -x_155 = lean_unbox(x_143); -lean_dec(x_143); -if (x_155 == 0) +lean_object* x_10; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_120; lean_object* x_121; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; uint8_t x_153; +x_74 = lean_ctor_get(x_4, 0); +x_75 = lean_ctor_get(x_4, 2); +lean_inc_ref(x_75); +x_140 = l_Lake_GitRepo_hasNoDiff(x_75, x_9); +x_141 = lean_ctor_get(x_140, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_140, 1); +lean_inc(x_142); +lean_dec_ref(x_140); +x_143 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; +x_153 = lean_unbox(x_141); +lean_dec(x_141); +if (x_153 == 0) { -uint8_t x_156; -x_156 = 1; -x_146 = x_156; -goto block_154; +uint8_t x_154; +x_154 = 1; +x_144 = x_154; +goto block_152; } else { -uint8_t x_157; -x_157 = 0; -x_146 = x_157; -goto block_154; +uint8_t x_155; +x_155 = 0; +x_144 = x_155; +goto block_152; } -block_154: +block_13: { -uint8_t x_147; -x_147 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6; -if (x_147 == 0) -{ -x_124 = x_146; -x_125 = x_144; -goto block_141; +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; } -else +block_29: { -uint8_t x_148; -x_148 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7; -if (x_148 == 0) +lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_17 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0; +x_18 = lean_string_append(x_5, x_17); +x_19 = lean_string_append(x_18, x_16); +lean_dec_ref(x_16); +x_20 = 3; +x_21 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20); +x_22 = lean_apply_2(x_14, x_21, x_15); +x_23 = !lean_is_exclusive(x_22); +if (x_23 == 0) { -x_124 = x_146; -x_125 = x_144; -goto block_141; -} -else -{ -lean_object* x_149; size_t x_150; size_t x_151; lean_object* x_152; lean_object* x_153; -x_149 = lean_box(0); -x_150 = 0; -x_151 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8; -lean_inc_ref(x_1); -x_152 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_145, x_150, x_151, x_149, x_1, x_144); -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec_ref(x_152); -x_124 = x_146; -x_125 = x_153; -goto block_141; -} -} -} -} -else -{ -lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -lean_dec(x_80); -lean_dec(x_76); -x_158 = lean_ctor_get(x_79, 0); -lean_inc(x_158); -lean_dec_ref(x_79); -x_159 = lean_unsigned_to_nat(0u); -x_160 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -x_161 = l_Lake_GitRepo_resolveRevision(x_158, x_77, x_160, x_7); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -if (lean_obj_tag(x_162) == 0) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_194; uint8_t x_195; -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec_ref(x_161); -x_164 = lean_ctor_get(x_162, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_162, 1); -lean_inc(x_165); -lean_dec_ref(x_162); -x_194 = lean_array_get_size(x_165); -x_195 = lean_nat_dec_lt(x_159, x_194); -if (x_195 == 0) -{ -lean_dec(x_194); -lean_dec(x_165); -x_166 = x_163; -goto block_193; -} -else -{ -uint8_t x_196; -x_196 = lean_nat_dec_le(x_194, x_194); -if (x_196 == 0) -{ -lean_dec(x_194); -lean_dec(x_165); -x_166 = x_163; -goto block_193; -} -else -{ -lean_object* x_197; size_t x_198; size_t x_199; lean_object* x_200; lean_object* x_201; -x_197 = lean_box(0); -x_198 = 0; -x_199 = lean_usize_of_nat(x_194); -lean_dec(x_194); -lean_inc_ref(x_1); -x_200 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_165, x_198, x_199, x_197, x_1, x_163); -lean_dec(x_165); -x_201 = lean_ctor_get(x_200, 1); -lean_inc(x_201); -lean_dec_ref(x_200); -x_166 = x_201; -goto block_193; -} -} -block_193: -{ -uint8_t x_167; lean_object* x_168; -x_167 = 0; -lean_inc_ref(x_1); -lean_inc_ref(x_5); -x_168 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_164, x_2, x_5, x_3, x_167, x_1, x_166); -if (lean_obj_tag(x_168) == 0) -{ -lean_object* x_169; -x_169 = lean_ctor_get(x_168, 0); -lean_inc(x_169); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; lean_object* x_175; lean_object* x_176; uint8_t x_177; -x_170 = lean_ctor_get(x_168, 1); -lean_inc(x_170); -lean_dec_ref(x_168); -x_171 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9; -x_172 = lean_string_append(x_5, x_171); -x_173 = lean_string_append(x_172, x_164); -lean_dec(x_164); -x_174 = 3; -x_175 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set_uint8(x_175, sizeof(void*)*1, x_174); -x_176 = lean_apply_2(x_1, x_175, x_170); -x_177 = !lean_is_exclusive(x_176); -if (x_177 == 0) -{ -lean_object* x_178; lean_object* x_179; -x_178 = lean_ctor_get(x_176, 0); -lean_dec(x_178); -x_179 = lean_box(0); -lean_ctor_set_tag(x_176, 1); -lean_ctor_set(x_176, 0, x_179); -return x_176; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; -x_180 = lean_ctor_get(x_176, 1); -lean_inc(x_180); -lean_dec(x_176); -x_181 = lean_box(0); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_180); -return x_182; -} -} -else -{ -uint8_t x_183; -lean_dec(x_164); -lean_dec_ref(x_5); -lean_dec_ref(x_1); -x_183 = !lean_is_exclusive(x_168); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; -x_184 = lean_ctor_get(x_168, 0); -lean_dec(x_184); -x_185 = lean_ctor_get(x_169, 0); -lean_inc(x_185); -lean_dec_ref(x_169); -lean_ctor_set(x_168, 0, x_185); -return x_168; -} -else -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; -x_186 = lean_ctor_get(x_168, 1); -lean_inc(x_186); -lean_dec(x_168); -x_187 = lean_ctor_get(x_169, 0); -lean_inc(x_187); -lean_dec_ref(x_169); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_186); -return x_188; -} -} -} -else -{ -uint8_t x_189; -lean_dec(x_164); -lean_dec_ref(x_5); -lean_dec_ref(x_1); -x_189 = !lean_is_exclusive(x_168); -if (x_189 == 0) -{ -return x_168; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; -x_190 = lean_ctor_get(x_168, 0); -x_191 = lean_ctor_get(x_168, 1); -lean_inc(x_191); -lean_inc(x_190); -lean_dec(x_168); -x_192 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set(x_192, 1, x_191); -return x_192; -} -} -} -} -else -{ -uint8_t x_202; -lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_202 = !lean_is_exclusive(x_161); -if (x_202 == 0) -{ -lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; -x_203 = lean_ctor_get(x_161, 1); -x_204 = lean_ctor_get(x_161, 0); -lean_dec(x_204); -x_205 = lean_ctor_get(x_162, 1); -lean_inc(x_205); -lean_dec_ref(x_162); -x_206 = lean_array_get_size(x_205); -x_207 = lean_nat_dec_lt(x_159, x_206); -if (x_207 == 0) -{ -lean_object* x_208; -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_1); -x_208 = lean_box(0); -lean_ctor_set_tag(x_161, 1); -lean_ctor_set(x_161, 0, x_208); -return x_161; -} -else -{ -uint8_t x_209; -lean_free_object(x_161); -x_209 = lean_nat_dec_le(x_206, x_206); -if (x_209 == 0) -{ -lean_dec(x_206); -lean_dec(x_205); -lean_dec_ref(x_1); -x_72 = x_203; -goto block_75; -} -else -{ -lean_object* x_210; size_t x_211; size_t x_212; lean_object* x_213; lean_object* x_214; -x_210 = lean_box(0); -x_211 = 0; -x_212 = lean_usize_of_nat(x_206); -lean_dec(x_206); -x_213 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_205, x_211, x_212, x_210, x_1, x_203); -lean_dec(x_205); -x_214 = lean_ctor_get(x_213, 1); -lean_inc(x_214); -lean_dec_ref(x_213); -x_72 = x_214; -goto block_75; -} -} -} -else -{ -lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; -x_215 = lean_ctor_get(x_161, 1); -lean_inc(x_215); -lean_dec(x_161); -x_216 = lean_ctor_get(x_162, 1); -lean_inc(x_216); -lean_dec_ref(x_162); -x_217 = lean_array_get_size(x_216); -x_218 = lean_nat_dec_lt(x_159, x_217); -if (x_218 == 0) -{ -lean_object* x_219; lean_object* x_220; -lean_dec(x_217); -lean_dec(x_216); -lean_dec_ref(x_1); -x_219 = lean_box(0); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_215); -return x_220; -} -else -{ -uint8_t x_221; -x_221 = lean_nat_dec_le(x_217, x_217); -if (x_221 == 0) -{ -lean_dec(x_217); -lean_dec(x_216); -lean_dec_ref(x_1); -x_72 = x_215; -goto block_75; -} -else -{ -lean_object* x_222; size_t x_223; size_t x_224; lean_object* x_225; lean_object* x_226; -x_222 = lean_box(0); -x_223 = 0; -x_224 = lean_usize_of_nat(x_217); -lean_dec(x_217); -x_225 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_216, x_223, x_224, x_222, x_1, x_215); -lean_dec(x_216); -x_226 = lean_ctor_get(x_225, 1); -lean_inc(x_226); -lean_dec_ref(x_225); -x_72 = x_226; -goto block_75; -} -} -} -} -} -block_23: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0; -x_12 = lean_string_append(x_5, x_11); -x_13 = lean_string_append(x_12, x_10); -lean_dec_ref(x_10); -x_14 = 3; -x_15 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_14); -x_16 = lean_apply_2(x_9, x_15, x_8); -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set_tag(x_16, 1); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_22, 0); +lean_dec(x_24); +x_25 = lean_box(0); +lean_ctor_set_tag(x_22, 1); +lean_ctor_set(x_22, 0, x_25); return x_22; } +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_22, 1); +lean_inc(x_26); +lean_dec(x_22); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_27); +lean_ctor_set(x_28, 1, x_26); +return x_28; } -block_34: +} +block_40: { -if (x_27 == 0) +if (x_33 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1; -x_29 = l_Nat_reprFast(x_26); -x_30 = lean_string_append(x_28, x_29); -lean_dec_ref(x_29); -x_31 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2; -x_32 = lean_string_append(x_30, x_31); -x_8 = x_24; -x_9 = x_25; -x_10 = x_32; -goto block_23; +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_34 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1; +x_35 = l_Nat_reprFast(x_32); +x_36 = lean_string_append(x_34, x_35); +lean_dec_ref(x_35); +x_37 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2; +x_38 = lean_string_append(x_36, x_37); +x_14 = x_30; +x_15 = x_31; +x_16 = x_38; +goto block_29; } else { -lean_object* x_33; -lean_dec(x_26); -x_33 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3; -x_8 = x_24; -x_9 = x_25; -x_10 = x_33; -goto block_23; +lean_object* x_39; +lean_dec(x_32); +x_39 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3; +x_14 = x_30; +x_15 = x_31; +x_16 = x_39; +goto block_29; } } -block_43: +block_49: { -lean_object* x_39; uint8_t x_40; -x_39 = lean_unsigned_to_nat(0u); -x_40 = lean_nat_dec_eq(x_37, x_39); -if (x_40 == 0) +lean_object* x_45; uint8_t x_46; +x_45 = lean_unsigned_to_nat(0u); +x_46 = lean_nat_dec_eq(x_43, x_45); +if (x_46 == 0) { -lean_object* x_41; uint8_t x_42; -x_41 = lean_array_get_size(x_35); -lean_dec_ref(x_35); -x_42 = lean_nat_dec_lt(x_41, x_37); -lean_dec(x_41); -x_24 = x_38; -x_25 = x_36; -x_26 = x_37; -x_27 = x_42; -goto block_34; +lean_object* x_47; uint8_t x_48; +x_47 = lean_array_get_size(x_41); +lean_dec_ref(x_41); +x_48 = lean_nat_dec_lt(x_47, x_43); +lean_dec(x_47); +x_30 = x_42; +x_31 = x_44; +x_32 = x_43; +x_33 = x_48; +goto block_40; } else { -lean_dec_ref(x_35); -x_24 = x_38; -x_25 = x_36; -x_26 = x_37; -x_27 = x_40; -goto block_34; +lean_dec_ref(x_41); +x_30 = x_42; +x_31 = x_44; +x_32 = x_43; +x_33 = x_46; +goto block_40; } } -block_67: +block_73: { -lean_object* x_48; size_t x_49; size_t x_50; lean_object* x_51; -x_48 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0; -x_49 = lean_array_size(x_46); -x_50 = 0; -lean_inc_ref(x_44); +lean_object* x_54; size_t x_55; size_t x_56; lean_object* x_57; +x_54 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0; +x_55 = lean_array_size(x_52); +x_56 = 0; +lean_inc_ref(x_50); lean_inc_ref(x_5); -x_51 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0(x_2, x_5, x_3, x_46, x_49, x_50, x_48, x_44, x_47); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -lean_dec(x_52); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec_ref(x_51); -x_35 = x_46; -x_36 = x_44; -x_37 = x_45; -x_38 = x_54; -goto block_43; -} -else -{ -lean_object* x_55; -x_55 = lean_ctor_get(x_53, 0); -lean_inc(x_55); -lean_dec_ref(x_53); -if (lean_obj_tag(x_55) == 0) -{ -lean_object* x_56; -x_56 = lean_ctor_get(x_51, 1); -lean_inc(x_56); -lean_dec_ref(x_51); -x_35 = x_46; -x_36 = x_44; -x_37 = x_45; -x_38 = x_56; -goto block_43; -} -else -{ -uint8_t x_57; -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec_ref(x_44); -lean_dec_ref(x_5); -x_57 = !lean_is_exclusive(x_51); -if (x_57 == 0) +x_57 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0(x_4, x_2, x_3, x_5, x_7, x_8, x_52, x_55, x_56, x_54, x_50, x_53); +if (lean_obj_tag(x_57) == 0) { lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_51, 0); -lean_dec(x_58); -x_59 = lean_ctor_get(x_55, 0); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_58, 0); lean_inc(x_59); -lean_dec_ref(x_55); -lean_ctor_set(x_51, 0, x_59); -return x_51; +lean_dec(x_58); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec_ref(x_57); +x_41 = x_52; +x_42 = x_50; +x_43 = x_51; +x_44 = x_60; +goto block_49; } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_51, 1); -lean_inc(x_60); -lean_dec(x_51); -x_61 = lean_ctor_get(x_55, 0); +lean_object* x_61; +x_61 = lean_ctor_get(x_59, 0); lean_inc(x_61); -lean_dec_ref(x_55); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -return x_62; -} -} -} +lean_dec_ref(x_59); +if (lean_obj_tag(x_61) == 0) +{ +lean_object* x_62; +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +lean_dec_ref(x_57); +x_41 = x_52; +x_42 = x_50; +x_43 = x_51; +x_44 = x_62; +goto block_49; } else { uint8_t x_63; -lean_dec_ref(x_46); -lean_dec(x_45); -lean_dec_ref(x_44); +lean_dec_ref(x_52); +lean_dec(x_51); +lean_dec_ref(x_50); lean_dec_ref(x_5); -x_63 = !lean_is_exclusive(x_51); +x_63 = !lean_is_exclusive(x_57); if (x_63 == 0) { -return x_51; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_64 = lean_ctor_get(x_51, 0); -x_65 = lean_ctor_get(x_51, 1); +lean_object* x_64; lean_object* x_65; +x_64 = lean_ctor_get(x_57, 0); +lean_dec(x_64); +x_65 = lean_ctor_get(x_61, 0); lean_inc(x_65); -lean_inc(x_64); +lean_dec_ref(x_61); +lean_ctor_set(x_57, 0, x_65); +return x_57; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_57, 1); +lean_inc(x_66); +lean_dec(x_57); +x_67 = lean_ctor_get(x_61, 0); +lean_inc(x_67); +lean_dec_ref(x_61); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +} +} +} +else +{ +uint8_t x_69; +lean_dec_ref(x_52); lean_dec(x_51); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -return x_66; -} -} -} -block_71: -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_box(0); -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -return x_70; -} -block_75: -{ -lean_object* x_73; lean_object* x_74; -x_73 = lean_box(0); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_72); -return x_74; -} -block_123: -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_83 = lean_unsigned_to_nat(0u); -x_84 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; -lean_inc(x_80); -x_85 = l_Lake_GitRepo_getHeadRevisions(x_77, x_80, x_84, x_82); -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec_ref(x_85); -x_88 = lean_ctor_get(x_86, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_dec_ref(x_86); -x_90 = lean_array_get_size(x_89); -x_91 = lean_nat_dec_lt(x_83, x_90); -if (x_91 == 0) -{ -lean_dec(x_90); -lean_dec(x_89); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_87; -goto block_67; -} -else -{ -uint8_t x_92; -x_92 = lean_nat_dec_le(x_90, x_90); -if (x_92 == 0) -{ -lean_dec(x_90); -lean_dec(x_89); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_87; -goto block_67; -} -else -{ -lean_object* x_93; size_t x_94; size_t x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_box(0); -x_94 = 0; -x_95 = lean_usize_of_nat(x_90); -lean_dec(x_90); -lean_inc_ref(x_81); -x_96 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_89, x_94, x_95, x_93, x_81, x_87); -lean_dec(x_89); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -lean_dec_ref(x_96); -x_44 = x_81; -x_45 = x_80; -x_46 = x_88; -x_47 = x_97; -goto block_67; -} -} -} -else -{ -uint8_t x_98; -lean_dec(x_80); +lean_dec_ref(x_50); lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_98 = !lean_is_exclusive(x_85); -if (x_98 == 0) +x_69 = !lean_is_exclusive(x_57); +if (x_69 == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; -x_99 = lean_ctor_get(x_85, 1); -x_100 = lean_ctor_get(x_85, 0); -lean_dec(x_100); -x_101 = lean_ctor_get(x_86, 1); -lean_inc(x_101); -lean_dec_ref(x_86); -x_102 = lean_array_get_size(x_101); -x_103 = lean_nat_dec_lt(x_83, x_102); -if (x_103 == 0) +return x_57; +} +else { -lean_object* x_104; -lean_dec(x_102); -lean_dec(x_101); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_57, 0); +x_71 = lean_ctor_get(x_57, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_57); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +block_119: +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_78 = lean_ctor_get(x_6, 16); +lean_inc(x_78); +lean_dec_ref(x_6); +x_79 = lean_unsigned_to_nat(0u); +x_80 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; +lean_inc(x_78); +lean_inc_ref(x_75); +x_81 = l_Lake_GitRepo_getHeadRevisions(x_75, x_78, x_80, x_77); +x_82 = lean_ctor_get(x_81, 0); +lean_inc(x_82); +if (lean_obj_tag(x_82) == 0) +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; +x_83 = lean_ctor_get(x_81, 1); +lean_inc(x_83); lean_dec_ref(x_81); -x_104 = lean_box(0); -lean_ctor_set_tag(x_85, 1); -lean_ctor_set(x_85, 0, x_104); -return x_85; -} -else +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec_ref(x_82); +x_86 = lean_array_get_size(x_85); +x_87 = lean_nat_dec_lt(x_79, x_86); +if (x_87 == 0) { -uint8_t x_105; -lean_free_object(x_85); -x_105 = lean_nat_dec_le(x_102, x_102); -if (x_105 == 0) -{ -lean_dec(x_102); -lean_dec(x_101); -lean_dec_ref(x_81); -x_68 = x_99; -goto block_71; -} -else -{ -lean_object* x_106; size_t x_107; size_t x_108; lean_object* x_109; lean_object* x_110; -x_106 = lean_box(0); -x_107 = 0; -x_108 = lean_usize_of_nat(x_102); -lean_dec(x_102); -x_109 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_101, x_107, x_108, x_106, x_81, x_99); -lean_dec(x_101); -x_110 = lean_ctor_get(x_109, 1); -lean_inc(x_110); -lean_dec_ref(x_109); -x_68 = x_110; -goto block_71; -} -} -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -x_111 = lean_ctor_get(x_85, 1); -lean_inc(x_111); +lean_dec(x_86); lean_dec(x_85); -x_112 = lean_ctor_get(x_86, 1); -lean_inc(x_112); -lean_dec_ref(x_86); -x_113 = lean_array_get_size(x_112); -x_114 = lean_nat_dec_lt(x_83, x_113); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; -lean_dec(x_113); -lean_dec(x_112); -lean_dec_ref(x_81); -x_115 = lean_box(0); -x_116 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_116, 0, x_115); -lean_ctor_set(x_116, 1, x_111); -return x_116; +x_50 = x_76; +x_51 = x_78; +x_52 = x_84; +x_53 = x_83; +goto block_73; } else { -uint8_t x_117; -x_117 = lean_nat_dec_le(x_113, x_113); -if (x_117 == 0) +uint8_t x_88; +x_88 = lean_nat_dec_le(x_86, x_86); +if (x_88 == 0) { -lean_dec(x_113); -lean_dec(x_112); -lean_dec_ref(x_81); -x_68 = x_111; -goto block_71; +lean_dec(x_86); +lean_dec(x_85); +x_50 = x_76; +x_51 = x_78; +x_52 = x_84; +x_53 = x_83; +goto block_73; } else { -lean_object* x_118; size_t x_119; size_t x_120; lean_object* x_121; lean_object* x_122; -x_118 = lean_box(0); -x_119 = 0; -x_120 = lean_usize_of_nat(x_113); -lean_dec(x_113); -x_121 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__2(x_112, x_119, x_120, x_118, x_81, x_111); -lean_dec(x_112); -x_122 = lean_ctor_get(x_121, 1); -lean_inc(x_122); -lean_dec_ref(x_121); -x_68 = x_122; -goto block_71; +lean_object* x_89; size_t x_90; size_t x_91; lean_object* x_92; lean_object* x_93; +x_89 = lean_box(0); +x_90 = 0; +x_91 = lean_usize_of_nat(x_86); +lean_dec(x_86); +lean_inc_ref(x_76); +x_92 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_85, x_90, x_91, x_89, x_76, x_83); +lean_dec(x_85); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +lean_dec_ref(x_92); +x_50 = x_76; +x_51 = x_78; +x_52 = x_84; +x_53 = x_93; +goto block_73; } } } -} -} -block_141: -{ -if (x_124 == 0) -{ -lean_dec(x_76); -x_81 = x_1; -x_82 = x_125; -goto block_123; -} else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -x_126 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_76, x_124); -x_127 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4; -x_128 = lean_string_append(x_126, x_127); -x_129 = 2; -x_130 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set_uint8(x_130, sizeof(void*)*1, x_129); +uint8_t x_94; +lean_dec(x_78); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_94 = !lean_is_exclusive(x_81); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; +x_95 = lean_ctor_get(x_81, 1); +x_96 = lean_ctor_get(x_81, 0); +lean_dec(x_96); +x_97 = lean_ctor_get(x_82, 1); +lean_inc(x_97); +lean_dec_ref(x_82); +x_98 = lean_array_get_size(x_97); +x_99 = lean_nat_dec_lt(x_79, x_98); +if (x_99 == 0) +{ +lean_object* x_100; +lean_dec(x_98); +lean_dec(x_97); +lean_dec_ref(x_76); +x_100 = lean_box(0); +lean_ctor_set_tag(x_81, 1); +lean_ctor_set(x_81, 0, x_100); +return x_81; +} +else +{ +uint8_t x_101; +lean_free_object(x_81); +x_101 = lean_nat_dec_le(x_98, x_98); +if (x_101 == 0) +{ +lean_dec(x_98); +lean_dec(x_97); +lean_dec_ref(x_76); +x_10 = x_95; +goto block_13; +} +else +{ +lean_object* x_102; size_t x_103; size_t x_104; lean_object* x_105; lean_object* x_106; +x_102 = lean_box(0); +x_103 = 0; +x_104 = lean_usize_of_nat(x_98); +lean_dec(x_98); +x_105 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_97, x_103, x_104, x_102, x_76, x_95); +lean_dec(x_97); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec_ref(x_105); +x_10 = x_106; +goto block_13; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_107 = lean_ctor_get(x_81, 1); +lean_inc(x_107); +lean_dec(x_81); +x_108 = lean_ctor_get(x_82, 1); +lean_inc(x_108); +lean_dec_ref(x_82); +x_109 = lean_array_get_size(x_108); +x_110 = lean_nat_dec_lt(x_79, x_109); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_109); +lean_dec(x_108); +lean_dec_ref(x_76); +x_111 = lean_box(0); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_107); +return x_112; +} +else +{ +uint8_t x_113; +x_113 = lean_nat_dec_le(x_109, x_109); +if (x_113 == 0) +{ +lean_dec(x_109); +lean_dec(x_108); +lean_dec_ref(x_76); +x_10 = x_107; +goto block_13; +} +else +{ +lean_object* x_114; size_t x_115; size_t x_116; lean_object* x_117; lean_object* x_118; +x_114 = lean_box(0); +x_115 = 0; +x_116 = lean_usize_of_nat(x_109); +lean_dec(x_109); +x_117 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_108, x_115, x_116, x_114, x_76, x_107); +lean_dec(x_108); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec_ref(x_117); +x_10 = x_118; +goto block_13; +} +} +} +} +} +block_139: +{ +if (x_120 == 0) +{ +x_76 = x_1; +x_77 = x_121; +goto block_119; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; +lean_inc(x_74); +x_122 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_74, x_120); +x_123 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4; +x_124 = lean_string_append(x_122, x_123); +x_125 = 2; +x_126 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_126, 0, x_124); +lean_ctor_set_uint8(x_126, sizeof(void*)*1, x_125); lean_inc_ref(x_1); -x_131 = lean_apply_2(x_1, x_130, x_125); -x_132 = !lean_is_exclusive(x_131); -if (x_132 == 0) +x_127 = lean_apply_2(x_1, x_126, x_121); +x_128 = !lean_is_exclusive(x_127); +if (x_128 == 0) { -lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_133 = lean_ctor_get(x_131, 1); -x_134 = lean_ctor_get(x_131, 0); -lean_dec(x_134); -x_135 = l_Lake_instOrdLogLevel_ord(x_129, x_78); -if (x_135 == 2) +lean_object* x_129; lean_object* x_130; uint8_t x_131; uint8_t x_132; +x_129 = lean_ctor_get(x_127, 1); +x_130 = lean_ctor_get(x_127, 0); +lean_dec(x_130); +x_131 = lean_ctor_get_uint8(x_6, sizeof(void*)*17 + 8); +x_132 = l_Lake_instOrdLogLevel_ord(x_125, x_131); +if (x_132 == 2) { -lean_free_object(x_131); -x_81 = x_1; -x_82 = x_133; -goto block_123; +lean_free_object(x_127); +x_76 = x_1; +x_77 = x_129; +goto block_119; } else { -lean_object* x_136; -lean_dec(x_80); -lean_dec_ref(x_77); +lean_object* x_133; +lean_dec_ref(x_6); lean_dec_ref(x_5); +lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_136 = lean_box(0); -lean_ctor_set_tag(x_131, 1); -lean_ctor_set(x_131, 0, x_136); -return x_131; +x_133 = lean_box(0); +lean_ctor_set_tag(x_127, 1); +lean_ctor_set(x_127, 0, x_133); +return x_127; } } else { -lean_object* x_137; uint8_t x_138; -x_137 = lean_ctor_get(x_131, 1); -lean_inc(x_137); -lean_dec(x_131); -x_138 = l_Lake_instOrdLogLevel_ord(x_129, x_78); -if (x_138 == 2) +lean_object* x_134; uint8_t x_135; uint8_t x_136; +x_134 = lean_ctor_get(x_127, 1); +lean_inc(x_134); +lean_dec(x_127); +x_135 = lean_ctor_get_uint8(x_6, sizeof(void*)*17 + 8); +x_136 = l_Lake_instOrdLogLevel_ord(x_125, x_135); +if (x_136 == 2) { -x_81 = x_1; -x_82 = x_137; -goto block_123; +x_76 = x_1; +x_77 = x_134; +goto block_119; } else { -lean_object* x_139; lean_object* x_140; -lean_dec(x_80); -lean_dec_ref(x_77); +lean_object* x_137; lean_object* x_138; +lean_dec_ref(x_6); lean_dec_ref(x_5); +lean_dec_ref(x_4); lean_dec_ref(x_3); lean_dec_ref(x_2); lean_dec_ref(x_1); -x_139 = lean_box(0); -x_140 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_137); -return x_140; +x_137 = lean_box(0); +x_138 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_134); +return x_138; +} +} +} +} +block_152: +{ +uint8_t x_145; +x_145 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6; +if (x_145 == 0) +{ +x_120 = x_144; +x_121 = x_142; +goto block_139; +} +else +{ +uint8_t x_146; +x_146 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7; +if (x_146 == 0) +{ +x_120 = x_144; +x_121 = x_142; +goto block_139; +} +else +{ +lean_object* x_147; size_t x_148; size_t x_149; lean_object* x_150; lean_object* x_151; +x_147 = lean_box(0); +x_148 = 0; +x_149 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8; +lean_inc_ref(x_1); +x_150 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__2(x_143, x_148, x_149, x_147, x_1, x_142); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec_ref(x_150); +x_120 = x_144; +x_121 = x_151; +goto block_139; } } } } } +LEAN_EXPORT uint8_t l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0() { +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; uint8_t x_7; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_unbox(x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_unbox(x_8); +if (x_9 == 0) +{ +uint8_t x_10; +x_10 = 1; +return x_10; +} +else +{ +uint8_t x_11; +x_11 = lean_unbox(x_6); +return x_11; +} +} +else +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_2, 0); +x_13 = lean_unbox(x_12); +return x_13; +} +} +} +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0() { _start: { lean_object* x_1; @@ -20357,186 +22843,234 @@ x_1 = lean_mk_string_unchecked(": skipping non-Reservoir dependency`", 36, 36); return x_1; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_9 = lean_ctor_get(x_6, 0); -x_10 = lean_ctor_get(x_6, 8); -x_11 = lean_string_utf8_byte_size(x_10); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_eq(x_11, x_12); -lean_dec(x_11); -if (x_13 == 0) +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_11 = lean_ctor_get(x_8, 0); +x_12 = lean_ctor_get(x_8, 4); +x_13 = lean_ctor_get(x_8, 8); +x_14 = lean_string_utf8_byte_size(x_13); +x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_nat_dec_eq(x_14, x_15); +lean_dec(x_14); +if (x_16 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_14 = l___private_Lake_CLI_Main_0__Lake_parseScriptSpec___closed__0; -lean_inc_ref(x_10); -x_15 = lean_string_append(x_10, x_14); -lean_inc(x_9); -x_16 = l_Lean_Name_toString(x_9, x_13); -x_17 = lean_string_append(x_15, x_16); -lean_dec_ref(x_16); +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_48 = lean_ctor_get(x_12, 1); +x_49 = lean_ctor_get_uint8(x_12, sizeof(void*)*26); +x_53 = lean_ctor_get(x_48, 10); +x_54 = lean_box(x_5); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_54); +x_56 = l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(x_53, x_55); +lean_dec_ref(x_55); +if (x_56 == 0) +{ +x_50 = x_6; +goto block_52; +} +else +{ +lean_object* x_57; +lean_dec_ref(x_6); +x_57 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_50 = x_57; +goto block_52; +} +block_52: +{ +if (x_49 == 0) +{ +x_17 = x_50; +x_18 = x_4; +goto block_47; +} +else +{ +lean_object* x_51; +lean_dec_ref(x_4); +x_51 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_17 = x_50; +x_18 = x_51; +goto block_47; +} +} +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_inc(x_11); +lean_dec_ref(x_8); +lean_dec_ref(x_6); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_58 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_11, x_5); +x_59 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0; +x_60 = lean_string_append(x_58, x_59); +x_61 = 1; +x_62 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_62, 0, x_60); +lean_ctor_set_uint8(x_62, sizeof(void*)*1, x_61); +x_63 = lean_apply_2(x_9, x_62, x_10); +x_64 = !lean_is_exclusive(x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +x_65 = lean_ctor_get(x_63, 0); +lean_dec(x_65); +x_66 = lean_box(x_7); +lean_ctor_set(x_63, 0, x_66); +return x_63; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_63, 1); +lean_inc(x_67); +lean_dec(x_63); +x_68 = lean_box(x_7); +x_69 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_69, 0, x_68); +lean_ctor_set(x_69, 1, x_67); +return x_69; +} +} +block_47: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = l___private_Lake_CLI_Main_0__Lake_parseScriptSpec___closed__0; +lean_inc_ref(x_13); +x_20 = lean_string_append(x_13, x_19); +lean_inc(x_11); +x_21 = l_Lean_Name_toString(x_11, x_16); +x_22 = lean_string_append(x_20, x_21); +lean_dec_ref(x_21); lean_inc_ref(x_3); -lean_inc_ref(x_17); -lean_inc_ref(x_6); +lean_inc_ref(x_22); +lean_inc_ref(x_8); lean_inc_ref(x_2); lean_inc_ref(x_1); -lean_inc_ref(x_7); -x_18 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(x_7, x_1, x_2, x_6, x_17, x_3, x_8); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); +lean_inc_ref(x_9); +x_23 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__0(x_9, x_1, x_2, x_8, x_22, x_3, x_17, x_18, x_10); lean_dec_ref(x_18); -x_21 = lean_ctor_get_uint8(x_3, sizeof(void*)*15 + 12); -lean_dec_ref(x_3); -x_22 = l_Lake_Package_cacheScope(x_6); -x_23 = l_Lake_CacheService_downloadOutputArtifacts(x_19, x_1, x_17, x_22, x_2, x_21, x_7, x_20); -lean_dec_ref(x_22); +lean_dec_ref(x_17); if (lean_obj_tag(x_23) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) +lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec_ref(x_23); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 12); +lean_dec_ref(x_3); +x_27 = l_Lake_Package_cacheScope(x_8); +x_28 = l_Lake_CacheService_downloadOutputArtifacts(x_24, x_1, x_2, x_27, x_22, x_26, x_9, x_25); +lean_dec_ref(x_27); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -x_26 = lean_box(x_5); -lean_ctor_set(x_23, 0, x_26); -return x_23; +uint8_t x_29; +x_29 = !lean_is_exclusive(x_28); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 0); +lean_dec(x_30); +x_31 = lean_box(x_7); +lean_ctor_set(x_28, 0, x_31); +return x_28; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_23, 1); -lean_inc(x_27); -lean_dec(x_23); -x_28 = lean_box(x_5); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -return x_29; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +x_33 = lean_box(x_7); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; } } else { -uint8_t x_30; -x_30 = !lean_is_exclusive(x_23); -if (x_30 == 0) +uint8_t x_35; +x_35 = !lean_is_exclusive(x_28); +if (x_35 == 0) { -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_23, 0); -lean_dec(x_31); -x_32 = lean_box(x_13); +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_28, 0); +lean_dec(x_36); +x_37 = lean_box(x_16); +lean_ctor_set_tag(x_28, 0); +lean_ctor_set(x_28, 0, x_37); +return x_28; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_28, 1); +lean_inc(x_38); +lean_dec(x_28); +x_39 = lean_box(x_16); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_38); +return x_40; +} +} +} +else +{ +uint8_t x_41; +lean_dec_ref(x_22); +lean_dec_ref(x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_41 = !lean_is_exclusive(x_23); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; +x_42 = lean_ctor_get(x_23, 0); +lean_dec(x_42); +x_43 = lean_box(x_16); lean_ctor_set_tag(x_23, 0); -lean_ctor_set(x_23, 0, x_32); +lean_ctor_set(x_23, 0, x_43); return x_23; } else { -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_23, 1); -lean_inc(x_33); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_23, 1); +lean_inc(x_44); lean_dec(x_23); -x_34 = lean_box(x_13); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; -} -} -} -else -{ -uint8_t x_36; -lean_dec_ref(x_17); -lean_dec_ref(x_7); -lean_dec_ref(x_6); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_36 = !lean_is_exclusive(x_18); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_18, 0); -lean_dec(x_37); -x_38 = lean_box(x_13); -lean_ctor_set_tag(x_18, 0); -lean_ctor_set(x_18, 0, x_38); -return x_18; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_18, 1); -lean_inc(x_39); -lean_dec(x_18); -x_40 = lean_box(x_13); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -return x_41; -} -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -lean_inc(x_9); -lean_dec_ref(x_6); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_42 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_9, x_4); -x_43 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0; -x_44 = lean_string_append(x_42, x_43); -x_45 = 1; -x_46 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_45); -x_47 = lean_apply_2(x_7, x_46, x_8); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -x_50 = lean_box(x_5); -lean_ctor_set(x_47, 0, x_50); -return x_47; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_box(x_5); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +x_45 = lean_box(x_16); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { _start: { size_t x_9; size_t x_10; lean_object* x_11; x_9 = 1; x_10 = lean_usize_add(x_1, x_9); -x_11 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_2, x_3, x_4, x_10, x_5, x_6, x_7, x_8); +x_11 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(x_2, x_3, x_4, x_10, x_5, x_6, x_7, x_8); return x_11; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; @@ -20550,7 +23084,7 @@ x_11 = lean_box_usize(x_4); x_12 = lean_box_usize(x_5); lean_inc_ref(x_3); lean_inc_ref(x_2); -x_13 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0___boxed), 8, 5); +x_13 = lean_alloc_closure((void*)(l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0___boxed), 8, 5); lean_closure_set(x_13, 0, x_11); lean_closure_set(x_13, 1, x_1); lean_closure_set(x_13, 2, x_2); @@ -20580,7 +23114,7 @@ return x_21; } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; @@ -20622,12 +23156,510 @@ else size_t x_16; size_t x_17; lean_object* x_18; x_16 = 1; x_17 = lean_usize_of_nat(x_2); -x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_5, x_6, x_4, x_16, x_17, x_3, x_7, x_8); +x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(x_5, x_6, x_4, x_16, x_17, x_3, x_7, x_8); return x_18; } } } } +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; +x_8 = lean_usize_dec_eq(x_3, x_4); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_uget(x_2, x_3); +lean_inc_ref(x_1); +lean_inc_ref(x_6); +x_10 = lean_apply_4(x_1, x_5, x_9, x_6, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; size_t x_13; size_t x_14; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec_ref(x_10); +x_13 = 1; +x_14 = lean_usize_add(x_3, x_13); +x_3 = x_14; +x_5 = x_11; +x_7 = x_12; +goto _start; +} +else +{ +lean_dec_ref(x_6); +lean_dec_ref(x_1); +return x_10; +} +} +else +{ +lean_object* x_16; +lean_dec_ref(x_6); +lean_dec_ref(x_1); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_5); +lean_ctor_set(x_16, 1, x_7); +return x_16; +} +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("to use `cache get` with a mappings file, `--scope` or `--repo` must be set", 74, 74); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0; +x_2 = 3; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_13; +x_13 = lean_ctor_get(x_1, 12); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_dec_ref(x_6); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_14 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1; +x_15 = lean_apply_2(x_7, x_14, x_8); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set_tag(x_15, 1); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_32; lean_object* x_74; +x_22 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 12); +lean_dec_ref(x_1); +x_23 = lean_ctor_get(x_13, 0); +lean_inc(x_23); +lean_dec_ref(x_13); +x_24 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_24); +x_25 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_25); +lean_dec_ref(x_2); +x_74 = lean_ctor_get(x_25, 9); +if (lean_obj_tag(x_74) == 0) +{ +lean_object* x_75; uint8_t x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; +x_75 = lean_ctor_get(x_25, 3); +lean_inc_ref(x_75); +lean_dec_ref(x_25); +x_76 = 0; +x_77 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_78 = 1; +x_79 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_77); +lean_ctor_set(x_79, 2, x_77); +lean_ctor_set(x_79, 3, x_75); +lean_ctor_set_uint8(x_79, sizeof(void*)*4, x_78); +lean_ctor_set_uint8(x_79, sizeof(void*)*4 + 1, x_76); +x_32 = x_79; +goto block_73; +} +else +{ +lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; +lean_inc_ref(x_74); +lean_dec_ref(x_25); +x_80 = lean_ctor_get(x_74, 0); +lean_inc(x_80); +lean_dec_ref(x_74); +x_81 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_82 = 0; +x_83 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_80); +lean_ctor_set(x_83, 2, x_81); +lean_ctor_set(x_83, 3, x_81); +lean_ctor_set_uint8(x_83, sizeof(void*)*4, x_82); +lean_ctor_set_uint8(x_83, sizeof(void*)*4 + 1, x_82); +x_32 = x_83; +goto block_73; +} +block_31: +{ +lean_object* x_29; lean_object* x_30; +x_29 = l_Lake_Package_cacheScope(x_24); +x_30 = l_Lake_CacheService_downloadOutputArtifacts(x_27, x_3, x_26, x_29, x_23, x_22, x_7, x_28); +lean_dec_ref(x_29); +return x_30; +} +block_73: +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_unsigned_to_nat(0u); +x_34 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg___closed__0; +x_35 = l_Lake_CacheMap_load(x_4, x_34, x_8); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +lean_dec_ref(x_6); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec_ref(x_35); +x_38 = lean_ctor_get(x_36, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_36, 1); +lean_inc(x_39); +lean_dec_ref(x_36); +x_40 = lean_array_get_size(x_39); +x_41 = lean_nat_dec_lt(x_33, x_40); +if (x_41 == 0) +{ +lean_dec(x_40); +lean_dec(x_39); +lean_dec_ref(x_5); +x_26 = x_32; +x_27 = x_38; +x_28 = x_37; +goto block_31; +} +else +{ +uint8_t x_42; +x_42 = lean_nat_dec_le(x_40, x_40); +if (x_42 == 0) +{ +lean_dec(x_40); +lean_dec(x_39); +lean_dec_ref(x_5); +x_26 = x_32; +x_27 = x_38; +x_28 = x_37; +goto block_31; +} +else +{ +lean_object* x_43; size_t x_44; size_t x_45; lean_object* x_46; +x_43 = lean_box(0); +x_44 = 0; +x_45 = lean_usize_of_nat(x_40); +lean_dec(x_40); +lean_inc_ref(x_7); +x_46 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_5, x_39, x_44, x_45, x_43, x_7, x_37); +lean_dec(x_39); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +lean_dec_ref(x_46); +x_26 = x_32; +x_27 = x_38; +x_28 = x_47; +goto block_31; +} +else +{ +lean_dec(x_38); +lean_dec_ref(x_32); +lean_dec_ref(x_24); +lean_dec(x_23); +lean_dec_ref(x_7); +lean_dec_ref(x_3); +return x_46; +} +} +} +} +else +{ +uint8_t x_48; +lean_dec_ref(x_32); +lean_dec_ref(x_24); +lean_dec(x_23); +lean_dec_ref(x_5); +lean_dec_ref(x_3); +x_48 = !lean_is_exclusive(x_35); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; +x_49 = lean_ctor_get(x_35, 1); +x_50 = lean_ctor_get(x_35, 0); +lean_dec(x_50); +x_51 = lean_ctor_get(x_36, 1); +lean_inc(x_51); +lean_dec_ref(x_36); +x_52 = lean_array_get_size(x_51); +x_53 = lean_nat_dec_lt(x_33, x_52); +if (x_53 == 0) +{ +lean_object* x_54; +lean_dec(x_52); +lean_dec(x_51); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_54 = lean_box(0); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_54); +return x_35; +} +else +{ +uint8_t x_55; +lean_free_object(x_35); +x_55 = lean_nat_dec_le(x_52, x_52); +if (x_55 == 0) +{ +lean_dec(x_52); +lean_dec(x_51); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_9 = x_49; +goto block_12; +} +else +{ +lean_object* x_56; size_t x_57; size_t x_58; lean_object* x_59; +x_56 = lean_box(0); +x_57 = 0; +x_58 = lean_usize_of_nat(x_52); +lean_dec(x_52); +x_59 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_6, x_51, x_57, x_58, x_56, x_7, x_49); +lean_dec(x_51); +if (lean_obj_tag(x_59) == 0) +{ +lean_object* x_60; +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec_ref(x_59); +x_9 = x_60; +goto block_12; +} +else +{ +return x_59; +} +} +} +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_61 = lean_ctor_get(x_35, 1); +lean_inc(x_61); +lean_dec(x_35); +x_62 = lean_ctor_get(x_36, 1); +lean_inc(x_62); +lean_dec_ref(x_36); +x_63 = lean_array_get_size(x_62); +x_64 = lean_nat_dec_lt(x_33, x_63); +if (x_64 == 0) +{ +lean_object* x_65; lean_object* x_66; +lean_dec(x_63); +lean_dec(x_62); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_65 = lean_box(0); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_61); +return x_66; +} +else +{ +uint8_t x_67; +x_67 = lean_nat_dec_le(x_63, x_63); +if (x_67 == 0) +{ +lean_dec(x_63); +lean_dec(x_62); +lean_dec_ref(x_7); +lean_dec_ref(x_6); +x_9 = x_61; +goto block_12; +} +else +{ +lean_object* x_68; size_t x_69; size_t x_70; lean_object* x_71; +x_68 = lean_box(0); +x_69 = 0; +x_70 = lean_usize_of_nat(x_63); +lean_dec(x_63); +x_71 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_6, x_62, x_69, x_70, x_68, x_7, x_61); +lean_dec(x_62); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 1); +lean_inc(x_72); +lean_dec_ref(x_71); +x_9 = x_72; +goto block_12; +} +else +{ +return x_71; +} +} +} +} +} +} +} +block_12: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_8, x_9); +return x_10; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("the `--platform` and `--toolchain` options do nothing for `cache get` with a mappings file", 90, 90); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1() { +_start: +{ +lean_object* x_1; uint8_t x_2; lean_object* x_3; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0; +x_2 = 2; +x_3 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +if (x_1 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_box(0); +x_7 = lean_apply_3(x_2, x_6, x_4, x_5); +return x_7; +} +else +{ +uint8_t x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_8 = 2; +x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1; +lean_inc_ref(x_4); +x_10 = lean_apply_2(x_4, x_9, x_5); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_10, 1); +x_13 = lean_ctor_get(x_10, 0); +lean_dec(x_13); +x_14 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_15 = l_Lake_instOrdLogLevel_ord(x_8, x_14); +if (x_15 == 2) +{ +lean_object* x_16; lean_object* x_17; +lean_free_object(x_10); +x_16 = lean_box(0); +x_17 = lean_apply_3(x_2, x_16, x_4, x_12); +return x_17; +} +else +{ +lean_object* x_18; +lean_dec_ref(x_4); +lean_dec_ref(x_2); +x_18 = lean_box(0); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_18); +return x_10; +} +} +else +{ +lean_object* x_19; uint8_t x_20; uint8_t x_21; +x_19 = lean_ctor_get(x_10, 1); +lean_inc(x_19); +lean_dec(x_10); +x_20 = lean_ctor_get_uint8(x_3, sizeof(void*)*17 + 8); +x_21 = l_Lake_instOrdLogLevel_ord(x_8, x_20); +if (x_21 == 2) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_box(0); +x_23 = lean_apply_3(x_2, x_22, x_4, x_19); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; +lean_dec_ref(x_4); +lean_dec_ref(x_2); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_19); +return x_25; +} +} +} +} +} LEAN_EXPORT lean_object* l_Lake_collectArgs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -20815,7 +23847,7 @@ return x_40; } } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -20865,7 +23897,7 @@ return x_19; } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -20903,7 +23935,7 @@ else size_t x_15; size_t x_16; lean_object* x_17; x_15 = 1; x_16 = lean_usize_of_nat(x_2); -x_17 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(x_5, x_4, x_15, x_16, x_3, x_6, x_7); +x_17 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(x_5, x_4, x_15, x_16, x_3, x_6, x_7); return x_17; } } @@ -20913,15 +23945,23 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("to use `cache get` with a custom endpoint, the `--scope` option must be set", 75, 75); +x_1 = lean_mk_string_unchecked(": outputs not found for revision ", 33, 33); return x_1; } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("to use `cache get` with a custom endpoint, the `--scope` or `--repo` option must be set", 87, 87); +return x_1; +} +} +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__2() { +_start: +{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1; x_2 = 3; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -20929,7 +23969,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__2() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3() { _start: { lean_object* x_1; @@ -20937,11 +23977,11 @@ x_1 = lean_mk_string_unchecked("failed to download artifacts for some dependenci return x_1; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3() { +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__2; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3; x_2 = 3; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -20949,35 +23989,19 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("/artifacts", 10, 10); -return x_1; -} -} static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("/outputs", 8, 8); +x_1 = lean_mk_string_unchecked("to use `cache get` with `--scope`, a custom endpoint must be set (not Reservoir); if you instead want to download artifacts for a fork of the package, use `--repo`", 163, 163); return x_1; } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__6() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("to use `cache get` with a mappings file, `--scope` must be set", 62, 62); -return x_1; -} -} -static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__7() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__6; +x_1 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__5; x_2 = 3; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -20985,6 +24009,14 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = l_System_Platform_target; +return x_1; +} +} static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1() { _start: { @@ -20994,1138 +24026,1302 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_5; +lean_object* x_6; lean_object* x_7; lean_object* x_11; lean_inc_ref(x_1); -x_5 = l_Lake_LakeOptions_mkLoadConfig(x_1, x_4); -if (lean_obj_tag(x_5) == 0) +x_11 = l_Lake_LakeOptions_mkLoadConfig(x_1, x_5); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec_ref(x_5); -x_8 = lean_alloc_closure((void*)(l_Lake_loadWorkspace), 3, 1); -lean_closure_set(x_8, 0, x_6); -x_9 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_8, x_3, x_7); -if (lean_obj_tag(x_9) == 0) +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec_ref(x_11); +x_14 = lean_alloc_closure((void*)(l_Lake_loadWorkspace), 3, 1); +lean_closure_set(x_14, 0, x_12); +x_15 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_14, x_4, x_13); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -lean_dec(x_2); -lean_dec_ref(x_1); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = !lean_is_exclusive(x_10); -if (x_13 == 0) -{ -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); -lean_dec(x_10); -x_15 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_9, 0, x_15); -return x_9; -} -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_ctor_get(x_9, 1); +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_9); -x_17 = lean_ctor_get(x_10, 0); -lean_inc(x_17); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - x_18 = x_10; -} else { - lean_dec_ref(x_10); - x_18 = lean_box(0); -} -if (lean_is_scalar(x_18)) { - x_19 = lean_alloc_ctor(0, 1, 0); -} else { - x_19 = x_18; -} -lean_ctor_set(x_19, 0, x_17); -x_20 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_16); -return x_20; -} -} -else +if (lean_obj_tag(x_16) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; -x_21 = lean_ctor_get(x_10, 0); -lean_inc(x_21); -lean_dec_ref(x_10); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_9, 1); -lean_inc(x_23); -lean_dec_ref(x_9); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec(x_21); -x_25 = lean_ctor_get(x_22, 0); -lean_inc_ref(x_25); -x_26 = lean_ctor_get(x_22, 1); -lean_inc_ref(x_26); -x_27 = lean_ctor_get(x_22, 2); -lean_inc_ref(x_27); -x_28 = lean_ctor_get(x_22, 4); -lean_inc_ref(x_28); -lean_dec(x_22); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_60 = lean_ctor_get(x_26, 3); -lean_inc_ref(x_60); -x_61 = lean_ctor_get(x_26, 9); -lean_inc(x_61); -x_62 = lean_ctor_get(x_26, 10); -lean_inc(x_62); -lean_dec_ref(x_26); -if (lean_obj_tag(x_61) == 0) -{ -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -lean_inc_ref(x_60); -x_178 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_178, 0, x_60); -x_179 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_177); -lean_ctor_set(x_179, 2, x_177); -lean_ctor_set(x_179, 3, x_178); -x_63 = x_179; -x_64 = x_24; -x_65 = x_23; -goto block_176; -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; uint8_t x_183; uint8_t x_184; lean_object* x_185; uint8_t x_186; lean_object* x_187; lean_object* x_188; uint8_t x_189; -lean_dec_ref(x_60); -lean_dec_ref(x_28); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -lean_dec(x_24); -lean_dec_ref(x_1); -x_180 = lean_ctor_get(x_62, 0); -lean_inc(x_180); -lean_dec_ref(x_62); -x_181 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_182 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig(x_181, x_180); -lean_dec(x_180); -x_183 = 1; -x_184 = 0; -x_185 = lean_box(1); -x_186 = 3; -x_187 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_187, 0, x_182); -lean_ctor_set_uint8(x_187, sizeof(void*)*1, x_186); -x_188 = l_Lake_OutStream_logEntry(x_185, x_187, x_183, x_184, x_23); -lean_dec_ref(x_187); -x_189 = !lean_is_exclusive(x_188); -if (x_189 == 0) -{ -lean_object* x_190; lean_object* x_191; -x_190 = lean_ctor_get(x_188, 0); -lean_dec(x_190); -x_191 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -lean_ctor_set_tag(x_188, 1); -lean_ctor_set(x_188, 0, x_191); -return x_188; -} -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_192 = lean_ctor_get(x_188, 1); -lean_inc(x_192); -lean_dec(x_188); -x_193 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -return x_194; -} -} -} -else -{ -if (lean_obj_tag(x_62) == 0) -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; lean_object* x_200; uint8_t x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -lean_dec_ref(x_60); -lean_dec_ref(x_28); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -lean_dec(x_24); -lean_dec_ref(x_1); -x_195 = lean_ctor_get(x_61, 0); -lean_inc(x_195); -lean_dec_ref(x_61); -x_196 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_197 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig(x_195, x_196); -lean_dec(x_195); -x_198 = 1; -x_199 = 0; -x_200 = lean_box(1); -x_201 = 3; -x_202 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_202, 0, x_197); -lean_ctor_set_uint8(x_202, sizeof(void*)*1, x_201); -x_203 = l_Lake_OutStream_logEntry(x_200, x_202, x_198, x_199, x_23); -lean_dec_ref(x_202); -x_204 = !lean_is_exclusive(x_203); -if (x_204 == 0) -{ -lean_object* x_205; lean_object* x_206; -x_205 = lean_ctor_get(x_203, 0); -lean_dec(x_205); -x_206 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -lean_ctor_set_tag(x_203, 1); -lean_ctor_set(x_203, 0, x_206); -return x_203; -} -else -{ -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_203, 1); -lean_inc(x_207); -lean_dec(x_203); -x_208 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_207); -return x_209; -} -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_210 = lean_ctor_get(x_61, 0); -lean_inc(x_210); -lean_dec_ref(x_61); -x_211 = lean_ctor_get(x_62, 0); -lean_inc(x_211); -lean_dec_ref(x_62); -x_212 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_213 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_210); -lean_ctor_set(x_213, 2, x_211); -lean_ctor_set(x_213, 3, x_2); -x_63 = x_213; -x_64 = x_24; -x_65 = x_23; -goto block_176; -} -} -block_176: -{ -lean_object* x_66; -x_66 = lean_ctor_get(x_1, 12); -if (lean_obj_tag(x_66) == 0) -{ -lean_object* x_67; -lean_dec_ref(x_60); -lean_dec_ref(x_25); -x_67 = lean_ctor_get(x_63, 3); -if (lean_obj_tag(x_67) == 0) -{ -uint8_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; -lean_dec_ref(x_64); -lean_dec_ref(x_63); -lean_dec_ref(x_28); -lean_dec_ref(x_27); -lean_dec_ref(x_1); -x_68 = 1; -x_69 = 0; -x_70 = lean_box(1); -x_71 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1; -x_72 = l_Lake_OutStream_logEntry(x_70, x_71, x_68, x_69, x_65); -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -x_75 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -lean_ctor_set_tag(x_72, 1); -lean_ctor_set(x_72, 0, x_75); -return x_72; -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_76 = lean_ctor_get(x_72, 1); -lean_inc(x_76); -lean_dec(x_72); -x_77 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_76); -return x_78; -} -} -else -{ -uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_79 = 1; -x_80 = lean_box(x_79); -x_81 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___boxed), 8, 4); -lean_closure_set(x_81, 0, x_27); -lean_closure_set(x_81, 1, x_63); -lean_closure_set(x_81, 2, x_1); -lean_closure_set(x_81, 3, x_80); -x_82 = lean_unsigned_to_nat(1u); -x_83 = lean_array_get_size(x_28); -x_84 = lean_box(x_79); -x_85 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed), 7, 5); -lean_closure_set(x_85, 0, x_82); -lean_closure_set(x_85, 1, x_83); -lean_closure_set(x_85, 2, x_84); -lean_closure_set(x_85, 3, x_28); -lean_closure_set(x_85, 4, x_81); -x_86 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_85, x_64, x_65); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -if (lean_obj_tag(x_87) == 0) -{ -uint8_t x_88; -x_88 = !lean_is_exclusive(x_86); -if (x_88 == 0) -{ -lean_object* x_89; uint8_t x_90; -x_89 = lean_ctor_get(x_86, 0); -lean_dec(x_89); -x_90 = !lean_is_exclusive(x_87); -if (x_90 == 0) -{ -return x_86; -} -else -{ -lean_object* x_91; lean_object* x_92; -x_91 = lean_ctor_get(x_87, 0); -lean_inc(x_91); -lean_dec(x_87); -x_92 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_86, 0, x_92); -return x_86; -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_ctor_get(x_86, 1); -lean_inc(x_93); -lean_dec(x_86); -x_94 = lean_ctor_get(x_87, 0); -lean_inc(x_94); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - x_95 = x_87; -} else { - lean_dec_ref(x_87); - x_95 = lean_box(0); -} -if (lean_is_scalar(x_95)) { - x_96 = lean_alloc_ctor(0, 1, 0); -} else { - x_96 = x_95; -} -lean_ctor_set(x_96, 0, x_94); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_93); -return x_97; -} -} -else -{ -uint8_t x_98; -x_98 = !lean_is_exclusive(x_87); -if (x_98 == 0) -{ -lean_object* x_99; lean_object* x_100; uint8_t x_101; -x_99 = lean_ctor_get(x_87, 0); -x_100 = lean_ctor_get(x_99, 0); -x_101 = lean_unbox(x_100); -if (x_101 == 0) -{ -lean_object* x_102; uint8_t x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; -lean_free_object(x_87); -lean_dec(x_99); -x_102 = lean_ctor_get(x_86, 1); -lean_inc(x_102); -lean_dec_ref(x_86); -x_103 = 1; -x_104 = 0; -x_105 = lean_box(1); -x_106 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3; -x_107 = l_Lake_OutStream_logEntry(x_105, x_106, x_103, x_104, x_102); -x_108 = !lean_is_exclusive(x_107); -if (x_108 == 0) -{ -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_107, 0); -lean_dec(x_109); -x_110 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -lean_ctor_set_tag(x_107, 1); -lean_ctor_set(x_107, 0, x_110); -return x_107; -} -else -{ -lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_111 = lean_ctor_get(x_107, 1); -lean_inc(x_111); -lean_dec(x_107); -x_112 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -x_113 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_111); -return x_113; -} -} -else -{ -uint8_t x_114; -x_114 = !lean_is_exclusive(x_86); -if (x_114 == 0) -{ -lean_object* x_115; uint8_t x_116; -x_115 = lean_ctor_get(x_86, 0); -lean_dec(x_115); -x_116 = !lean_is_exclusive(x_99); -if (x_116 == 0) -{ -lean_object* x_117; lean_object* x_118; -x_117 = lean_ctor_get(x_99, 0); -lean_dec(x_117); -x_118 = lean_box(0); -lean_ctor_set(x_99, 0, x_118); -return x_86; -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_119 = lean_ctor_get(x_99, 1); -lean_inc(x_119); -lean_dec(x_99); -x_120 = lean_box(0); -x_121 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_121, 0, x_120); -lean_ctor_set(x_121, 1, x_119); -lean_ctor_set(x_87, 0, x_121); -return x_86; -} -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_122 = lean_ctor_get(x_86, 1); -lean_inc(x_122); -lean_dec(x_86); -x_123 = lean_ctor_get(x_99, 1); -lean_inc(x_123); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_124 = x_99; -} else { - lean_dec_ref(x_99); - x_124 = lean_box(0); -} -x_125 = lean_box(0); -if (lean_is_scalar(x_124)) { - x_126 = lean_alloc_ctor(0, 2, 0); -} else { - x_126 = x_124; -} -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_123); -lean_ctor_set(x_87, 0, x_126); -x_127 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_127, 0, x_87); -lean_ctor_set(x_127, 1, x_122); -return x_127; -} -} -} -else -{ -lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_128 = lean_ctor_get(x_87, 0); -lean_inc(x_128); -lean_dec(x_87); -x_129 = lean_ctor_get(x_128, 0); -x_130 = lean_unbox(x_129); -if (x_130 == 0) -{ -lean_object* x_131; uint8_t x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_128); -x_131 = lean_ctor_get(x_86, 1); -lean_inc(x_131); -lean_dec_ref(x_86); -x_132 = 1; -x_133 = 0; -x_134 = lean_box(1); -x_135 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__3; -x_136 = l_Lake_OutStream_logEntry(x_134, x_135, x_132, x_133, x_131); -x_137 = lean_ctor_get(x_136, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_138 = x_136; -} else { - lean_dec_ref(x_136); - x_138 = lean_box(0); -} -x_139 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -if (lean_is_scalar(x_138)) { - x_140 = lean_alloc_ctor(1, 2, 0); -} else { - x_140 = x_138; - lean_ctor_set_tag(x_140, 1); -} -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_137); -return x_140; -} -else -{ -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -x_141 = lean_ctor_get(x_86, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_86)) { - lean_ctor_release(x_86, 0); - lean_ctor_release(x_86, 1); - x_142 = x_86; -} else { - lean_dec_ref(x_86); - x_142 = lean_box(0); -} -x_143 = lean_ctor_get(x_128, 1); -lean_inc(x_143); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_144 = x_128; -} else { - lean_dec_ref(x_128); - x_144 = lean_box(0); -} -x_145 = lean_box(0); -if (lean_is_scalar(x_144)) { - x_146 = lean_alloc_ctor(0, 2, 0); -} else { - x_146 = x_144; -} -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_143); -x_147 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_147, 0, x_146); -if (lean_is_scalar(x_142)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_142; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_141); -return x_148; -} -} -} -} -else -{ -uint8_t x_149; -x_149 = !lean_is_exclusive(x_86); -if (x_149 == 0) -{ -return x_86; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_150 = lean_ctor_get(x_86, 0); -x_151 = lean_ctor_get(x_86, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_86); -x_152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_152, 0, x_150); -lean_ctor_set(x_152, 1, x_151); -return x_152; -} -} -} -} -else -{ -lean_object* x_153; -lean_dec_ref(x_28); -x_153 = lean_ctor_get(x_63, 3); -if (lean_obj_tag(x_153) == 0) -{ -uint8_t x_154; lean_object* x_155; -lean_dec_ref(x_60); -x_154 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 12); -x_155 = lean_ctor_get(x_66, 0); -lean_inc(x_155); -x_29 = x_64; -x_30 = x_65; -x_31 = x_154; -x_32 = x_155; -x_33 = x_63; -goto block_59; -} -else -{ -uint8_t x_156; -x_156 = !lean_is_exclusive(x_63); -if (x_156 == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_157 = lean_ctor_get(x_63, 3); -lean_dec(x_157); -x_158 = lean_ctor_get(x_63, 2); -lean_dec(x_158); -x_159 = lean_ctor_get(x_63, 1); -lean_dec(x_159); -x_160 = lean_ctor_get(x_63, 0); -lean_dec(x_160); -x_161 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 12); -x_162 = lean_ctor_get(x_66, 0); -x_163 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_164 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4; -lean_inc_ref(x_60); -x_165 = lean_string_append(x_60, x_164); -x_166 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__5; -x_167 = lean_string_append(x_60, x_166); -lean_ctor_set(x_63, 3, x_2); -lean_ctor_set(x_63, 2, x_167); -lean_ctor_set(x_63, 1, x_165); -lean_ctor_set(x_63, 0, x_163); -lean_inc(x_162); -x_29 = x_64; -x_30 = x_65; -x_31 = x_161; -x_32 = x_162; -x_33 = x_63; -goto block_59; -} -else -{ -uint8_t x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_63); -x_168 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 12); -x_169 = lean_ctor_get(x_66, 0); -x_170 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_171 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4; -lean_inc_ref(x_60); -x_172 = lean_string_append(x_60, x_171); -x_173 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__5; -x_174 = lean_string_append(x_60, x_173); -x_175 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_175, 0, x_170); -lean_ctor_set(x_175, 1, x_172); -lean_ctor_set(x_175, 2, x_174); -lean_ctor_set(x_175, 3, x_2); -lean_inc(x_169); -x_29 = x_64; -x_30 = x_65; -x_31 = x_168; -x_32 = x_169; -x_33 = x_175; -goto block_59; -} -} -} -} -} -else -{ -lean_object* x_214; -lean_dec_ref(x_28); -x_214 = lean_ctor_get(x_1, 12); -lean_inc(x_214); -if (lean_obj_tag(x_214) == 0) -{ -uint8_t x_215; uint8_t x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; -lean_dec_ref(x_27); -lean_dec_ref(x_26); -lean_dec_ref(x_25); -lean_dec(x_24); -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_215 = 1; -x_216 = 0; -x_217 = lean_box(1); -x_218 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__7; -x_219 = l_Lake_OutStream_logEntry(x_217, x_218, x_215, x_216, x_23); -x_220 = !lean_is_exclusive(x_219); -if (x_220 == 0) -{ -lean_object* x_221; lean_object* x_222; -x_221 = lean_ctor_get(x_219, 0); -lean_dec(x_221); -x_222 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -lean_ctor_set_tag(x_219, 1); -lean_ctor_set(x_219, 0, x_222); -return x_219; -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_219, 1); -lean_inc(x_223); -lean_dec(x_219); -x_224 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_223); -return x_225; -} -} -else -{ -lean_object* x_226; uint8_t x_227; uint8_t x_228; -x_226 = lean_ctor_get(x_2, 0); -lean_inc(x_226); -lean_dec_ref(x_2); -x_227 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 12); -lean_dec_ref(x_1); -x_228 = !lean_is_exclusive(x_214); -if (x_228 == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_247; -x_229 = lean_ctor_get(x_214, 0); -x_247 = lean_ctor_get(x_26, 9); -if (lean_obj_tag(x_247) == 0) -{ -lean_object* x_248; lean_object* x_249; lean_object* x_250; -x_248 = lean_ctor_get(x_26, 3); -lean_inc_ref(x_248); -lean_dec_ref(x_26); -x_249 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -lean_ctor_set(x_214, 0, x_248); -x_250 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_250, 0, x_249); -lean_ctor_set(x_250, 1, x_249); -lean_ctor_set(x_250, 2, x_249); -lean_ctor_set(x_250, 3, x_214); -x_230 = x_250; -goto block_246; -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_inc_ref(x_247); -lean_free_object(x_214); -lean_dec_ref(x_26); -x_251 = lean_ctor_get(x_247, 0); -lean_inc(x_251); -lean_dec_ref(x_247); -x_252 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_253 = lean_box(0); -x_254 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_254, 0, x_252); -lean_ctor_set(x_254, 1, x_251); -lean_ctor_set(x_254, 2, x_252); -lean_ctor_set(x_254, 3, x_253); -x_230 = x_254; -goto block_246; -} -block_246: -{ -lean_object* x_231; lean_object* x_232; -x_231 = lean_alloc_closure((void*)(l_Lake_CacheMap_load), 3, 1); -lean_closure_set(x_231, 0, x_226); -x_232 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_231, x_24, x_23); -if (lean_obj_tag(x_232) == 0) -{ -lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_233 = lean_ctor_get(x_232, 0); -lean_inc(x_233); -x_234 = lean_ctor_get(x_233, 0); -lean_inc(x_234); -lean_dec(x_233); -x_235 = lean_ctor_get(x_232, 1); -lean_inc(x_235); -lean_dec_ref(x_232); -x_236 = lean_ctor_get(x_234, 0); -lean_inc(x_236); -x_237 = lean_ctor_get(x_234, 1); -lean_inc(x_237); -lean_dec(x_234); -x_238 = l_Lake_Package_cacheScope(x_25); -x_239 = lean_box(x_227); -x_240 = lean_alloc_closure((void*)(l_Lake_CacheService_downloadOutputArtifacts___boxed), 8, 6); -lean_closure_set(x_240, 0, x_236); -lean_closure_set(x_240, 1, x_27); -lean_closure_set(x_240, 2, x_229); -lean_closure_set(x_240, 3, x_238); -lean_closure_set(x_240, 4, x_230); -lean_closure_set(x_240, 5, x_239); -x_241 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_240, x_237, x_235); -return x_241; -} -else -{ -uint8_t x_242; -lean_dec_ref(x_230); -lean_dec(x_229); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -x_242 = !lean_is_exclusive(x_232); -if (x_242 == 0) -{ -return x_232; -} -else -{ -lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_232, 0); -x_244 = lean_ctor_get(x_232, 1); -lean_inc(x_244); -lean_inc(x_243); -lean_dec(x_232); -x_245 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -return x_245; -} -} -} -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_273; -x_255 = lean_ctor_get(x_214, 0); -lean_inc(x_255); -lean_dec(x_214); -x_273 = lean_ctor_get(x_26, 9); -if (lean_obj_tag(x_273) == 0) -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -x_274 = lean_ctor_get(x_26, 3); -lean_inc_ref(x_274); -lean_dec_ref(x_26); -x_275 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_276 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_276, 0, x_274); -x_277 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_275); -lean_ctor_set(x_277, 2, x_275); -lean_ctor_set(x_277, 3, x_276); -x_256 = x_277; -goto block_272; -} -else -{ -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -lean_inc_ref(x_273); -lean_dec_ref(x_26); -x_278 = lean_ctor_get(x_273, 0); -lean_inc(x_278); -lean_dec_ref(x_273); -x_279 = l_Lake_LakeOptions_mkLoadConfig___closed__2; -x_280 = lean_box(0); -x_281 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_281, 0, x_279); -lean_ctor_set(x_281, 1, x_278); -lean_ctor_set(x_281, 2, x_279); -lean_ctor_set(x_281, 3, x_280); -x_256 = x_281; -goto block_272; -} -block_272: -{ -lean_object* x_257; lean_object* x_258; -x_257 = lean_alloc_closure((void*)(l_Lake_CacheMap_load), 3, 1); -lean_closure_set(x_257, 0, x_226); -x_258 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_257, x_24, x_23); -if (lean_obj_tag(x_258) == 0) -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_259, 0); -lean_inc(x_260); -lean_dec(x_259); -x_261 = lean_ctor_get(x_258, 1); -lean_inc(x_261); -lean_dec_ref(x_258); -x_262 = lean_ctor_get(x_260, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_260, 1); -lean_inc(x_263); -lean_dec(x_260); -x_264 = l_Lake_Package_cacheScope(x_25); -x_265 = lean_box(x_227); -x_266 = lean_alloc_closure((void*)(l_Lake_CacheService_downloadOutputArtifacts___boxed), 8, 6); -lean_closure_set(x_266, 0, x_262); -lean_closure_set(x_266, 1, x_27); -lean_closure_set(x_266, 2, x_255); -lean_closure_set(x_266, 3, x_264); -lean_closure_set(x_266, 4, x_256); -lean_closure_set(x_266, 5, x_265); -x_267 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_266, x_263, x_261); -return x_267; -} -else -{ -lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; -lean_dec_ref(x_256); -lean_dec(x_255); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -x_268 = lean_ctor_get(x_258, 0); -lean_inc(x_268); -x_269 = lean_ctor_get(x_258, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_270 = x_258; -} else { - lean_dec_ref(x_258); - x_270 = lean_box(0); -} -if (lean_is_scalar(x_270)) { - x_271 = lean_alloc_ctor(1, 2, 0); -} else { - x_271 = x_270; -} -lean_ctor_set(x_271, 0, x_268); -lean_ctor_set(x_271, 1, x_269); -return x_271; -} -} -} -} -} -block_59: -{ -lean_object* x_34; lean_object* x_35; -lean_inc_ref(x_32); -lean_inc_ref(x_25); -lean_inc_ref(x_33); -lean_inc_ref(x_27); -x_34 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs), 7, 5); -lean_closure_set(x_34, 0, x_27); -lean_closure_set(x_34, 1, x_33); -lean_closure_set(x_34, 2, x_25); -lean_closure_set(x_34, 3, x_32); -lean_closure_set(x_34, 4, x_1); -x_35 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_34, x_29, x_30); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -if (lean_obj_tag(x_36) == 0) -{ -uint8_t x_37; -lean_dec_ref(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) -{ -lean_object* x_38; uint8_t x_39; -x_38 = lean_ctor_get(x_35, 0); -lean_dec(x_38); -x_39 = !lean_is_exclusive(x_36); -if (x_39 == 0) -{ -return x_35; -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_36, 0); -lean_inc(x_40); -lean_dec(x_36); -x_41 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_35, 0, x_41); -return x_35; -} -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_42 = lean_ctor_get(x_35, 1); -lean_inc(x_42); -lean_dec(x_35); -x_43 = lean_ctor_get(x_36, 0); -lean_inc(x_43); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - x_44 = x_36; -} else { - lean_dec_ref(x_36); - x_44 = lean_box(0); -} -if (lean_is_scalar(x_44)) { - x_45 = lean_alloc_ctor(0, 1, 0); -} else { - x_45 = x_44; -} -lean_ctor_set(x_45, 0, x_43); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_42); -return x_46; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_47 = lean_ctor_get(x_36, 0); -lean_inc(x_47); -lean_dec_ref(x_36); -x_48 = lean_ctor_get(x_35, 1); -lean_inc(x_48); -lean_dec_ref(x_35); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -lean_dec(x_47); -x_51 = l_Lake_Package_cacheScope(x_25); -x_52 = lean_box(x_31); -x_53 = lean_alloc_closure((void*)(l_Lake_CacheService_downloadOutputArtifacts___boxed), 8, 6); -lean_closure_set(x_53, 0, x_49); -lean_closure_set(x_53, 1, x_27); -lean_closure_set(x_53, 2, x_32); -lean_closure_set(x_53, 3, x_51); -lean_closure_set(x_53, 4, x_33); -lean_closure_set(x_53, 5, x_52); -x_54 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_53, x_50, x_48); -return x_54; -} -} -else -{ -uint8_t x_55; -lean_dec_ref(x_33); -lean_dec_ref(x_32); -lean_dec_ref(x_27); -lean_dec_ref(x_25); -x_55 = !lean_is_exclusive(x_35); -if (x_55 == 0) -{ -return x_35; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_35, 0); -x_57 = lean_ctor_get(x_35, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_35); -x_58 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_58, 0, x_56); -lean_ctor_set(x_58, 1, x_57); -return x_58; -} -} -} -} -} -else -{ -uint8_t x_282; -lean_dec(x_2); -lean_dec_ref(x_1); -x_282 = !lean_is_exclusive(x_9); -if (x_282 == 0) -{ -return x_9; -} -else -{ -lean_object* x_283; lean_object* x_284; lean_object* x_285; -x_283 = lean_ctor_get(x_9, 0); -x_284 = lean_ctor_get(x_9, 1); -lean_inc(x_284); -lean_inc(x_283); -lean_dec(x_9); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -return x_285; -} -} -} -else -{ -uint8_t x_286; +uint8_t x_17; lean_dec_ref(x_3); lean_dec(x_2); lean_dec_ref(x_1); -x_286 = !lean_is_exclusive(x_5); -if (x_286 == 0) +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) { -lean_object* x_287; lean_object* x_288; -x_287 = lean_ctor_get(x_5, 0); -x_288 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_288, 0, x_287); -lean_ctor_set_tag(x_5, 0); -lean_ctor_set(x_5, 0, x_288); -return x_5; +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +return x_15; } else { -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_289 = lean_ctor_get(x_5, 0); -x_290 = lean_ctor_get(x_5, 1); -lean_inc(x_290); -lean_inc(x_289); -lean_dec(x_5); -x_291 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_291, 0, x_289); -x_292 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_292, 0, x_291); -lean_ctor_set(x_292, 1, x_290); -return x_292; +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_15, 0, x_21); +return x_15; } } +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_dec(x_15); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + x_24 = x_16; +} else { + lean_dec_ref(x_16); + x_24 = lean_box(0); +} +if (lean_is_scalar(x_24)) { + x_25 = lean_alloc_ctor(0, 1, 0); +} else { + x_25 = x_24; +} +lean_ctor_set(x_25, 0, x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_114; uint8_t x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; uint8_t x_140; +x_27 = lean_ctor_get(x_16, 0); +lean_inc(x_27); +lean_dec_ref(x_16); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_dec_ref(x_15); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_ctor_get(x_28, 0); +x_32 = lean_ctor_get(x_28, 1); +x_33 = lean_ctor_get(x_28, 2); +lean_inc_ref(x_33); +x_34 = lean_ctor_get(x_28, 4); +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_151; lean_object* x_152; uint8_t x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_272; lean_object* x_273; lean_object* x_318; +lean_inc_ref(x_34); +lean_inc_ref(x_32); +lean_inc_ref(x_31); +lean_dec(x_28); +lean_dec_ref(x_3); +x_151 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 12); +x_152 = lean_ctor_get(x_1, 12); +x_153 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 13); +x_154 = lean_ctor_get(x_1, 13); +x_155 = lean_ctor_get(x_1, 14); +x_156 = lean_ctor_get(x_1, 15); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_322; +x_322 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__7; +x_318 = x_322; +goto block_321; +} +else +{ +lean_object* x_323; +x_323 = lean_ctor_get(x_154, 0); +lean_inc(x_323); +x_318 = x_323; +goto block_321; +} +block_271: +{ +if (lean_obj_tag(x_152) == 0) +{ +uint8_t x_162; +lean_dec_ref(x_31); +x_162 = lean_ctor_get_uint8(x_159, sizeof(void*)*4); +if (x_162 == 0) +{ +uint8_t x_163; uint8_t x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_dec_ref(x_160); +lean_dec_ref(x_159); +lean_dec_ref(x_158); +lean_dec_ref(x_157); +lean_dec_ref(x_34); +lean_dec_ref(x_33); +lean_dec_ref(x_1); +x_163 = 1; +x_164 = 0; +x_165 = lean_box(1); +x_166 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__2; +x_167 = l_Lake_OutStream_logEntry(x_165, x_166, x_163, x_164, x_161); +x_168 = !lean_is_exclusive(x_167); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 0); +lean_dec(x_169); +x_170 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_167, 1); +lean_ctor_set(x_167, 0, x_170); +return x_167; +} +else +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; +x_171 = lean_ctor_get(x_167, 1); +lean_inc(x_171); +lean_dec(x_167); +x_172 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_173, 0, x_172); +lean_ctor_set(x_173, 1, x_171); +return x_173; +} +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_174 = lean_box(x_162); +x_175 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___boxed), 10, 6); +lean_closure_set(x_175, 0, x_33); +lean_closure_set(x_175, 1, x_159); +lean_closure_set(x_175, 2, x_1); +lean_closure_set(x_175, 3, x_157); +lean_closure_set(x_175, 4, x_174); +lean_closure_set(x_175, 5, x_158); +x_176 = lean_unsigned_to_nat(1u); +x_177 = lean_array_get_size(x_34); +x_178 = lean_box(x_162); +x_179 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed), 7, 5); +lean_closure_set(x_179, 0, x_176); +lean_closure_set(x_179, 1, x_177); +lean_closure_set(x_179, 2, x_178); +lean_closure_set(x_179, 3, x_34); +lean_closure_set(x_179, 4, x_175); +x_180 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_179, x_160, x_161); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +if (lean_obj_tag(x_181) == 0) +{ +uint8_t x_182; +x_182 = !lean_is_exclusive(x_180); +if (x_182 == 0) +{ +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_180, 0); +lean_dec(x_183); +x_184 = !lean_is_exclusive(x_181); +if (x_184 == 0) +{ +return x_180; +} +else +{ +lean_object* x_185; lean_object* x_186; +x_185 = lean_ctor_get(x_181, 0); +lean_inc(x_185); +lean_dec(x_181); +x_186 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_186, 0, x_185); +lean_ctor_set(x_180, 0, x_186); +return x_180; +} +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_187 = lean_ctor_get(x_180, 1); +lean_inc(x_187); +lean_dec(x_180); +x_188 = lean_ctor_get(x_181, 0); +lean_inc(x_188); +if (lean_is_exclusive(x_181)) { + lean_ctor_release(x_181, 0); + x_189 = x_181; +} else { + lean_dec_ref(x_181); + x_189 = lean_box(0); +} +if (lean_is_scalar(x_189)) { + x_190 = lean_alloc_ctor(0, 1, 0); +} else { + x_190 = x_189; +} +lean_ctor_set(x_190, 0, x_188); +x_191 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_187); +return x_191; +} +} +else +{ +uint8_t x_192; +x_192 = !lean_is_exclusive(x_181); +if (x_192 == 0) +{ +lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_193 = lean_ctor_get(x_181, 0); +x_194 = lean_ctor_get(x_193, 0); +x_195 = lean_unbox(x_194); +if (x_195 == 0) +{ +lean_object* x_196; uint8_t x_197; uint8_t x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; +lean_free_object(x_181); +lean_dec(x_193); +x_196 = lean_ctor_get(x_180, 1); +lean_inc(x_196); +lean_dec_ref(x_180); +x_197 = 1; +x_198 = 0; +x_199 = lean_box(1); +x_200 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4; +x_201 = l_Lake_OutStream_logEntry(x_199, x_200, x_197, x_198, x_196); +x_202 = !lean_is_exclusive(x_201); +if (x_202 == 0) +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_201, 0); +lean_dec(x_203); +x_204 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_201, 1); +lean_ctor_set(x_201, 0, x_204); +return x_201; +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_205 = lean_ctor_get(x_201, 1); +lean_inc(x_205); +lean_dec(x_201); +x_206 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +return x_207; +} +} +else +{ +uint8_t x_208; +x_208 = !lean_is_exclusive(x_180); +if (x_208 == 0) +{ +lean_object* x_209; uint8_t x_210; +x_209 = lean_ctor_get(x_180, 0); +lean_dec(x_209); +x_210 = !lean_is_exclusive(x_193); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_193, 0); +lean_dec(x_211); +x_212 = lean_box(0); +lean_ctor_set(x_193, 0, x_212); +return x_180; +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; +x_213 = lean_ctor_get(x_193, 1); +lean_inc(x_213); +lean_dec(x_193); +x_214 = lean_box(0); +x_215 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set(x_215, 1, x_213); +lean_ctor_set(x_181, 0, x_215); +return x_180; +} +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_216 = lean_ctor_get(x_180, 1); +lean_inc(x_216); +lean_dec(x_180); +x_217 = lean_ctor_get(x_193, 1); +lean_inc(x_217); +if (lean_is_exclusive(x_193)) { + lean_ctor_release(x_193, 0); + lean_ctor_release(x_193, 1); + x_218 = x_193; +} else { + lean_dec_ref(x_193); + x_218 = lean_box(0); +} +x_219 = lean_box(0); +if (lean_is_scalar(x_218)) { + x_220 = lean_alloc_ctor(0, 2, 0); +} else { + x_220 = x_218; +} +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_217); +lean_ctor_set(x_181, 0, x_220); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_181); +lean_ctor_set(x_221, 1, x_216); +return x_221; +} +} +} +else +{ +lean_object* x_222; lean_object* x_223; uint8_t x_224; +x_222 = lean_ctor_get(x_181, 0); +lean_inc(x_222); +lean_dec(x_181); +x_223 = lean_ctor_get(x_222, 0); +x_224 = lean_unbox(x_223); +if (x_224 == 0) +{ +lean_object* x_225; uint8_t x_226; uint8_t x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; +lean_dec(x_222); +x_225 = lean_ctor_get(x_180, 1); +lean_inc(x_225); +lean_dec_ref(x_180); +x_226 = 1; +x_227 = 0; +x_228 = lean_box(1); +x_229 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__4; +x_230 = l_Lake_OutStream_logEntry(x_228, x_229, x_226, x_227, x_225); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_230)) { + lean_ctor_release(x_230, 0); + lean_ctor_release(x_230, 1); + x_232 = x_230; +} else { + lean_dec_ref(x_230); + x_232 = lean_box(0); +} +x_233 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +if (lean_is_scalar(x_232)) { + x_234 = lean_alloc_ctor(1, 2, 0); +} else { + x_234 = x_232; + lean_ctor_set_tag(x_234, 1); +} +lean_ctor_set(x_234, 0, x_233); +lean_ctor_set(x_234, 1, x_231); +return x_234; +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_235 = lean_ctor_get(x_180, 1); +lean_inc(x_235); +if (lean_is_exclusive(x_180)) { + lean_ctor_release(x_180, 0); + lean_ctor_release(x_180, 1); + x_236 = x_180; +} else { + lean_dec_ref(x_180); + x_236 = lean_box(0); +} +x_237 = lean_ctor_get(x_222, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_238 = x_222; +} else { + lean_dec_ref(x_222); + x_238 = lean_box(0); +} +x_239 = lean_box(0); +if (lean_is_scalar(x_238)) { + x_240 = lean_alloc_ctor(0, 2, 0); +} else { + x_240 = x_238; +} +lean_ctor_set(x_240, 0, x_239); +lean_ctor_set(x_240, 1, x_237); +x_241 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_241, 0, x_240); +if (lean_is_scalar(x_236)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_236; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_235); +return x_242; +} +} +} +} +else +{ +uint8_t x_243; +x_243 = !lean_is_exclusive(x_180); +if (x_243 == 0) +{ +return x_180; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_180, 0); +x_245 = lean_ctor_get(x_180, 1); +lean_inc(x_245); +lean_inc(x_244); +lean_dec(x_180); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} +} +} +else +{ +lean_dec_ref(x_34); +if (x_153 == 0) +{ +uint8_t x_247; +x_247 = lean_ctor_get_uint8(x_159, sizeof(void*)*4); +if (x_247 == 0) +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +x_248 = lean_ctor_get(x_152, 0); +x_249 = lean_ctor_get(x_159, 0); +lean_inc_ref(x_249); +x_250 = lean_ctor_get(x_159, 1); +lean_inc_ref(x_250); +x_251 = lean_ctor_get(x_159, 2); +lean_inc_ref(x_251); +x_252 = lean_ctor_get(x_159, 3); +lean_inc_ref(x_252); +lean_dec_ref(x_159); +lean_inc(x_156); +lean_inc(x_248); +x_127 = x_160; +x_128 = x_157; +x_129 = x_249; +x_130 = x_250; +x_131 = x_251; +x_132 = x_247; +x_133 = x_252; +x_134 = x_248; +x_135 = x_158; +x_136 = x_151; +x_137 = x_156; +x_138 = x_161; +x_139 = x_153; +x_140 = x_247; +goto block_150; +} +else +{ +uint8_t x_253; uint8_t x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +lean_dec_ref(x_160); +lean_dec_ref(x_159); +lean_dec_ref(x_158); +lean_dec_ref(x_157); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +lean_dec_ref(x_1); +x_253 = 1; +x_254 = 0; +x_255 = lean_box(1); +x_256 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__6; +x_257 = l_Lake_OutStream_logEntry(x_255, x_256, x_253, x_254, x_161); +x_258 = !lean_is_exclusive(x_257); +if (x_258 == 0) +{ +lean_object* x_259; lean_object* x_260; +x_259 = lean_ctor_get(x_257, 0); +lean_dec(x_259); +x_260 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_257, 1); +lean_ctor_set(x_257, 0, x_260); +return x_257; +} +else +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_261 = lean_ctor_get(x_257, 1); +lean_inc(x_261); +lean_dec(x_257); +x_262 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_261); +return x_263; +} +} +} +else +{ +lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; lean_object* x_269; uint8_t x_270; +x_264 = lean_ctor_get(x_152, 0); +x_265 = lean_ctor_get(x_159, 0); +lean_inc_ref(x_265); +x_266 = lean_ctor_get(x_159, 1); +lean_inc_ref(x_266); +x_267 = lean_ctor_get(x_159, 2); +lean_inc_ref(x_267); +x_268 = lean_ctor_get_uint8(x_159, sizeof(void*)*4); +x_269 = lean_ctor_get(x_159, 3); +lean_inc_ref(x_269); +lean_dec_ref(x_159); +x_270 = 0; +lean_inc(x_156); +lean_inc(x_264); +x_127 = x_160; +x_128 = x_157; +x_129 = x_265; +x_130 = x_266; +x_131 = x_267; +x_132 = x_268; +x_133 = x_269; +x_134 = x_264; +x_135 = x_158; +x_136 = x_151; +x_137 = x_156; +x_138 = x_161; +x_139 = x_153; +x_140 = x_270; +goto block_150; +} +} +} +block_317: +{ +lean_object* x_274; +x_274 = lean_ctor_get(x_32, 9); +if (lean_obj_tag(x_274) == 0) +{ +lean_object* x_275; +x_275 = lean_ctor_get(x_32, 10); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; uint8_t x_277; lean_object* x_278; uint8_t x_279; lean_object* x_280; +x_276 = lean_ctor_get(x_32, 3); +lean_inc_ref(x_276); +lean_dec_ref(x_32); +x_277 = 0; +x_278 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_279 = 1; +x_280 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_280, 0, x_278); +lean_ctor_set(x_280, 1, x_278); +lean_ctor_set(x_280, 2, x_278); +lean_ctor_set(x_280, 3, x_276); +lean_ctor_set_uint8(x_280, sizeof(void*)*4, x_279); +lean_ctor_set_uint8(x_280, sizeof(void*)*4 + 1, x_277); +x_157 = x_273; +x_158 = x_272; +x_159 = x_280; +x_160 = x_30; +x_161 = x_29; +goto block_271; +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_284; uint8_t x_285; lean_object* x_286; uint8_t x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; +lean_inc_ref(x_275); +lean_dec_ref(x_273); +lean_dec_ref(x_272); +lean_dec_ref(x_34); +lean_dec_ref(x_33); +lean_dec_ref(x_32); +lean_dec_ref(x_31); +lean_dec(x_30); +lean_dec_ref(x_1); +x_281 = lean_ctor_get(x_275, 0); +lean_inc(x_281); +lean_dec_ref(x_275); +x_282 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_283 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig(x_282, x_281); +lean_dec(x_281); +x_284 = 1; +x_285 = 0; +x_286 = lean_box(1); +x_287 = 3; +x_288 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_288, 0, x_283); +lean_ctor_set_uint8(x_288, sizeof(void*)*1, x_287); +x_289 = l_Lake_OutStream_logEntry(x_286, x_288, x_284, x_285, x_29); +lean_dec_ref(x_288); +x_290 = !lean_is_exclusive(x_289); +if (x_290 == 0) +{ +lean_object* x_291; lean_object* x_292; +x_291 = lean_ctor_get(x_289, 0); +lean_dec(x_291); +x_292 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_289, 1); +lean_ctor_set(x_289, 0, x_292); +return x_289; +} +else +{ +lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_293 = lean_ctor_get(x_289, 1); +lean_inc(x_293); +lean_dec(x_289); +x_294 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_293); +return x_295; +} +} +} +else +{ +lean_object* x_296; +lean_inc_ref(x_274); +x_296 = lean_ctor_get(x_32, 10); +lean_inc(x_296); +lean_dec_ref(x_32); +if (lean_obj_tag(x_296) == 0) +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; uint8_t x_300; uint8_t x_301; lean_object* x_302; uint8_t x_303; lean_object* x_304; lean_object* x_305; uint8_t x_306; +lean_dec_ref(x_273); +lean_dec_ref(x_272); +lean_dec_ref(x_34); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +lean_dec(x_30); +lean_dec_ref(x_1); +x_297 = lean_ctor_get(x_274, 0); +lean_inc(x_297); +lean_dec_ref(x_274); +x_298 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_299 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig(x_297, x_298); +lean_dec(x_297); +x_300 = 1; +x_301 = 0; +x_302 = lean_box(1); +x_303 = 3; +x_304 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_304, 0, x_299); +lean_ctor_set_uint8(x_304, sizeof(void*)*1, x_303); +x_305 = l_Lake_OutStream_logEntry(x_302, x_304, x_300, x_301, x_29); +lean_dec_ref(x_304); +x_306 = !lean_is_exclusive(x_305); +if (x_306 == 0) +{ +lean_object* x_307; lean_object* x_308; +x_307 = lean_ctor_get(x_305, 0); +lean_dec(x_307); +x_308 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_305, 1); +lean_ctor_set(x_305, 0, x_308); +return x_305; +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; +x_309 = lean_ctor_get(x_305, 1); +lean_inc(x_309); +lean_dec(x_305); +x_310 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_311, 0, x_310); +lean_ctor_set(x_311, 1, x_309); +return x_311; +} +} +else +{ +lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; lean_object* x_316; +x_312 = lean_ctor_get(x_274, 0); +lean_inc(x_312); +lean_dec_ref(x_274); +x_313 = lean_ctor_get(x_296, 0); +lean_inc(x_313); +lean_dec_ref(x_296); +x_314 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_315 = 0; +x_316 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_316, 0, x_314); +lean_ctor_set(x_316, 1, x_312); +lean_ctor_set(x_316, 2, x_313); +lean_ctor_set(x_316, 3, x_314); +lean_ctor_set_uint8(x_316, sizeof(void*)*4, x_315); +lean_ctor_set_uint8(x_316, sizeof(void*)*4 + 1, x_315); +x_157 = x_273; +x_158 = x_272; +x_159 = x_316; +x_160 = x_30; +x_161 = x_29; +goto block_271; +} +} +} +block_321: +{ +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_319; +x_319 = lean_ctor_get(x_32, 15); +lean_inc_ref(x_319); +x_272 = x_318; +x_273 = x_319; +goto block_317; +} +else +{ +lean_object* x_320; +x_320 = lean_ctor_get(x_155, 0); +lean_inc(x_320); +x_272 = x_318; +x_273 = x_320; +goto block_317; +} +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; uint8_t x_328; +x_324 = lean_ctor_get(x_2, 0); +lean_inc(x_324); +lean_dec_ref(x_2); +x_325 = lean_ctor_get(x_1, 13); +x_326 = lean_ctor_get(x_1, 14); +lean_inc_ref(x_3); +lean_inc_ref(x_1); +x_327 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1), 9, 6); +lean_closure_set(x_327, 0, x_1); +lean_closure_set(x_327, 1, x_28); +lean_closure_set(x_327, 2, x_33); +lean_closure_set(x_327, 3, x_324); +lean_closure_set(x_327, 4, x_3); +lean_closure_set(x_327, 5, x_3); +if (lean_obj_tag(x_325) == 0) +{ +if (lean_obj_tag(x_326) == 0) +{ +uint8_t x_335; +x_335 = 0; +x_328 = x_335; +goto block_332; +} +else +{ +goto block_334; +} +} +else +{ +goto block_334; +} +block_332: +{ +lean_object* x_329; lean_object* x_330; lean_object* x_331; +x_329 = lean_box(x_328); +x_330 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___boxed), 5, 3); +lean_closure_set(x_330, 0, x_329); +lean_closure_set(x_330, 1, x_327); +lean_closure_set(x_330, 2, x_1); +x_331 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_330, x_30, x_29); +return x_331; +} +block_334: +{ +uint8_t x_333; +x_333 = 1; +x_328 = x_333; +goto block_332; +} +} +block_45: +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_41 = l_Lake_Package_cacheScope(x_31); +x_42 = lean_box(x_36); +x_43 = lean_alloc_closure((void*)(l_Lake_CacheService_downloadOutputArtifacts___boxed), 8, 6); +lean_closure_set(x_43, 0, x_38); +lean_closure_set(x_43, 1, x_33); +lean_closure_set(x_43, 2, x_37); +lean_closure_set(x_43, 3, x_41); +lean_closure_set(x_43, 4, x_35); +lean_closure_set(x_43, 5, x_42); +x_44 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_43, x_39, x_40); +return x_44; +} +block_113: +{ +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_56; lean_object* x_57; +lean_dec_ref(x_54); +lean_inc_ref(x_48); +lean_inc_ref(x_31); +lean_inc_ref(x_53); +lean_inc_ref(x_33); +x_56 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___boxed), 9, 7); +lean_closure_set(x_56, 0, x_33); +lean_closure_set(x_56, 1, x_53); +lean_closure_set(x_56, 2, x_31); +lean_closure_set(x_56, 3, x_48); +lean_closure_set(x_56, 4, x_1); +lean_closure_set(x_56, 5, x_47); +lean_closure_set(x_56, 6, x_55); +x_57 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_56, x_46, x_52); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; +lean_dec_ref(x_53); +lean_dec_ref(x_48); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec_ref(x_57); +x_60 = lean_ctor_get(x_58, 0); +lean_inc(x_60); +lean_dec_ref(x_58); +x_6 = x_60; +x_7 = x_59; +goto block_10; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_61 = lean_ctor_get(x_58, 0); +lean_inc(x_61); +lean_dec_ref(x_58); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +lean_dec_ref(x_57); +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_61, 1); +lean_inc(x_64); +lean_dec(x_61); +x_35 = x_48; +x_36 = x_49; +x_37 = x_53; +x_38 = x_63; +x_39 = x_64; +x_40 = x_62; +goto block_45; +} +} +else +{ +uint8_t x_65; +lean_dec_ref(x_53); +lean_dec_ref(x_48); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_65 = !lean_is_exclusive(x_57); +if (x_65 == 0) +{ +return x_57; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_57, 0); +x_67 = lean_ctor_get(x_57, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_57); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec_ref(x_1); +x_69 = lean_ctor_get(x_51, 0); +lean_inc(x_69); +lean_dec_ref(x_51); +x_70 = lean_alloc_closure((void*)(l_Lake_GitRepo_resolveRevision), 4, 2); +lean_closure_set(x_70, 0, x_69); +lean_closure_set(x_70, 1, x_54); +x_71 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_70, x_46, x_52); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_72, 0); +lean_inc(x_73); +lean_dec(x_72); +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec_ref(x_71); +x_75 = lean_ctor_get(x_73, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +lean_inc_ref(x_31); +x_77 = l_Lake_Package_cacheScope(x_31); +x_78 = lean_box(x_50); +lean_inc_ref(x_48); +lean_inc_ref(x_53); +lean_inc_ref(x_33); +lean_inc(x_75); +x_79 = lean_alloc_closure((void*)(l_Lake_CacheService_downloadRevisionOutputs_x3f___boxed), 10, 8); +lean_closure_set(x_79, 0, x_75); +lean_closure_set(x_79, 1, x_33); +lean_closure_set(x_79, 2, x_53); +lean_closure_set(x_79, 3, x_77); +lean_closure_set(x_79, 4, x_48); +lean_closure_set(x_79, 5, x_47); +lean_closure_set(x_79, 6, x_55); +lean_closure_set(x_79, 7, x_78); +x_80 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_79, x_76, x_74); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +if (lean_obj_tag(x_81) == 0) +{ +lean_object* x_82; lean_object* x_83; +lean_dec(x_75); +lean_dec_ref(x_53); +lean_dec_ref(x_48); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec_ref(x_80); +x_83 = lean_ctor_get(x_81, 0); +lean_inc(x_83); +lean_dec_ref(x_81); +x_6 = x_83; +x_7 = x_82; +goto block_10; +} +else +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +lean_dec_ref(x_81); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; +lean_dec(x_84); +lean_dec_ref(x_53); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_86 = lean_ctor_get(x_80, 1); +lean_inc(x_86); +lean_dec_ref(x_80); +x_87 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0; +x_88 = lean_string_append(x_48, x_87); +x_89 = lean_string_append(x_88, x_75); +lean_dec(x_75); +x_90 = 1; +x_91 = 0; +x_92 = lean_box(1); +x_93 = 3; +x_94 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_94, 0, x_89); +lean_ctor_set_uint8(x_94, sizeof(void*)*1, x_93); +x_95 = l_Lake_OutStream_logEntry(x_92, x_94, x_90, x_91, x_86); +lean_dec_ref(x_94); +x_96 = !lean_is_exclusive(x_95); +if (x_96 == 0) +{ +lean_object* x_97; lean_object* x_98; +x_97 = lean_ctor_get(x_95, 0); +lean_dec(x_97); +x_98 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +lean_ctor_set_tag(x_95, 1); +lean_ctor_set(x_95, 0, x_98); +return x_95; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_99 = lean_ctor_get(x_95, 1); +lean_inc(x_99); +lean_dec(x_95); +x_100 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___boxed__const__1; +x_101 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_99); +return x_101; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_75); +x_102 = lean_ctor_get(x_80, 1); +lean_inc(x_102); +lean_dec_ref(x_80); +x_103 = lean_ctor_get(x_84, 1); +lean_inc(x_103); +lean_dec(x_84); +x_104 = lean_ctor_get(x_85, 0); +lean_inc(x_104); +lean_dec_ref(x_85); +x_35 = x_48; +x_36 = x_49; +x_37 = x_53; +x_38 = x_104; +x_39 = x_103; +x_40 = x_102; +goto block_45; +} +} +} +else +{ +uint8_t x_105; +lean_dec(x_75); +lean_dec_ref(x_53); +lean_dec_ref(x_48); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_105 = !lean_is_exclusive(x_80); +if (x_105 == 0) +{ +return x_80; +} +else +{ +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_80, 0); +x_107 = lean_ctor_get(x_80, 1); +lean_inc(x_107); +lean_inc(x_106); +lean_dec(x_80); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +return x_108; +} +} +} +else +{ +uint8_t x_109; +lean_dec_ref(x_55); +lean_dec_ref(x_53); +lean_dec_ref(x_48); +lean_dec_ref(x_47); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +x_109 = !lean_is_exclusive(x_71); +if (x_109 == 0) +{ +return x_71; +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_71, 0); +x_111 = lean_ctor_get(x_71, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_71); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; +} +} +} +} +block_126: +{ +if (x_115 == 0) +{ +x_46 = x_114; +x_47 = x_124; +x_48 = x_117; +x_49 = x_118; +x_50 = x_120; +x_51 = x_119; +x_52 = x_122; +x_53 = x_121; +x_54 = x_123; +x_55 = x_116; +goto block_113; +} +else +{ +lean_object* x_125; +lean_dec_ref(x_116); +x_125 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_46 = x_114; +x_47 = x_124; +x_48 = x_117; +x_49 = x_118; +x_50 = x_120; +x_51 = x_119; +x_52 = x_122; +x_53 = x_121; +x_54 = x_123; +x_55 = x_125; +goto block_113; +} +} +block_150: +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +x_141 = lean_ctor_get(x_31, 4); +x_142 = lean_ctor_get(x_141, 1); +x_143 = lean_ctor_get(x_31, 2); +x_144 = lean_ctor_get_uint8(x_141, sizeof(void*)*26); +x_145 = lean_ctor_get(x_142, 10); +x_146 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_146, 0, x_129); +lean_ctor_set(x_146, 1, x_130); +lean_ctor_set(x_146, 2, x_131); +lean_ctor_set(x_146, 3, x_133); +lean_ctor_set_uint8(x_146, sizeof(void*)*4, x_132); +lean_ctor_set_uint8(x_146, sizeof(void*)*4 + 1, x_139); +x_147 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1; +x_148 = l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(x_145, x_147); +if (x_148 == 0) +{ +lean_inc_ref(x_143); +x_114 = x_127; +x_115 = x_144; +x_116 = x_128; +x_117 = x_134; +x_118 = x_136; +x_119 = x_137; +x_120 = x_140; +x_121 = x_146; +x_122 = x_138; +x_123 = x_143; +x_124 = x_135; +goto block_126; +} +else +{ +lean_object* x_149; +lean_dec_ref(x_135); +x_149 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +lean_inc_ref(x_143); +x_114 = x_127; +x_115 = x_144; +x_116 = x_128; +x_117 = x_134; +x_118 = x_136; +x_119 = x_137; +x_120 = x_140; +x_121 = x_146; +x_122 = x_138; +x_123 = x_143; +x_124 = x_149; +goto block_126; +} +} +} +} +else +{ +uint8_t x_336; +lean_dec_ref(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_336 = !lean_is_exclusive(x_15); +if (x_336 == 0) +{ +return x_15; +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_15, 0); +x_338 = lean_ctor_get(x_15, 1); +lean_inc(x_338); +lean_inc(x_337); +lean_dec(x_15); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_337); +lean_ctor_set(x_339, 1, x_338); +return x_339; +} +} +} +else +{ +uint8_t x_340; +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec(x_2); +lean_dec_ref(x_1); +x_340 = !lean_is_exclusive(x_11); +if (x_340 == 0) +{ +lean_object* x_341; lean_object* x_342; +x_341 = lean_ctor_get(x_11, 0); +x_342 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_342, 0, x_341); +lean_ctor_set_tag(x_11, 0); +lean_ctor_set(x_11, 0, x_342); +return x_11; +} +else +{ +lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_343 = lean_ctor_get(x_11, 0); +x_344 = lean_ctor_get(x_11, 1); +lean_inc(x_344); +lean_inc(x_343); +lean_dec(x_11); +x_345 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_345, 0, x_343); +x_346 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_346, 0, x_345); +lean_ctor_set(x_346, 1, x_344); +return x_346; +} +} +block_10: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_8, 0, x_6); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__0() { @@ -22145,6 +25341,14 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } +static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___elam__0), 4, 0); +return x_1; +} +} LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -22212,91 +25416,114 @@ return x_17; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_27; lean_object* x_28; +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_29; x_18 = lean_ctor_get(x_7, 0); lean_inc(x_18); lean_dec_ref(x_7); -x_19 = lean_ctor_get(x_6, 1); +x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec_ref(x_6); -x_20 = lean_ctor_get(x_18, 0); +x_20 = lean_ctor_get(x_6, 1); lean_inc(x_20); +lean_dec_ref(x_6); x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec(x_18); -x_27 = lean_ctor_get(x_20, 0); -lean_inc(x_27); -lean_dec(x_20); -x_28 = lean_array_to_list(x_27); -if (lean_obj_tag(x_28) == 0) +x_22 = lean_ctor_get(x_19, 0); +lean_inc(x_22); +lean_dec(x_19); +x_23 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2; +x_29 = lean_array_to_list(x_22); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_29; -x_29 = lean_box(0); -x_22 = x_29; -x_23 = x_28; -goto block_26; +lean_object* x_30; +x_30 = lean_box(0); +x_24 = x_30; +x_25 = x_29; +goto block_28; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_28, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_28, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); lean_inc(x_31); -lean_dec_ref(x_28); -x_32 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_32, 0, x_30); -x_22 = x_32; -x_23 = x_31; -goto block_26; +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec_ref(x_29); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_31); +x_24 = x_33; +x_25 = x_32; +goto block_28; } -block_26: +block_28: { -lean_object* x_24; lean_object* x_25; +lean_object* x_26; lean_object* x_27; lean_inc(x_21); -x_24 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0), 4, 2); -lean_closure_set(x_24, 0, x_21); -lean_closure_set(x_24, 1, x_22); -x_25 = l___private_Lake_CLI_Main_0__Lake_noArgsRem___redArg(x_24, x_23, x_21, x_19); -return x_25; +x_26 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0), 5, 3); +lean_closure_set(x_26, 0, x_21); +lean_closure_set(x_26, 1, x_24); +lean_closure_set(x_26, 2, x_23); +x_27 = l___private_Lake_CLI_Main_0__Lake_noArgsRem___redArg(x_26, x_25, x_21, x_20); +return x_27; } } } else { -uint8_t x_33; -x_33 = !lean_is_exclusive(x_6); -if (x_33 == 0) +uint8_t x_34; +x_34 = !lean_is_exclusive(x_6); +if (x_34 == 0) { return x_6; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_6, 0); -x_35 = lean_ctor_get(x_6, 1); +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_6, 0); +x_36 = lean_ctor_get(x_6, 1); +lean_inc(x_36); lean_inc(x_35); -lean_inc(x_34); lean_dec(x_6); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; } } } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_9; uint8_t x_10; lean_object* x_11; -x_9 = lean_unbox(x_4); -x_10 = lean_unbox(x_5); -x_11 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(x_1, x_2, x_3, x_9, x_10, x_6, x_7, x_8); -return x_11; +lean_object* x_10; +x_10 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec_ref(x_8); +lean_dec_ref(x_7); +return x_10; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_5); +x_12 = lean_unbox(x_7); +x_13 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2(x_1, x_2, x_3, x_4, x_11, x_6, x_12, x_8, x_9, x_10); +return x_13; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { size_t x_9; size_t x_10; uint8_t x_11; lean_object* x_12; @@ -22305,11 +25532,11 @@ lean_dec(x_1); x_10 = lean_unbox_usize(x_5); lean_dec(x_5); x_11 = lean_unbox(x_6); -x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___lam__0(x_9, x_2, x_3, x_4, x_10, x_11, x_7, x_8); +x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___lam__0(x_9, x_2, x_3, x_4, x_10, x_11, x_7, x_8); return x_12; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { size_t x_9; size_t x_10; uint8_t x_11; lean_object* x_12; @@ -22318,22 +25545,45 @@ lean_dec(x_4); x_10 = lean_unbox_usize(x_5); lean_dec(x_5); x_11 = lean_unbox(x_6); -x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_1, x_2, x_3, x_9, x_10, x_11, x_7, x_8); +x_12 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0_spec__0(x_1, x_2, x_3, x_9, x_10, x_11, x_7, x_8); return x_12; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { uint8_t x_9; lean_object* x_10; x_9 = lean_unbox(x_3); -x_10 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); +x_10 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0(x_1, x_2, x_9, x_4, x_5, x_6, x_7, x_8); lean_dec(x_2); lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +size_t x_8; size_t x_9; lean_object* x_10; +x_8 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_9 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_10 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1_spec__0(x_1, x_2, x_8, x_9, x_5, x_6, x_7); +lean_dec_ref(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_1); +x_7 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3(x_6, x_2, x_3, x_4, x_5); +lean_dec_ref(x_3); +return x_7; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { size_t x_8; size_t x_9; uint8_t x_10; lean_object* x_11; @@ -22342,17 +25592,17 @@ lean_dec(x_3); x_9 = lean_unbox_usize(x_4); lean_dec(x_4); x_10 = lean_unbox(x_5); -x_11 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(x_1, x_2, x_8, x_9, x_10, x_6, x_7); +x_11 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1_spec__1(x_1, x_2, x_8, x_9, x_10, x_6, x_7); lean_dec_ref(x_2); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; lean_object* x_9; x_8 = lean_unbox(x_3); -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); +x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_spec__1(x_1, x_2, x_8, x_4, x_5, x_6, x_7); lean_dec_ref(x_4); lean_dec(x_2); lean_dec(x_1); @@ -22555,704 +25805,930 @@ x_2 = lean_box_uint32(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_67; -x_67 = l_Lake_LakeOptions_mkLoadConfig(x_1, x_7); -if (lean_obj_tag(x_67) == 0) +lean_object* x_11; +x_11 = l_Lake_LakeOptions_mkLoadConfig(x_1, x_10); +if (lean_obj_tag(x_11) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec_ref(x_67); -x_70 = lean_alloc_closure((void*)(l_Lake_loadWorkspace), 3, 1); -lean_closure_set(x_70, 0, x_68); -x_71 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_70, x_6, x_69); +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec_ref(x_11); +x_14 = lean_alloc_closure((void*)(l_Lake_loadWorkspace), 3, 1); +lean_closure_set(x_14, 0, x_12); +x_15 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_14, x_9, x_13); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +lean_dec(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_ctor_get(x_15, 0); +lean_dec(x_18); +x_19 = !lean_is_exclusive(x_16); +if (x_19 == 0) +{ +return x_15; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_16, 0); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_15, 0, x_21); +return x_15; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_dec(x_15); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + x_24 = x_16; +} else { + lean_dec_ref(x_16); + x_24 = lean_box(0); +} +if (lean_is_scalar(x_24)) { + x_25 = lean_alloc_ctor(0, 1, 0); +} else { + x_25 = x_24; +} +lean_ctor_set(x_25, 0, x_23); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_22); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_171; lean_object* x_172; lean_object* x_189; lean_object* x_190; lean_object* x_195; lean_object* x_199; +x_27 = lean_ctor_get(x_16, 0); +lean_inc(x_27); +lean_dec_ref(x_16); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_15, 1); +lean_inc(x_29); +lean_dec_ref(x_15); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = lean_ctor_get(x_28, 0); +lean_inc_ref(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc_ref(x_32); +x_33 = lean_ctor_get(x_28, 2); +lean_inc_ref(x_33); +lean_dec(x_28); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_207; +x_207 = l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__7; +x_199 = x_207; +goto block_206; +} +else +{ +lean_object* x_208; +x_208 = lean_ctor_get(x_8, 0); +lean_inc(x_208); +lean_dec_ref(x_8); +x_199 = x_208; +goto block_206; +} +block_93: +{ +lean_object* x_40; lean_object* x_41; +x_40 = lean_alloc_closure((void*)(l_Lake_GitRepo_getHeadRevision), 3, 1); +lean_closure_set(x_40, 0, x_36); +x_41 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_40, x_38, x_39); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +lean_dec(x_42); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec_ref(x_41); +x_45 = lean_ctor_get(x_43, 0); +lean_inc(x_45); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +lean_inc_ref(x_2); +x_47 = lean_alloc_closure((void*)(l_Lake_CacheMap_load), 3, 1); +lean_closure_set(x_47, 0, x_2); +x_48 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_47, x_46, x_44); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_49, 0); +lean_inc(x_50); +lean_dec(x_49); +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec_ref(x_48); +x_52 = lean_ctor_get(x_50, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_closure((void*)(l_Lake_CacheMap_collectOutputDescrs), 3, 1); +lean_closure_set(x_54, 0, x_52); +x_55 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_54, x_53, x_51); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_56, 0); +lean_inc(x_57); +lean_dec(x_56); +x_58 = lean_ctor_get(x_55, 1); +lean_inc(x_58); +lean_dec_ref(x_55); +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +lean_inc(x_59); +x_61 = lean_alloc_closure((void*)(l_Lake_Cache_getArtifactPaths___boxed), 4, 2); +lean_closure_set(x_61, 0, x_33); +lean_closure_set(x_61, 1, x_59); +x_62 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_61, x_60, x_58); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +lean_dec(x_63); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec_ref(x_62); +x_66 = lean_ctor_get(x_64, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_64, 1); +lean_inc(x_67); +lean_dec(x_64); +x_68 = lean_array_get_size(x_59); +lean_inc_ref(x_3); +lean_inc_ref(x_34); +x_69 = lean_alloc_closure((void*)(l_Lake_CacheService_uploadArtifacts___boxed), 7, 5); +lean_closure_set(x_69, 0, x_68); +lean_closure_set(x_69, 1, x_59); +lean_closure_set(x_69, 2, x_66); +lean_closure_set(x_69, 3, x_34); +lean_closure_set(x_69, 4, x_3); +x_70 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_69, x_67, x_65); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_70, 0); +lean_inc(x_71); if (lean_obj_tag(x_71) == 0) { -lean_object* x_72; +lean_dec_ref(x_71); +lean_dec(x_45); +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_70; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; x_72 = lean_ctor_get(x_71, 0); lean_inc(x_72); -if (lean_obj_tag(x_72) == 0) -{ -uint8_t x_73; -lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_73 = !lean_is_exclusive(x_71); -if (x_73 == 0) -{ -lean_object* x_74; uint8_t x_75; -x_74 = lean_ctor_get(x_71, 0); -lean_dec(x_74); -x_75 = !lean_is_exclusive(x_72); -if (x_75 == 0) -{ -return x_71; -} -else -{ -lean_object* x_76; lean_object* x_77; -x_76 = lean_ctor_get(x_72, 0); -lean_inc(x_76); -lean_dec(x_72); -x_77 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_71, 0, x_77); -return x_71; -} -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_78 = lean_ctor_get(x_71, 1); -lean_inc(x_78); -lean_dec(x_71); -x_79 = lean_ctor_get(x_72, 0); -lean_inc(x_79); -if (lean_is_exclusive(x_72)) { - lean_ctor_release(x_72, 0); - x_80 = x_72; -} else { - lean_dec_ref(x_72); - x_80 = lean_box(0); -} -if (lean_is_scalar(x_80)) { - x_81 = lean_alloc_ctor(0, 1, 0); -} else { - x_81 = x_80; -} -lean_ctor_set(x_81, 0, x_79); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_78); -return x_82; -} -} -else -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_120; lean_object* x_141; -x_83 = lean_ctor_get(x_72, 0); -lean_inc(x_83); -lean_dec_ref(x_72); -x_84 = lean_ctor_get(x_83, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_71, 1); -lean_inc(x_85); lean_dec_ref(x_71); -x_86 = lean_ctor_get(x_83, 1); +x_73 = lean_ctor_get(x_70, 1); +lean_inc(x_73); +lean_dec_ref(x_70); +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_alloc_closure((void*)(l_Lake_CacheService_uploadRevisionOutputs___boxed), 8, 6); +lean_closure_set(x_75, 0, x_45); +lean_closure_set(x_75, 1, x_2); +lean_closure_set(x_75, 2, x_34); +lean_closure_set(x_75, 3, x_3); +lean_closure_set(x_75, 4, x_35); +lean_closure_set(x_75, 5, x_37); +x_76 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_75, x_74, x_73); +return x_76; +} +} +else +{ +lean_dec(x_45); +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +return x_70; +} +} +else +{ +uint8_t x_77; +lean_dec(x_59); +lean_dec(x_45); +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_77 = !lean_is_exclusive(x_62); +if (x_77 == 0) +{ +return x_62; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_62, 0); +x_79 = lean_ctor_get(x_62, 1); +lean_inc(x_79); +lean_inc(x_78); +lean_dec(x_62); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +} +else +{ +uint8_t x_81; +lean_dec(x_45); +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_33); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_81 = !lean_is_exclusive(x_55); +if (x_81 == 0) +{ +return x_55; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_55, 0); +x_83 = lean_ctor_get(x_55, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_55); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_82); +lean_ctor_set(x_84, 1, x_83); +return x_84; +} +} +} +else +{ +uint8_t x_85; +lean_dec(x_45); +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_33); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_85 = !lean_is_exclusive(x_48); +if (x_85 == 0) +{ +return x_48; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_48, 0); +x_87 = lean_ctor_get(x_48, 1); +lean_inc(x_87); lean_inc(x_86); -lean_dec(x_83); -x_87 = lean_ctor_get(x_84, 0); -lean_inc_ref(x_87); -x_88 = lean_ctor_get(x_84, 1); -lean_inc_ref(x_88); -x_89 = lean_ctor_get(x_84, 2); -lean_inc_ref(x_89); -lean_dec(x_84); -x_141 = lean_ctor_get(x_88, 8); -lean_inc(x_141); -if (lean_obj_tag(x_141) == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_88, 9); -lean_inc(x_142); -x_143 = lean_ctor_get(x_88, 10); -lean_inc(x_143); -lean_dec_ref(x_88); -x_144 = lean_apply_5(x_5, x_141, x_142, x_143, x_86, x_85); -x_120 = x_144; -goto block_140; +lean_dec(x_48); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_86); +lean_ctor_set(x_88, 1, x_87); +return x_88; +} +} } else { -lean_object* x_145; -x_145 = lean_ctor_get(x_88, 9); -lean_inc(x_145); -if (lean_obj_tag(x_145) == 0) -{ -lean_object* x_146; lean_object* x_147; -x_146 = lean_ctor_get(x_88, 10); -lean_inc(x_146); -lean_dec_ref(x_88); -x_147 = lean_apply_5(x_5, x_141, x_145, x_146, x_86, x_85); -x_120 = x_147; -goto block_140; -} -else -{ -lean_object* x_148; -x_148 = lean_ctor_get(x_88, 10); -lean_inc(x_148); -lean_dec_ref(x_88); -if (lean_obj_tag(x_148) == 0) -{ -lean_object* x_149; -x_149 = lean_apply_5(x_5, x_141, x_145, x_148, x_86, x_85); -x_120 = x_149; -goto block_140; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; -lean_dec_ref(x_5); -x_150 = lean_ctor_get(x_141, 0); -lean_inc(x_150); -lean_dec_ref(x_141); -x_151 = lean_ctor_get(x_145, 0); -lean_inc(x_151); -lean_dec_ref(x_145); -x_152 = lean_ctor_get(x_148, 0); -lean_inc(x_152); -lean_dec_ref(x_148); -x_153 = lean_box(0); -x_154 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_154, 0, x_150); -lean_ctor_set(x_154, 1, x_151); -lean_ctor_set(x_154, 2, x_152); -lean_ctor_set(x_154, 3, x_153); -x_90 = x_154; -x_91 = x_86; -x_92 = x_85; -goto block_119; -} -} -} -block_119: -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; -x_93 = lean_ctor_get(x_87, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_87, 2); -lean_inc_ref(x_94); -lean_dec_ref(x_87); -lean_inc_ref(x_94); -x_95 = l_Lake_GitRepo_hasNoDiff(x_94, x_92); -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -x_97 = lean_unbox(x_96); -lean_dec(x_96); -if (x_97 == 0) -{ -lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104; uint8_t x_105; uint8_t x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -lean_dec_ref(x_95); -x_99 = 1; -x_100 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_93, x_99); -x_101 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___closed__0; -x_102 = lean_string_append(x_100, x_101); -x_103 = 2; -x_104 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set_uint8(x_104, sizeof(void*)*1, x_103); -x_105 = 1; -x_106 = 0; -x_107 = lean_box(1); -x_108 = l_Lake_OutStream_logEntry(x_107, x_104, x_105, x_106, x_98); -lean_dec_ref(x_104); -x_109 = !lean_is_exclusive(x_108); -if (x_109 == 0) -{ -lean_object* x_110; lean_object* x_111; uint8_t x_112; -x_110 = lean_ctor_get(x_108, 1); -x_111 = lean_ctor_get(x_108, 0); -lean_dec(x_111); -x_112 = l_Lake_instOrdLogLevel_ord(x_103, x_4); -if (x_112 == 2) -{ -lean_free_object(x_108); -x_8 = x_90; -x_9 = x_94; -x_10 = x_89; -x_11 = x_91; -x_12 = x_110; -goto block_66; -} -else -{ -lean_object* x_113; -lean_dec_ref(x_94); -lean_dec_ref(x_91); -lean_dec_ref(x_90); -lean_dec_ref(x_89); +uint8_t x_89; +lean_dec_ref(x_37); +lean_dec_ref(x_35); +lean_dec_ref(x_34); +lean_dec_ref(x_33); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_113 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; -lean_ctor_set_tag(x_108, 1); -lean_ctor_set(x_108, 0, x_113); -return x_108; -} +x_89 = !lean_is_exclusive(x_41); +if (x_89 == 0) +{ +return x_41; } else { -lean_object* x_114; uint8_t x_115; -x_114 = lean_ctor_get(x_108, 1); -lean_inc(x_114); -lean_dec(x_108); -x_115 = l_Lake_instOrdLogLevel_ord(x_103, x_4); -if (x_115 == 2) +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_41, 0); +x_91 = lean_ctor_get(x_41, 1); +lean_inc(x_91); +lean_inc(x_90); +lean_dec(x_41); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_90); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +} +block_147: { -x_8 = x_90; -x_9 = x_94; -x_10 = x_89; -x_11 = x_91; -x_12 = x_114; -goto block_66; +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; +x_99 = lean_ctor_get(x_31, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_31, 2); +lean_inc_ref(x_100); +lean_dec_ref(x_31); +lean_inc_ref(x_100); +x_101 = l_Lake_GitRepo_hasNoDiff(x_100, x_98); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec_ref(x_101); +x_104 = !lean_is_exclusive(x_96); +if (x_104 == 0) +{ +uint8_t x_105; +lean_ctor_set_uint8(x_96, sizeof(void*)*4 + 1, x_4); +x_105 = lean_unbox(x_102); +lean_dec(x_102); +if (x_105 == 0) +{ +uint8_t x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +x_106 = 1; +x_107 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_99, x_106); +x_108 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___closed__0; +x_109 = lean_string_append(x_107, x_108); +x_110 = 2; +x_111 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set_uint8(x_111, sizeof(void*)*1, x_110); +x_112 = 1; +x_113 = 0; +x_114 = lean_box(1); +x_115 = l_Lake_OutStream_logEntry(x_114, x_111, x_112, x_113, x_103); +lean_dec_ref(x_111); +x_116 = !lean_is_exclusive(x_115); +if (x_116 == 0) +{ +lean_object* x_117; lean_object* x_118; uint8_t x_119; +x_117 = lean_ctor_get(x_115, 1); +x_118 = lean_ctor_get(x_115, 0); +lean_dec(x_118); +x_119 = l_Lake_instOrdLogLevel_ord(x_110, x_5); +if (x_119 == 2) +{ +lean_free_object(x_115); +x_34 = x_96; +x_35 = x_94; +x_36 = x_100; +x_37 = x_95; +x_38 = x_97; +x_39 = x_117; +goto block_93; } else { -lean_object* x_116; lean_object* x_117; +lean_object* x_120; +lean_dec_ref(x_96); +lean_dec_ref(x_100); +lean_dec_ref(x_97); +lean_dec_ref(x_95); lean_dec_ref(x_94); -lean_dec_ref(x_91); -lean_dec_ref(x_90); -lean_dec_ref(x_89); +lean_dec_ref(x_33); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_116 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; -x_117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_117, 0, x_116); -lean_ctor_set(x_117, 1, x_114); -return x_117; -} +x_120 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; +lean_ctor_set_tag(x_115, 1); +lean_ctor_set(x_115, 0, x_120); +return x_115; } } else { -lean_object* x_118; -lean_dec(x_93); -x_118 = lean_ctor_get(x_95, 1); -lean_inc(x_118); -lean_dec_ref(x_95); -x_8 = x_90; -x_9 = x_94; -x_10 = x_89; -x_11 = x_91; -x_12 = x_118; -goto block_66; -} -} -block_140: -{ -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; -x_121 = lean_ctor_get(x_120, 0); +lean_object* x_121; uint8_t x_122; +x_121 = lean_ctor_get(x_115, 1); lean_inc(x_121); -if (lean_obj_tag(x_121) == 0) +lean_dec(x_115); +x_122 = l_Lake_instOrdLogLevel_ord(x_110, x_5); +if (x_122 == 2) { -uint8_t x_122; -lean_dec_ref(x_89); -lean_dec_ref(x_87); +x_34 = x_96; +x_35 = x_94; +x_36 = x_100; +x_37 = x_95; +x_38 = x_97; +x_39 = x_121; +goto block_93; +} +else +{ +lean_object* x_123; lean_object* x_124; +lean_dec_ref(x_96); +lean_dec_ref(x_100); +lean_dec_ref(x_97); +lean_dec_ref(x_95); +lean_dec_ref(x_94); +lean_dec_ref(x_33); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_122 = !lean_is_exclusive(x_120); -if (x_122 == 0) -{ -lean_object* x_123; uint8_t x_124; -x_123 = lean_ctor_get(x_120, 0); -lean_dec(x_123); -x_124 = !lean_is_exclusive(x_121); -if (x_124 == 0) -{ -return x_120; +x_123 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_121); +return x_124; } -else -{ -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_121, 0); -lean_inc(x_125); -lean_dec(x_121); -x_126 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_120, 0, x_126); -return x_120; } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_127 = lean_ctor_get(x_120, 1); +lean_dec(x_99); +x_34 = x_96; +x_35 = x_94; +x_36 = x_100; +x_37 = x_95; +x_38 = x_97; +x_39 = x_103; +goto block_93; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; uint8_t x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; +x_125 = lean_ctor_get(x_96, 0); +x_126 = lean_ctor_get(x_96, 1); +x_127 = lean_ctor_get(x_96, 2); +x_128 = lean_ctor_get_uint8(x_96, sizeof(void*)*4); +x_129 = lean_ctor_get(x_96, 3); +lean_inc(x_129); lean_inc(x_127); -lean_dec(x_120); -x_128 = lean_ctor_get(x_121, 0); -lean_inc(x_128); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - x_129 = x_121; +lean_inc(x_126); +lean_inc(x_125); +lean_dec(x_96); +x_130 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_130, 0, x_125); +lean_ctor_set(x_130, 1, x_126); +lean_ctor_set(x_130, 2, x_127); +lean_ctor_set(x_130, 3, x_129); +lean_ctor_set_uint8(x_130, sizeof(void*)*4, x_128); +lean_ctor_set_uint8(x_130, sizeof(void*)*4 + 1, x_4); +x_131 = lean_unbox(x_102); +lean_dec(x_102); +if (x_131 == 0) +{ +uint8_t x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; uint8_t x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; +x_132 = 1; +x_133 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_99, x_132); +x_134 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___closed__0; +x_135 = lean_string_append(x_133, x_134); +x_136 = 2; +x_137 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set_uint8(x_137, sizeof(void*)*1, x_136); +x_138 = 1; +x_139 = 0; +x_140 = lean_box(1); +x_141 = l_Lake_OutStream_logEntry(x_140, x_137, x_138, x_139, x_103); +lean_dec_ref(x_137); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + x_143 = x_141; } else { - lean_dec_ref(x_121); - x_129 = lean_box(0); -} -if (lean_is_scalar(x_129)) { - x_130 = lean_alloc_ctor(0, 1, 0); -} else { - x_130 = x_129; -} -lean_ctor_set(x_130, 0, x_128); -x_131 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_131, 0, x_130); -lean_ctor_set(x_131, 1, x_127); -return x_131; + lean_dec_ref(x_141); + x_143 = lean_box(0); } +x_144 = l_Lake_instOrdLogLevel_ord(x_136, x_5); +if (x_144 == 2) +{ +lean_dec(x_143); +x_34 = x_130; +x_35 = x_94; +x_36 = x_100; +x_37 = x_95; +x_38 = x_97; +x_39 = x_142; +goto block_93; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_132 = lean_ctor_get(x_121, 0); -lean_inc(x_132); -lean_dec_ref(x_121); -x_133 = lean_ctor_get(x_120, 1); -lean_inc(x_133); -lean_dec_ref(x_120); -x_134 = lean_ctor_get(x_132, 0); -lean_inc(x_134); -x_135 = lean_ctor_get(x_132, 1); -lean_inc(x_135); -lean_dec(x_132); -x_90 = x_134; -x_91 = x_135; -x_92 = x_133; -goto block_119; -} -} -else -{ -uint8_t x_136; -lean_dec_ref(x_89); -lean_dec_ref(x_87); +lean_object* x_145; lean_object* x_146; +lean_dec_ref(x_130); +lean_dec_ref(x_100); +lean_dec_ref(x_97); +lean_dec_ref(x_95); +lean_dec_ref(x_94); +lean_dec_ref(x_33); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_136 = !lean_is_exclusive(x_120); -if (x_136 == 0) -{ -return x_120; -} -else -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_120, 0); -x_138 = lean_ctor_get(x_120, 1); -lean_inc(x_138); -lean_inc(x_137); -lean_dec(x_120); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -return x_139; -} -} +x_145 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed__const__1; +if (lean_is_scalar(x_143)) { + x_146 = lean_alloc_ctor(1, 2, 0); +} else { + x_146 = x_143; + lean_ctor_set_tag(x_146, 1); } +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_142); +return x_146; } } else { -uint8_t x_155; -lean_dec_ref(x_5); +lean_dec(x_99); +x_34 = x_130; +x_35 = x_94; +x_36 = x_100; +x_37 = x_95; +x_38 = x_97; +x_39 = x_103; +goto block_93; +} +} +} +block_170: +{ +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +if (lean_obj_tag(x_151) == 0) +{ +uint8_t x_152; +lean_dec_ref(x_149); +lean_dec_ref(x_148); +lean_dec_ref(x_33); +lean_dec_ref(x_31); lean_dec_ref(x_3); lean_dec_ref(x_2); -x_155 = !lean_is_exclusive(x_71); -if (x_155 == 0) +x_152 = !lean_is_exclusive(x_150); +if (x_152 == 0) { -return x_71; +lean_object* x_153; uint8_t x_154; +x_153 = lean_ctor_get(x_150, 0); +lean_dec(x_153); +x_154 = !lean_is_exclusive(x_151); +if (x_154 == 0) +{ +return x_150; } else { -lean_object* x_156; lean_object* x_157; lean_object* x_158; -x_156 = lean_ctor_get(x_71, 0); -x_157 = lean_ctor_get(x_71, 1); +lean_object* x_155; lean_object* x_156; +x_155 = lean_ctor_get(x_151, 0); +lean_inc(x_155); +lean_dec(x_151); +x_156 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_150, 0, x_156); +return x_150; +} +} +else +{ +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_157 = lean_ctor_get(x_150, 1); lean_inc(x_157); -lean_inc(x_156); -lean_dec(x_71); -x_158 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_158, 0, x_156); -lean_ctor_set(x_158, 1, x_157); -return x_158; +lean_dec(x_150); +x_158 = lean_ctor_get(x_151, 0); +lean_inc(x_158); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + x_159 = x_151; +} else { + lean_dec_ref(x_151); + x_159 = lean_box(0); } +if (lean_is_scalar(x_159)) { + x_160 = lean_alloc_ctor(0, 1, 0); +} else { + x_160 = x_159; } -} -else -{ -uint8_t x_159; -lean_dec_ref(x_6); -lean_dec_ref(x_5); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_159 = !lean_is_exclusive(x_67); -if (x_159 == 0) -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_67, 0); -x_161 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_160, 0, x_158); +x_161 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_161, 0, x_160); -lean_ctor_set_tag(x_67, 0); -lean_ctor_set(x_67, 0, x_161); -return x_67; +lean_ctor_set(x_161, 1, x_157); +return x_161; +} } else { lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_162 = lean_ctor_get(x_67, 0); -x_163 = lean_ctor_get(x_67, 1); -lean_inc(x_163); +x_162 = lean_ctor_get(x_151, 0); lean_inc(x_162); -lean_dec(x_67); -x_164 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_164, 0, x_162); -x_165 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_165, 0, x_164); -lean_ctor_set(x_165, 1, x_163); -return x_165; +lean_dec_ref(x_151); +x_163 = lean_ctor_get(x_150, 1); +lean_inc(x_163); +lean_dec_ref(x_150); +x_164 = lean_ctor_get(x_162, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_162, 1); +lean_inc(x_165); +lean_dec(x_162); +x_94 = x_148; +x_95 = x_149; +x_96 = x_164; +x_97 = x_165; +x_98 = x_163; +goto block_147; } } -block_66: +else { -lean_object* x_13; lean_object* x_14; -x_13 = lean_alloc_closure((void*)(l_Lake_GitRepo_getHeadRevision), 3, 1); -lean_closure_set(x_13, 0, x_9); -x_14 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_13, x_11, x_12); -if (lean_obj_tag(x_14) == 0) +uint8_t x_166; +lean_dec_ref(x_149); +lean_dec_ref(x_148); +lean_dec_ref(x_33); +lean_dec_ref(x_31); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_166 = !lean_is_exclusive(x_150); +if (x_166 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); +return x_150; +} +else +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_150, 0); +x_168 = lean_ctor_get(x_150, 1); +lean_inc(x_168); +lean_inc(x_167); +lean_dec(x_150); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_167); +lean_ctor_set(x_169, 1, x_168); +return x_169; +} +} +} +block_188: +{ +lean_object* x_173; +x_173 = lean_ctor_get(x_32, 8); +lean_inc(x_173); +if (lean_obj_tag(x_173) == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_32, 9); +lean_inc(x_174); +x_175 = lean_ctor_get(x_32, 10); +lean_inc(x_175); +lean_dec_ref(x_32); +x_176 = lean_apply_5(x_6, x_173, x_174, x_175, x_30, x_29); +x_148 = x_171; +x_149 = x_172; +x_150 = x_176; +goto block_170; +} +else +{ +lean_object* x_177; +x_177 = lean_ctor_get(x_32, 9); +lean_inc(x_177); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_32, 10); +lean_inc(x_178); +lean_dec_ref(x_32); +x_179 = lean_apply_5(x_6, x_173, x_177, x_178, x_30, x_29); +x_148 = x_171; +x_149 = x_172; +x_150 = x_179; +goto block_170; +} +else +{ +lean_object* x_180; +x_180 = lean_ctor_get(x_32, 10); +lean_inc(x_180); +lean_dec_ref(x_32); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; +x_181 = lean_apply_5(x_6, x_173, x_177, x_180, x_30, x_29); +x_148 = x_171; +x_149 = x_172; +x_150 = x_181; +goto block_170; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; +lean_dec_ref(x_6); +x_182 = lean_ctor_get(x_173, 0); +lean_inc(x_182); +lean_dec_ref(x_173); +x_183 = lean_ctor_get(x_177, 0); +lean_inc(x_183); +lean_dec_ref(x_177); +x_184 = lean_ctor_get(x_180, 0); +lean_inc(x_184); +lean_dec_ref(x_180); +x_185 = 0; +x_186 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_187 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_187, 0, x_182); +lean_ctor_set(x_187, 1, x_183); +lean_ctor_set(x_187, 2, x_184); +lean_ctor_set(x_187, 3, x_186); +lean_ctor_set_uint8(x_187, sizeof(void*)*4, x_185); +lean_ctor_set_uint8(x_187, sizeof(void*)*4 + 1, x_185); +x_94 = x_171; +x_95 = x_172; +x_96 = x_187; +x_97 = x_30; +x_98 = x_29; +goto block_147; +} +} +} +} +block_194: +{ +lean_object* x_191; uint8_t x_192; +x_191 = lean_ctor_get(x_31, 4); +x_192 = lean_ctor_get_uint8(x_191, sizeof(void*)*26); +if (x_192 == 0) +{ +x_171 = x_189; +x_172 = x_190; +goto block_188; +} +else +{ +lean_object* x_193; +lean_dec_ref(x_190); +x_193 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_171 = x_189; +x_172 = x_193; +goto block_188; +} +} +block_198: +{ +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_196; +x_196 = lean_ctor_get(x_32, 15); +lean_inc_ref(x_196); +x_189 = x_195; +x_190 = x_196; +goto block_194; +} +else +{ +lean_object* x_197; +x_197 = lean_ctor_get(x_7, 0); +lean_inc(x_197); +lean_dec_ref(x_7); +x_189 = x_195; +x_190 = x_197; +goto block_194; +} +} +block_206: +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_200 = lean_ctor_get(x_31, 4); +x_201 = lean_ctor_get(x_200, 1); +x_202 = lean_ctor_get(x_201, 10); +x_203 = l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1; +x_204 = l_Option_instBEq_beq___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2_spec__1(x_202, x_203); +if (x_204 == 0) +{ +x_195 = x_199; +goto block_198; +} +else +{ +lean_object* x_205; +lean_dec_ref(x_199); +x_205 = l_Lake_LakeOptions_mkLoadConfig___closed__2; +x_195 = x_205; +goto block_198; +} +} +} +} +else +{ +uint8_t x_209; +lean_dec(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); +lean_dec_ref(x_3); +lean_dec_ref(x_2); +x_209 = !lean_is_exclusive(x_15); +if (x_209 == 0) +{ +return x_15; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_15, 0); +x_211 = lean_ctor_get(x_15, 1); +lean_inc(x_211); +lean_inc(x_210); lean_dec(x_15); -x_17 = lean_ctor_get(x_14, 1); -lean_inc(x_17); -lean_dec_ref(x_14); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -lean_inc_ref(x_2); -x_20 = lean_alloc_closure((void*)(l_Lake_CacheMap_load), 3, 1); -lean_closure_set(x_20, 0, x_2); -x_21 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_20, x_19, x_17); -if (lean_obj_tag(x_21) == 0) +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; +} +} +} +else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = lean_ctor_get(x_21, 1); -lean_inc(x_24); -lean_dec_ref(x_21); -x_25 = lean_ctor_get(x_23, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_closure((void*)(l_Lake_CacheMap_collectOutputDescrs), 3, 1); -lean_closure_set(x_27, 0, x_25); -x_28 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_27, x_26, x_24); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_29 = lean_ctor_get(x_28, 0); -lean_inc(x_29); -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); -lean_dec_ref(x_28); -x_32 = lean_ctor_get(x_30, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -lean_inc(x_32); -x_34 = lean_alloc_closure((void*)(l_Lake_Cache_getArtifactPaths___boxed), 4, 2); -lean_closure_set(x_34, 0, x_10); -lean_closure_set(x_34, 1, x_32); -x_35 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLogIO___redArg(x_34, x_33, x_31); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -lean_dec(x_36); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec_ref(x_35); -x_39 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_array_get_size(x_32); -lean_inc_ref(x_8); -lean_inc_ref(x_3); -x_42 = lean_alloc_closure((void*)(l_Lake_CacheService_uploadArtifacts___boxed), 7, 5); -lean_closure_set(x_42, 0, x_41); -lean_closure_set(x_42, 1, x_32); -lean_closure_set(x_42, 2, x_39); -lean_closure_set(x_42, 3, x_3); -lean_closure_set(x_42, 4, x_8); -x_43 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_42, x_40, x_38); -if (lean_obj_tag(x_43) == 0) -{ -lean_object* x_44; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -if (lean_obj_tag(x_44) == 0) -{ -lean_dec_ref(x_44); -lean_dec(x_18); -lean_dec_ref(x_8); +uint8_t x_213; +lean_dec_ref(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec_ref(x_6); lean_dec_ref(x_3); lean_dec_ref(x_2); -return x_43; +x_213 = !lean_is_exclusive(x_11); +if (x_213 == 0) +{ +lean_object* x_214; lean_object* x_215; +x_214 = lean_ctor_get(x_11, 0); +x_215 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_215, 0, x_214); +lean_ctor_set_tag(x_11, 0); +lean_ctor_set(x_11, 0, x_215); +return x_11; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -lean_dec_ref(x_44); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_dec_ref(x_43); -x_47 = lean_ctor_get(x_45, 1); -lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_alloc_closure((void*)(l_Lake_CacheService_uploadRevisionOutputs___boxed), 6, 4); -lean_closure_set(x_48, 0, x_18); -lean_closure_set(x_48, 1, x_2); -lean_closure_set(x_48, 2, x_3); -lean_closure_set(x_48, 3, x_8); -x_49 = l___private_Lake_CLI_Main_0__Lake_CliStateM_runLoggerIO___redArg(x_48, x_47, x_46); -return x_49; -} -} -else -{ -lean_dec(x_18); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -return x_43; -} -} -else -{ -uint8_t x_50; -lean_dec(x_32); -lean_dec(x_18); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_50 = !lean_is_exclusive(x_35); -if (x_50 == 0) -{ -return x_35; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_35, 0); -x_52 = lean_ctor_get(x_35, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_35); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -uint8_t x_54; -lean_dec(x_18); -lean_dec_ref(x_10); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_54 = !lean_is_exclusive(x_28); -if (x_54 == 0) -{ -return x_28; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_28, 0); -x_56 = lean_ctor_get(x_28, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_28); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; -} -} -} -else -{ -uint8_t x_58; -lean_dec(x_18); -lean_dec_ref(x_10); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_58 = !lean_is_exclusive(x_21); -if (x_58 == 0) -{ -return x_21; -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_59 = lean_ctor_get(x_21, 0); -x_60 = lean_ctor_get(x_21, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_21); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_59); -lean_ctor_set(x_61, 1, x_60); -return x_61; -} -} -} -else -{ -uint8_t x_62; -lean_dec_ref(x_10); -lean_dec_ref(x_8); -lean_dec_ref(x_3); -lean_dec_ref(x_2); -x_62 = !lean_is_exclusive(x_14); -if (x_62 == 0) -{ -return x_14; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_14, 0); -x_64 = lean_ctor_get(x_14, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_14); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; +x_216 = lean_ctor_get(x_11, 0); +x_217 = lean_ctor_get(x_11, 1); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_11); +x_218 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_218, 0, x_216); +x_219 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_217); +return x_219; } } } @@ -23269,7 +26745,7 @@ static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_put___clo _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("the `--scope` option must be set for `cache put`", 48, 48); +x_1 = lean_mk_string_unchecked("the `--scope` or `--repo` option must be set for `cache put`", 60, 60); return x_1; } } @@ -23485,7 +26961,7 @@ return x_52; } else { -lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_53 = lean_ctor_get(x_25, 1); lean_inc(x_53); lean_dec_ref(x_25); @@ -23494,44 +26970,53 @@ lean_inc(x_54); x_55 = lean_ctor_get(x_38, 1); lean_inc(x_55); lean_dec(x_38); -x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*15 + 8); -x_57 = lean_ctor_get(x_40, 0); -x_58 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__0___boxed), 5, 0); -x_59 = lean_box(x_56); -lean_inc(x_57); +x_56 = lean_ctor_get_uint8(x_39, sizeof(void*)*17 + 8); +x_57 = lean_ctor_get_uint8(x_39, sizeof(void*)*17 + 13); +x_58 = lean_ctor_get(x_39, 13); +x_59 = lean_ctor_get(x_39, 14); +x_60 = lean_ctor_get(x_40, 0); +x_61 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__0___boxed), 5, 0); +x_62 = lean_box(x_57); +x_63 = lean_box(x_56); +lean_inc(x_58); +lean_inc(x_59); +lean_inc(x_60); lean_inc(x_39); -x_60 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed), 7, 5); -lean_closure_set(x_60, 0, x_39); -lean_closure_set(x_60, 1, x_54); -lean_closure_set(x_60, 2, x_57); -lean_closure_set(x_60, 3, x_59); -lean_closure_set(x_60, 4, x_58); -x_61 = l___private_Lake_CLI_Main_0__Lake_noArgsRem___redArg(x_60, x_55, x_39, x_53); -return x_61; +x_64 = lean_alloc_closure((void*)(l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed), 10, 8); +lean_closure_set(x_64, 0, x_39); +lean_closure_set(x_64, 1, x_54); +lean_closure_set(x_64, 2, x_60); +lean_closure_set(x_64, 3, x_62); +lean_closure_set(x_64, 4, x_63); +lean_closure_set(x_64, 5, x_61); +lean_closure_set(x_64, 6, x_59); +lean_closure_set(x_64, 7, x_58); +x_65 = l___private_Lake_CLI_Main_0__Lake_noArgsRem___redArg(x_64, x_55, x_39, x_53); +return x_65; } } } } else { -uint8_t x_62; -x_62 = !lean_is_exclusive(x_6); -if (x_62 == 0) +uint8_t x_66; +x_66 = !lean_is_exclusive(x_6); +if (x_66 == 0) { return x_6; } else { -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_6, 0); -x_64 = lean_ctor_get(x_6, 1); -lean_inc(x_64); -lean_inc(x_63); +lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_67 = lean_ctor_get(x_6, 0); +x_68 = lean_ctor_get(x_6, 1); +lean_inc(x_68); +lean_inc(x_67); lean_dec(x_6); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +x_69 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +return x_69; } } } @@ -23546,13 +27031,14 @@ lean_dec(x_1); return x_6; } } -LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_4); -x_9 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(x_1, x_2, x_3, x_8, x_5, x_6, x_7); -return x_9; +uint8_t x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_unbox(x_4); +x_12 = lean_unbox(x_5); +x_13 = l___private_Lake_CLI_Main_0__Lake_lake_cache_put___lam__1(x_1, x_2, x_3, x_11, x_12, x_6, x_7, x_8, x_9, x_10); +return x_13; } } static lean_object* _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_add___lam__0___boxed__const__1() { @@ -27942,7 +31428,7 @@ lean_inc(x_9); lean_dec_ref(x_7); x_10 = lean_ctor_get(x_1, 1); lean_inc_ref(x_10); -x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 11); +x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 11); lean_dec_ref(x_1); x_12 = lean_box(x_3); x_13 = lean_box(x_4); @@ -28305,7 +31791,7 @@ lean_inc(x_9); lean_dec_ref(x_7); x_10 = lean_ctor_get(x_1, 1); lean_inc_ref(x_10); -x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*15 + 11); +x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*17 + 11); lean_dec_ref(x_1); x_12 = lean_box(x_3); x_13 = lean_box(x_4); @@ -30331,7 +33817,7 @@ lean_inc(x_65); x_66 = lean_ctor_get(x_64, 1); lean_inc(x_66); lean_dec_ref(x_64); -x_67 = lean_ctor_get_uint8(x_39, sizeof(void*)*15 + 10); +x_67 = lean_ctor_get_uint8(x_39, sizeof(void*)*17 + 10); x_68 = lean_box(1); x_69 = 0; x_70 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig(x_39, x_68, x_69); @@ -30377,7 +33863,7 @@ if (x_86 == 0) lean_object* x_87; lean_dec(x_84); lean_dec(x_82); -x_87 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_87 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; lean_ctor_set(x_58, 0, x_87); lean_ctor_set(x_77, 0, x_46); return x_77; @@ -30391,7 +33877,7 @@ if (x_88 == 0) lean_object* x_89; lean_dec(x_84); lean_dec(x_82); -x_89 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_89 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; lean_ctor_set(x_58, 0, x_89); lean_ctor_set(x_77, 0, x_46); return x_77; @@ -30429,7 +33915,7 @@ if (x_98 == 0) lean_object* x_99; lean_object* x_100; lean_dec(x_96); lean_dec(x_94); -x_99 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_99 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; lean_ctor_set(x_58, 0, x_99); x_100 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_100, 0, x_46); @@ -30445,7 +33931,7 @@ if (x_101 == 0) lean_object* x_102; lean_object* x_103; lean_dec(x_96); lean_dec(x_94); -x_102 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_102 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; lean_ctor_set(x_58, 0, x_102); x_103 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_103, 0, x_46); @@ -30553,7 +34039,7 @@ lean_inc(x_120); x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); lean_dec_ref(x_119); -x_122 = lean_ctor_get_uint8(x_39, sizeof(void*)*15 + 10); +x_122 = lean_ctor_get_uint8(x_39, sizeof(void*)*17 + 10); x_123 = lean_box(1); x_124 = 0; x_125 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig(x_39, x_123, x_124); @@ -30602,7 +34088,7 @@ if (x_140 == 0) lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_dec(x_138); lean_dec(x_136); -x_141 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_141 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; x_142 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_117); @@ -30625,7 +34111,7 @@ if (x_144 == 0) lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_dec(x_138); lean_dec(x_136); -x_145 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_145 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; x_146 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_146, 0, x_145); lean_ctor_set(x_146, 1, x_117); @@ -30747,7 +34233,7 @@ lean_inc(x_166); x_167 = lean_ctor_get(x_165, 1); lean_inc(x_167); lean_dec_ref(x_165); -x_168 = lean_ctor_get_uint8(x_39, sizeof(void*)*15 + 10); +x_168 = lean_ctor_get_uint8(x_39, sizeof(void*)*17 + 10); x_169 = lean_box(1); x_170 = 0; x_171 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig(x_39, x_169, x_170); @@ -30796,7 +34282,7 @@ if (x_186 == 0) lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_dec(x_184); lean_dec(x_182); -x_187 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_187 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; if (lean_is_scalar(x_163)) { x_188 = lean_alloc_ctor(0, 2, 0); } else { @@ -30824,7 +34310,7 @@ if (x_191 == 0) lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_dec(x_184); lean_dec(x_182); -x_192 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_192 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; if (lean_is_scalar(x_163)) { x_193 = lean_alloc_ctor(0, 2, 0); } else { @@ -31092,7 +34578,7 @@ lean_inc(x_242); x_243 = lean_ctor_get(x_241, 1); lean_inc(x_243); lean_dec_ref(x_241); -x_244 = lean_ctor_get_uint8(x_220, sizeof(void*)*15 + 10); +x_244 = lean_ctor_get_uint8(x_220, sizeof(void*)*17 + 10); x_245 = lean_box(1); x_246 = 0; x_247 = l___private_Lake_CLI_Main_0__Lake_LakeOptions_mkBuildConfig(x_220, x_245, x_246); @@ -31141,7 +34627,7 @@ if (x_262 == 0) lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_dec(x_260); lean_dec(x_258); -x_263 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_263 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; if (lean_is_scalar(x_239)) { x_264 = lean_alloc_ctor(0, 2, 0); } else { @@ -31173,7 +34659,7 @@ if (x_267 == 0) lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_dec(x_260); lean_dec(x_258); -x_268 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__29; +x_268 = l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__31; if (lean_is_scalar(x_239)) { x_269 = lean_alloc_ctor(0, 2, 0); } else { @@ -49919,6 +53405,22 @@ l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__6 = _init_l___privat lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__6); l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeShortOption___closed__7); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__0); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__1); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__2); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__3); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__4); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__5); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__6); +l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_validateRepo_x3f___closed__7); l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__0(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__0); l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__1(); @@ -49999,6 +53501,22 @@ l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38 = _init_l___privat lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__38); l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__39); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__40); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__41); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__42); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__43); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__44); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__45); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__46); +l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___closed__47); l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1 = _init_l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lakeLongOption___boxed__const__1); l___private_Lake_CLI_Main_0__Lake_verifyLeanVersion___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_verifyLeanVersion___closed__0(); @@ -50033,33 +53551,43 @@ l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec___closed__0 = _init_l___ lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec___closed__0); l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec___closed__1(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_parseTemplateLangSpec___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_cachePlatform___closed__1); l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__0(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__0); l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__1(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__1); l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__2(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_invalidEndpointConfig___closed__2); -l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0(); -lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs_spec__0___closed__0); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__0); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__1); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__2); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__3); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__4); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__5); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__6(); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__7(); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__8(); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_getOutputs___closed__9); -l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0(); -lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__0___closed__0); +l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0(); +lean_mark_persistent(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at_____private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs_spec__0___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__2); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__3); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__4); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__5); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__6(); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__7(); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get_findOutputs___closed__8(); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__2___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__1___redArg___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__0); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___elam__3___closed__1); l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__0); l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___lam__0___closed__1(); @@ -50082,6 +53610,8 @@ l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__0 = _init_l___private lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__0); l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__1(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__1); +l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2(); +lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_get___closed__2); l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__0 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__0(); lean_mark_persistent(l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__0); l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__1 = _init_l___private_Lake_CLI_Main_0__Lake_lake_cache_put_invalidEndpointConfig___closed__1(); diff --git a/stage0/stdlib/Lake/Config/Cache.c b/stage0/stdlib/Lake/Config/Cache.c index 9c73fd2f2c..c36d360469 100644 --- a/stage0/stdlib/Lake/Config/Cache.c +++ b/stage0/stdlib/Lake/Config/Cache.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lake.Config.Cache -// Imports: public import Lake.Util.Log public import Lake.Config.Artifact public import Lake.Build.Trace import Lake.Build.Actions import Lake.Util.Url import Lake.Util.Proc import Lake.Util.Reservoir import Lake.Util.IO +// Imports: public import Lake.Util.Log public import Lake.Config.Artifact public import Lake.Build.Trace import Lake.Config.InstallPath import Lake.Build.Actions import Lake.Util.Url import Lake.Util.Proc import Lake.Util.Reservoir import Lake.Util.IO #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,6 +13,7 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lake_CacheService_withRepoScope___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_____private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go_spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -20,7 +21,7 @@ lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Control_0__Nat_forM_loop___at___Lake_CacheService_uploadArtifacts_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_Lake_CacheMap_insertCore___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_revisionPath___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_getArtifactPaths___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_System_instInhabitedFilePath_default; LEAN_EXPORT lean_object* l_Lake_Cache_ctorIdx(lean_object*); @@ -28,19 +29,24 @@ lean_object* lean_io_prim_handle_lock(lean_object*, uint8_t, lean_object*); static lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__3; lean_object* l_Lean_Json_compress(lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go___closed__3; +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadService(lean_object*, lean_object*, lean_object*); uint32_t lean_string_utf8_get(lean_object*, lean_object*); static uint8_t l_Lake_CacheService_downloadArtifact___closed__6; lean_object* lean_mk_empty_array_with_capacity(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_checkSchemaVersion(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0; lean_object* l_Lean_JsonNumber_toString(lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_parse___elam__0(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheService_artifactUrl___closed__0; LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0___at_____private_Init_Data_Nat_Control_0__Nat_forM_loop___at___Lake_CacheService_uploadArtifacts_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_Init_Data_Vector_Basic_0__Vector_mapM_go___at___Lake_Cache_getArtifactPaths_spec__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_CacheService_withRepoScope(lean_object*, uint8_t); +static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1; LEAN_EXPORT lean_object* l_Lake_CacheService_artifactContentType; lean_object* l_System_FilePath_join(lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__10; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go_spec__0(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lake_CacheMap_get_x3f_spec__0_spec__0___redArg(uint64_t, lean_object*); lean_object* lean_io_remove_file(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheService_downloadArtifacts_spec__0(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*); @@ -48,6 +54,8 @@ static lean_object* l_Lake_CacheService_downloadArtifacts___closed__0; static lean_object* l_Lake_Cache_getArtifact_x3f___closed__1; LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifact(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +lean_object* l___private_Lake_Config_InstallPath_0__Lake_toolchain2Dir_go(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_CacheService_revisionUrl___closed__1; static lean_object* l_Lake_Cache_readOutputs_x3f___closed__1; static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go___closed__0; LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -63,6 +71,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Prod_fromJson_x3f___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__8___closed__0; static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go___closed__4; LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifacts___elam__0(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0___boxed(lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__2___redArg(uint64_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifacts___elam__0___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheService_downloadArtifacts_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lake_CacheMap_get_x3f_spec__0___redArg___boxed(lean_object*, lean_object*); @@ -79,6 +88,7 @@ lean_object* l_Lake_download(lean_object*, lean_object*, lean_object*, lean_obje lean_object* lean_mk_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_writeOutputsCore(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_loadCore_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheService_downloadArtifact___closed__3; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_collectOutputDescrs_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,6 +103,7 @@ static lean_object* l_Lake_CacheService_revisionUrl___closed__0; static lean_object* l_Lake_CacheService_downloadArtifact___closed__4; LEAN_EXPORT lean_object* l_Lake_Cache_getArtifact(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__8; +LEAN_EXPORT lean_object* l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_insertCore(uint64_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__0(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Cache_revisionDir___closed__0; @@ -106,8 +117,10 @@ lean_object* l_Lake_Hash_hex(uint64_t); static lean_object* l_Lake_CacheMap_updateFile___closed__1; LEAN_EXPORT lean_object* l_Lake_CacheService_ctorIdx___boxed(lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); +lean_object* lean_string_push(lean_object*, uint32_t); LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__0; +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Cache_outputsFile___closed__0; LEAN_EXPORT lean_object* l_Lake_Cache_outputsDir(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Control_0__Nat_forM_loop___at___Lake_CacheService_uploadArtifacts_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -116,7 +129,7 @@ static lean_object* l_Lake_CacheService_mapContentType___closed__0; LEAN_EXPORT lean_object* l_Lake_Cache_getArtifactPaths(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_insert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__12; -LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__7; lean_object* l_Lean_Json_getStr_x3f(lean_object*); static lean_object* l_Lake_CacheService_artifactUrl___closed__1; @@ -130,13 +143,14 @@ LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0___boxed(l LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instInhabitedCache; LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lake_CacheMap_updateFile_spec__3___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__3_spec__3___redArg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheService_downloadArtifact___closed__2; lean_object* lean_st_ref_take(lean_object*, lean_object*); static lean_object* l_Lake_CacheService_downloadArtifact___closed__0; lean_object* l_Lake_createParentDirs(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___Lake_CacheMap_get_x3f_spec__0_spec__0(lean_object*, uint64_t, lean_object*); static lean_object* l_Lake_CacheMap_parse___closed__1; @@ -167,6 +181,7 @@ static lean_object* l_Lake_CacheMap_collectOutputDescrs___closed__0; LEAN_EXPORT lean_object* l___private_Init_Data_Nat_Control_0__Nat_forM_loop___at___Lake_CacheService_uploadArtifacts_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_CacheService_uploadArtifact___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_updateFile___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_reservoirService(lean_object*, uint8_t); static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0___closed__0; static lean_object* l_Lake_CacheService_downloadArtifact___closed__1; static lean_object* l_Lake_Cache_outputsDir___closed__0; @@ -184,8 +199,7 @@ LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0___at_____ lean_object* l_instBEqOfDecidableEq___redArg(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_parse___elam__0___redArg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lake_CacheService_artifactUrl_spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_revisionDir(lean_object*); lean_object* l_String_posOfAux(lean_object*, uint32_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_writeOutputsCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -195,8 +209,7 @@ LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifacts(lean_object*, lea lean_object* l_Lake_ArtifactDescr_ofFilePath_x3f(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_loadCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__1; -LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__16; LEAN_EXPORT lean_object* l_Lake_Cache_writeMap(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Cache_revisionPath___closed__0; @@ -207,14 +220,17 @@ lean_object* lean_io_prim_handle_mk(lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_Cache_writeMap_spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); static lean_object* l_Lake_CacheMap_parse___closed__4; LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifact___at___Lake_CacheService_uploadArtifacts___elam__0_spec__0(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_updateFile_spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheService_uploadArtifact___closed__0; static lean_object* l_Lake_CacheMap_load___closed__0; +static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1; LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifact___at___Lake_CacheService_downloadArtifacts___elam__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_revisionPath(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_insert___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lake_CacheService_reservoirService___closed__0; LEAN_EXPORT lean_object* l_Lake_Cache_ctorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__3_spec__3_spec__3(lean_object*, lean_object*, lean_object*); @@ -228,6 +244,7 @@ LEAN_EXPORT lean_object* l_Lake_CacheRef_mk(lean_object*, lean_object*); lean_object* l_IO_FS_readFile(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheService_downloadArtifacts_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_object* l_Prod_toJson___at___Lake_CacheMap_updateFile_spec__0___closed__0; +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadService(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_parse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__14; static lean_object* l_Lake_CacheMap_writeFile___closed__1; @@ -245,7 +262,6 @@ static lean_object* l_Lake_CacheMap_updateFile___closed__0; static lean_object* l_Lake_Cache_getArtifactPaths___closed__0; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_getArtifactPaths___lam__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_String_split___at___Lake_CacheService_artifactUrl_spec__0(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__4; static lean_object* l_Lake_instInhabitedCache_default___closed__0; @@ -254,6 +270,7 @@ static lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__2; static lean_object* l_Lake_Cache_artifactPath___closed__0; LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtifacts___at___Lake_CacheService_downloadOutputArtifacts_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheRef_insert___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtsService(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___Lake_Cache_getArtifactPaths_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_CacheMap_writeFile___closed__0; LEAN_EXPORT lean_object* l_Lake_CacheRef_insert___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -266,7 +283,8 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_Const_get_x3f___at___ LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__6___redArg(uint64_t, lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); -lean_object* l_Lake_uriEncode(lean_object*); +lean_object* l_Lake_uriEncode(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(uint64_t, lean_object*, lean_object*); static lean_object* l_Lake_CacheMap_parse___closed__5; lean_object* l_List_reverse___redArg(lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); @@ -275,10 +293,11 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lake_Ca LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2(lean_object*, lean_object*, uint64_t, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_collectOutputDescrs_go___closed__2; lean_object* lean_nat_mul(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_CacheService_artifactUrl___closed__3; +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifact(uint64_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___at___Lake_Cache_getArtifactPaths_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0; LEAN_EXPORT lean_object* l_Lake_CacheMap_insert___redArg(lean_object*, uint64_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__6___redArg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_writeMap___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -287,14 +306,15 @@ lean_object* l_Nat_nextPowerOfTwo(lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_readOutputs_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___elam__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_proc(lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheMap_load(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_reservoirService___boxed(lean_object*, lean_object*); static size_t l_Lake_CacheService_downloadArtifact___closed__7; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_updateFile_spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_____private_Std_Data_DHashMap_Internal_Defs_0__Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__3_spec__3_spec__3___redArg(lean_object*, lean_object*); uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); static lean_object* l_Lake_Cache_getArtifact___closed__0; -lean_object* l_String_intercalate(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__3; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lake_CacheMap_updateFile_spec__3(lean_object*, lean_object*, lean_object*, lean_object*); @@ -304,6 +324,7 @@ LEAN_EXPORT lean_object* l_Lake_Cache_writeOutputs___redArg(lean_object*, lean_o LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Lake_CacheMap_updateFile_spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_checkSchemaVersion___closed__2; +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0(lean_object*); LEAN_EXPORT lean_object* l_Lake_Cache_writeOutputs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lake_Cache_getArtifact_x3f___closed__0; @@ -315,7 +336,6 @@ LEAN_EXPORT lean_object* l_Lake_Cache_writeOutputs(lean_object*, lean_object*, l LEAN_EXPORT lean_object* l_Lake_CacheMap_load_x3f(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_Cache_writeMap_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_String_split___at___Lake_CacheService_artifactUrl_spec__0___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifacts___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_computeBinFileHash(lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); @@ -333,7 +353,9 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Vector_Basic_0__Vector_mapM_go___ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2_spec__6(lean_object*, uint64_t, lean_object*, lean_object*); lean_object* l_Lean_Json_pretty(lean_object*, lean_object*); static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__6; -LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___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_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* lean_io_prim_handle_rewind(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_insert___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop___at_____private_Lake_Config_Cache_0__Lake_CacheMap_parse_loop_spec__0_spec__2___redArg___boxed(lean_object*, lean_object*, lean_object*); @@ -343,6 +365,7 @@ static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__9; static lean_object* l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__1; size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lake_CacheMap_insert(lean_object*, lean_object*, uint64_t, lean_object*, lean_object*); +static lean_object* l_Lake_CacheService_revisionUrl___closed__2; LEAN_EXPORT lean_object* l_Lake_CacheRef_insert___redArg(lean_object*, uint64_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lake_getUrl_x3f(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheMap_loadCore(lean_object*, lean_object*, lean_object*, lean_object*); @@ -7364,6 +7387,130 @@ lean_dec_ref(x_1); return x_2; } } +static lean_object* _init_l_Lake_CacheService_reservoirService___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("", 0, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_reservoirService(lean_object* x_1, uint8_t x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_3 = l_Lake_CacheService_reservoirService___closed__0; +x_4 = 1; +x_5 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_3); +lean_ctor_set(x_5, 2, x_3); +lean_ctor_set(x_5, 3, x_1); +lean_ctor_set_uint8(x_5, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 1, x_2); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_reservoirService___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +x_4 = l_Lake_CacheService_reservoirService(x_1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadService(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_4 = 0; +x_5 = l_Lake_CacheService_reservoirService___closed__0; +x_6 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_2); +lean_ctor_set(x_6, 2, x_3); +lean_ctor_set(x_6, 3, x_5); +lean_ctor_set_uint8(x_6, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_6, sizeof(void*)*4 + 1, x_4); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadService(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; uint8_t x_4; lean_object* x_5; +x_3 = l_Lake_CacheService_reservoirService___closed__0; +x_4 = 0; +x_5 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_5, 0, x_3); +lean_ctor_set(x_5, 1, x_1); +lean_ctor_set(x_5, 2, x_2); +lean_ctor_set(x_5, 3, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*4, x_4); +lean_ctor_set_uint8(x_5, sizeof(void*)*4 + 1, x_4); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadArtsService(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_2 = l_Lake_CacheService_reservoirService___closed__0; +x_3 = 0; +x_4 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_4, 0, x_2); +lean_ctor_set(x_4, 1, x_1); +lean_ctor_set(x_4, 2, x_2); +lean_ctor_set(x_4, 3, x_2); +lean_ctor_set_uint8(x_4, sizeof(void*)*4, x_3); +lean_ctor_set_uint8(x_4, sizeof(void*)*4 + 1, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_withRepoScope(lean_object* x_1, uint8_t x_2) { +_start: +{ +uint8_t x_3; +x_3 = !lean_is_exclusive(x_1); +if (x_3 == 0) +{ +lean_ctor_set_uint8(x_1, sizeof(void*)*4 + 1, x_2); +return x_1; +} +else +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; +x_4 = lean_ctor_get(x_1, 0); +x_5 = lean_ctor_get(x_1, 1); +x_6 = lean_ctor_get(x_1, 2); +x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); +x_8 = lean_ctor_get(x_1, 3); +lean_inc(x_8); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_dec(x_1); +x_9 = lean_alloc_ctor(0, 4, 2); +lean_ctor_set(x_9, 0, x_4); +lean_ctor_set(x_9, 1, x_5); +lean_ctor_set(x_9, 2, x_6); +lean_ctor_set(x_9, 3, x_8); +lean_ctor_set_uint8(x_9, sizeof(void*)*4, x_7); +lean_ctor_set_uint8(x_9, sizeof(void*)*4 + 1, x_2); +return x_9; +} +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_withRepoScope___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = lean_unbox(x_2); +x_4 = l_Lake_CacheService_withRepoScope(x_1, x_3); +return x_4; +} +} static lean_object* _init_l_Lake_CacheService_artifactContentType___closed__0() { _start: { @@ -7380,7 +7527,7 @@ x_1 = l_Lake_CacheService_artifactContentType___closed__0; return x_1; } } -LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -7430,67 +7577,84 @@ return x_17; } } } -LEAN_EXPORT lean_object* l_String_split___at___Lake_CacheService_artifactUrl_spec__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_unsigned_to_nat(0u); x_3 = lean_box(0); -x_4 = l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0(x_1, x_2, x_2, x_3); +x_4 = l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0(x_1, x_2, x_2, x_3); return x_4; } } -LEAN_EXPORT lean_object* l_List_mapTR_loop___at___Lake_CacheService_artifactUrl_spec__2(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2(lean_object* x_1, lean_object* x_2) { _start: { -if (lean_obj_tag(x_1) == 0) +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; uint32_t x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_2, 0); +x_4 = lean_ctor_get(x_2, 1); +x_5 = l_Lake_uriEncode(x_3, x_1); +x_6 = 47; +x_7 = lean_string_push(x_5, x_6); +x_1 = x_7; +x_2 = x_4; +goto _start; +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0(x_2); +x_4 = l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2(x_1, x_3); +lean_dec(x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_String_splitAux___at___String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0_spec__0(x_1, x_2, x_3, x_4); +lean_dec_ref(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_String_split___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__0(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: { lean_object* x_3; -x_3 = l_List_reverse___redArg(x_2); +x_3 = l_List_foldl___at_____private_Lake_Config_Cache_0__Lake_CacheService_appendScope_spec__2(x_1, x_2); +lean_dec(x_2); return x_3; } -else +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope___boxed(lean_object* x_1, lean_object* x_2) { +_start: { -uint8_t x_4; -x_4 = !lean_is_exclusive(x_1); -if (x_4 == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 0); -x_6 = lean_ctor_get(x_1, 1); -x_7 = l_Lake_uriEncode(x_5); -lean_dec(x_5); -lean_ctor_set(x_1, 1, x_2); -lean_ctor_set(x_1, 0, x_7); -{ -lean_object* _tmp_0 = x_6; -lean_object* _tmp_1 = x_1; -x_1 = _tmp_0; -x_2 = _tmp_1; -} -goto _start; -} -else -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_1, 1); -lean_inc(x_10); -lean_inc(x_9); -lean_dec(x_1); -x_11 = l_Lake_uriEncode(x_9); -lean_dec(x_9); -x_12 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_12, 0, x_11); -lean_ctor_set(x_12, 1, x_2); -x_1 = x_10; -x_2 = x_12; -goto _start; +lean_object* x_3; +x_3 = l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(x_1, x_2); +lean_dec_ref(x_2); +return x_3; } } -} -} -static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__0() { +static lean_object* _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0() { _start: { lean_object* x_1; @@ -7498,7 +7662,7 @@ x_1 = lean_mk_string_unchecked("/", 1, 1); return x_1; } } -static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__1() { +static lean_object* _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1() { _start: { lean_object* x_1; @@ -7506,7 +7670,44 @@ x_1 = lean_mk_string_unchecked(".art", 4, 4); return x_1; } } -static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__2() { +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(uint64_t x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_4 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_4); +lean_dec_ref(x_2); +x_5 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0; +x_6 = lean_string_append(x_4, x_5); +x_7 = l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(x_6, x_3); +x_8 = l_Lake_Hash_hex(x_1); +x_9 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1; +x_10 = lean_string_append(x_8, x_9); +x_11 = lean_string_append(x_7, x_10); +lean_dec_ref(x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint64_t x_4; lean_object* x_5; +x_4 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_5 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(x_4, x_2, x_3); +lean_dec_ref(x_3); +return x_5; +} +} +static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("artifacts/", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__1() { _start: { lean_object* x_1; @@ -7514,82 +7715,68 @@ x_1 = lean_mk_string_unchecked("/packages/", 10, 10); return x_1; } } -static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__3() { +static lean_object* _init_l_Lake_CacheService_artifactUrl___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("/artifacts/", 11, 11); +x_1 = lean_mk_string_unchecked("/repositories/", 14, 14); return x_1; } } LEAN_EXPORT lean_object* l_Lake_CacheService_artifactUrl(uint64_t x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_3, 1); -lean_inc_ref(x_4); -x_5 = lean_ctor_get(x_3, 3); -lean_inc(x_5); -lean_dec_ref(x_3); -x_6 = l_Lake_CacheService_artifactUrl___closed__0; -x_7 = l_String_split___at___Lake_CacheService_artifactUrl_spec__0(x_2); -x_8 = lean_box(0); -x_9 = l_List_mapTR_loop___at___Lake_CacheService_artifactUrl_spec__2(x_7, x_8); -x_10 = l_String_intercalate(x_6, x_9); -if (lean_obj_tag(x_5) == 0) +lean_object* x_4; uint8_t x_13; +x_13 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +if (x_13 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_11 = lean_string_append(x_4, x_6); -x_12 = lean_string_append(x_11, x_10); -lean_dec_ref(x_10); -x_13 = lean_string_append(x_12, x_6); -x_14 = l_Lake_Hash_hex(x_1); -x_15 = lean_string_append(x_13, x_14); -lean_dec_ref(x_14); -x_16 = l_Lake_CacheService_artifactUrl___closed__1; -x_17 = lean_string_append(x_15, x_16); -return x_17; +lean_object* x_14; +x_14 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(x_1, x_2, x_3); +return x_14; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -lean_dec_ref(x_4); -x_18 = lean_ctor_get(x_5, 0); -lean_inc(x_18); -lean_dec_ref(x_5); -x_19 = l_Lake_CacheService_artifactUrl___closed__2; -x_20 = lean_string_append(x_18, x_19); -x_21 = lean_string_append(x_20, x_10); +uint8_t x_15; +x_15 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_16); +lean_dec_ref(x_2); +x_17 = l_Lake_CacheService_artifactUrl___closed__1; +x_18 = lean_string_append(x_16, x_17); +x_4 = x_18; +goto block_12; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_19); +lean_dec_ref(x_2); +x_20 = l_Lake_CacheService_artifactUrl___closed__2; +x_21 = lean_string_append(x_19, x_20); +x_4 = x_21; +goto block_12; +} +} +block_12: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_5 = l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(x_4, x_3); +x_6 = l_Lake_CacheService_artifactUrl___closed__0; +x_7 = l_Lake_Hash_hex(x_1); +x_8 = lean_string_append(x_6, x_7); +lean_dec_ref(x_7); +x_9 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1; +x_10 = lean_string_append(x_8, x_9); +x_11 = lean_string_append(x_5, x_10); lean_dec_ref(x_10); -x_22 = l_Lake_CacheService_artifactUrl___closed__3; -x_23 = lean_string_append(x_21, x_22); -x_24 = l_Lake_Hash_hex(x_1); -x_25 = lean_string_append(x_23, x_24); -lean_dec_ref(x_24); -x_26 = l_Lake_CacheService_artifactUrl___closed__1; -x_27 = lean_string_append(x_25, x_26); -return x_27; +return x_11; } } } -LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_String_splitAux___at___String_split___at___Lake_CacheService_artifactUrl_spec__0_spec__0(x_1, x_2, x_3, x_4); -lean_dec_ref(x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_String_split___at___Lake_CacheService_artifactUrl_spec__0___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_String_split___at___Lake_CacheService_artifactUrl_spec__0(x_1); -lean_dec_ref(x_1); -return x_2; -} -} LEAN_EXPORT lean_object* l_Lake_CacheService_artifactUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -7597,7 +7784,7 @@ uint64_t x_4; lean_object* x_5; x_4 = lean_unbox_uint64(x_1); lean_dec(x_1); x_5 = l_Lake_CacheService_artifactUrl(x_4, x_2, x_3); -lean_dec_ref(x_2); +lean_dec_ref(x_3); return x_5; } } @@ -7605,7 +7792,7 @@ static lean_object* _init_l_Lake_CacheService_downloadArtifact___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(": downloaded artifact does not have expect hash", 47, 47); +x_1 = lean_mk_string_unchecked(": downloaded artifact does not have the expected hash", 53, 53); return x_1; } } @@ -7964,13 +8151,13 @@ block_142: { lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; x_89 = l_Lake_CacheService_downloadArtifact___closed__1; -x_90 = lean_string_append(x_3, x_89); +x_90 = lean_string_append(x_4, x_89); x_91 = l_Lake_Hash_hex(x_12); x_92 = lean_string_append(x_90, x_91); lean_dec_ref(x_91); x_93 = l_Lake_CacheService_downloadArtifact___closed__2; x_94 = lean_string_append(x_92, x_93); -x_95 = lean_string_append(x_94, x_88); +x_95 = lean_string_append(x_94, x_87); x_96 = l_Lake_CacheService_downloadArtifact___closed__3; x_97 = lean_string_append(x_95, x_96); x_98 = lean_string_append(x_97, x_86); @@ -7979,14 +8166,14 @@ x_100 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_100, 0, x_98); lean_ctor_set_uint8(x_100, sizeof(void*)*1, x_99); lean_inc_ref(x_6); -x_101 = lean_apply_2(x_6, x_100, x_87); +x_101 = lean_apply_2(x_6, x_100, x_88); x_102 = lean_ctor_get(x_101, 1); lean_inc(x_102); lean_dec_ref(x_101); x_103 = lean_unsigned_to_nat(0u); x_104 = l_Lake_Cache_getArtifactPaths___closed__0; -lean_inc_ref(x_88); -x_105 = l_Lake_download(x_86, x_88, x_104, x_104, x_102); +lean_inc_ref(x_87); +x_105 = l_Lake_download(x_86, x_87, x_104, x_104, x_102); x_106 = lean_ctor_get(x_105, 0); lean_inc(x_106); if (lean_obj_tag(x_106) == 0) @@ -8004,7 +8191,7 @@ if (x_110 == 0) { lean_dec(x_109); lean_dec(x_108); -x_14 = x_88; +x_14 = x_87; x_15 = x_107; goto block_85; } @@ -8016,7 +8203,7 @@ if (x_111 == 0) { lean_dec(x_109); lean_dec(x_108); -x_14 = x_88; +x_14 = x_87; x_15 = x_107; goto block_85; } @@ -8033,7 +8220,7 @@ lean_dec(x_108); x_116 = lean_ctor_get(x_115, 1); lean_inc(x_116); lean_dec_ref(x_115); -x_14 = x_88; +x_14 = x_87; x_15 = x_116; goto block_85; } @@ -8042,7 +8229,7 @@ goto block_85; else { uint8_t x_117; -lean_dec_ref(x_88); +lean_dec_ref(x_87); x_117 = !lean_is_exclusive(x_105); if (x_117 == 0) { @@ -8154,8 +8341,8 @@ block_148: { if (x_144 == 0) { -x_87 = x_145; -x_88 = x_143; +x_87 = x_143; +x_88 = x_145; goto block_142; } else @@ -8166,7 +8353,7 @@ lean_object* x_146; lean_object* x_147; lean_dec_ref(x_143); lean_dec_ref(x_86); lean_dec_ref(x_6); -lean_dec_ref(x_3); +lean_dec_ref(x_4); x_146 = lean_box(0); x_147 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_147, 0, x_146); @@ -8175,8 +8362,8 @@ return x_147; } else { -x_87 = x_145; -x_88 = x_143; +x_87 = x_143; +x_88 = x_145; goto block_142; } } @@ -8544,7 +8731,7 @@ block_142: { lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; x_89 = l_Lake_CacheService_downloadArtifact___closed__1; -x_90 = lean_string_append(x_4, x_89); +x_90 = lean_string_append(x_5, x_89); x_91 = l_Lake_Hash_hex(x_12); x_92 = lean_string_append(x_90, x_91); lean_dec_ref(x_91); @@ -8745,7 +8932,7 @@ if (x_6 == 0) lean_object* x_146; lean_object* x_147; lean_dec_ref(x_143); lean_dec_ref(x_86); -lean_dec_ref(x_4); +lean_dec_ref(x_5); lean_dec_ref(x_1); x_146 = lean_box(0); x_147 = lean_alloc_ctor(0, 2, 0); @@ -9034,7 +9221,7 @@ x_16 = 0; x_17 = lean_usize_of_nat(x_13); lean_dec(x_13); lean_inc_ref(x_6); -lean_inc_ref(x_3); +lean_inc_ref(x_4); x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheService_downloadArtifacts_spec__0(x_2, x_3, x_4, x_5, x_1, x_16, x_17, x_15, x_6, x_7); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -9047,7 +9234,7 @@ x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec_ref(x_18); x_22 = l_Lake_CacheService_downloadArtifacts___closed__0; -x_23 = lean_string_append(x_3, x_22); +x_23 = lean_string_append(x_4, x_22); x_24 = 3; x_25 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_25, 0, x_23); @@ -9081,7 +9268,7 @@ else { lean_object* x_33; lean_dec_ref(x_6); -lean_dec_ref(x_3); +lean_dec_ref(x_4); x_33 = lean_ctor_get(x_18, 1); lean_inc(x_33); lean_dec_ref(x_18); @@ -9196,7 +9383,7 @@ x_16 = 0; x_17 = lean_usize_of_nat(x_13); lean_dec(x_13); lean_inc_ref(x_1); -lean_inc_ref(x_4); +lean_inc_ref(x_5); x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheService_downloadArtifacts_spec__0(x_3, x_4, x_5, x_6, x_2, x_16, x_17, x_15, x_1, x_7); x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); @@ -9209,7 +9396,7 @@ x_21 = lean_ctor_get(x_18, 1); lean_inc(x_21); lean_dec_ref(x_18); x_22 = l_Lake_CacheService_downloadArtifacts___closed__0; -x_23 = lean_string_append(x_4, x_22); +x_23 = lean_string_append(x_5, x_22); x_24 = 3; x_25 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_25, 0, x_23); @@ -9242,7 +9429,7 @@ return x_32; else { lean_object* x_33; -lean_dec_ref(x_4); +lean_dec_ref(x_5); lean_dec_ref(x_1); x_33 = lean_ctor_get(x_18, 1); lean_inc(x_33); @@ -9830,10 +10017,10 @@ LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifact(uint64_t x_1, lean_o _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_inc_ref(x_4); -x_7 = l_Lake_CacheService_artifactUrl(x_1, x_3, x_4); +lean_inc_ref(x_3); +x_7 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(x_1, x_3, x_4); x_8 = l_Lake_CacheService_uploadArtifact___closed__0; -x_9 = lean_string_append(x_3, x_8); +x_9 = lean_string_append(x_4, x_8); x_10 = l_Lake_Hash_hex(x_1); x_11 = lean_string_append(x_9, x_10); lean_dec_ref(x_10); @@ -9852,9 +10039,9 @@ x_20 = lean_apply_2(x_5, x_19, x_6); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec_ref(x_20); -x_22 = lean_ctor_get(x_4, 0); +x_22 = lean_ctor_get(x_3, 0); lean_inc_ref(x_22); -lean_dec_ref(x_4); +lean_dec_ref(x_3); x_23 = l_Lake_CacheService_artifactContentType___closed__0; x_24 = l___private_Lake_Config_Cache_0__Lake_uploadS3___at___Lake_CacheService_uploadArtifact_spec__0(x_5, x_2, x_23, x_7, x_22, x_21); return x_24; @@ -9883,10 +10070,10 @@ LEAN_EXPORT lean_object* l_Lake_CacheService_uploadArtifact___at___Lake_CacheSer _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_inc_ref(x_5); -x_7 = l_Lake_CacheService_artifactUrl(x_2, x_4, x_5); +lean_inc_ref(x_4); +x_7 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl(x_2, x_4, x_5); x_8 = l_Lake_CacheService_uploadArtifact___closed__0; -x_9 = lean_string_append(x_4, x_8); +x_9 = lean_string_append(x_5, x_8); x_10 = l_Lake_Hash_hex(x_2); x_11 = lean_string_append(x_9, x_10); lean_dec_ref(x_10); @@ -9905,9 +10092,9 @@ x_20 = lean_apply_2(x_1, x_19, x_6); x_21 = lean_ctor_get(x_20, 1); lean_inc(x_21); lean_dec_ref(x_20); -x_22 = lean_ctor_get(x_5, 0); +x_22 = lean_ctor_get(x_4, 0); lean_inc_ref(x_22); -lean_dec_ref(x_5); +lean_dec_ref(x_4); x_23 = l_Lake_CacheService_artifactContentType___closed__0; x_24 = l___private_Lake_Config_Cache_0__Lake_uploadS3___at___Lake_CacheService_uploadArtifact_spec__0(x_1, x_3, x_23, x_7, x_22, x_21); return x_24; @@ -10127,66 +10314,248 @@ x_1 = l_Lake_CacheService_mapContentType___closed__0; return x_1; } } +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_4 = lean_string_append(x_2, x_1); +x_5 = l_Lake_Cache_revisionPath___closed__0; +x_6 = lean_string_append(x_4, x_5); +return x_6; +} +} +static lean_object* _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("tc/", 3, 3); +return x_1; +} +} +static lean_object* _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("pt/", 3, 3); +return x_1; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_6 = lean_ctor_get(x_2, 2); +lean_inc_ref(x_6); +x_7 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); +lean_dec_ref(x_2); +x_24 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0; +x_25 = lean_string_append(x_6, x_24); +x_26 = l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(x_25, x_3); +if (x_7 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_box(0); +x_28 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(x_1, x_26, x_27); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_string_utf8_byte_size(x_4); +x_30 = lean_unsigned_to_nat(0u); +x_31 = lean_nat_dec_eq(x_29, x_30); +lean_dec(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint32_t x_35; lean_object* x_36; +x_32 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1; +x_33 = lean_string_append(x_26, x_32); +x_34 = l_Lake_uriEncode(x_4, x_33); +x_35 = 47; +x_36 = lean_string_push(x_34, x_35); +x_8 = x_36; +goto block_23; +} +else +{ +x_8 = x_26; +goto block_23; +} +} +block_23: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_string_utf8_byte_size(x_5); +x_10 = lean_unsigned_to_nat(0u); +x_11 = lean_nat_dec_eq(x_9, x_10); +lean_dec(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint32_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_12 = l_Lake_CacheService_reservoirService___closed__0; +x_13 = l___private_Lake_Config_InstallPath_0__Lake_toolchain2Dir_go(x_5, x_12, x_10); +x_14 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0; +x_15 = lean_string_append(x_8, x_14); +x_16 = l_Lake_uriEncode(x_13, x_15); +lean_dec_ref(x_13); +x_17 = 47; +x_18 = lean_string_push(x_16, x_17); +x_19 = lean_box(0); +x_20 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(x_1, x_18, x_19); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +x_22 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(x_1, x_8, x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___lam__0(x_1, x_2, x_3); +lean_dec_ref(x_1); +return x_4; +} +} +LEAN_EXPORT lean_object* l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl(x_1, x_2, x_3, x_4, x_5); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +lean_dec_ref(x_1); +return x_6; +} +} static lean_object* _init_l_Lake_CacheService_revisionUrl___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("/build-outputs\?rev=", 19, 19); +x_1 = lean_mk_string_unchecked("&toolchain=", 11, 11); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +static lean_object* _init_l_Lake_CacheService_revisionUrl___closed__1() { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = lean_ctor_get(x_3, 2); -lean_inc_ref(x_4); -x_5 = lean_ctor_get(x_3, 3); -lean_inc(x_5); -lean_dec_ref(x_3); -x_6 = l_Lake_CacheService_artifactUrl___closed__0; -x_7 = l_String_split___at___Lake_CacheService_artifactUrl_spec__0(x_2); -x_8 = lean_box(0); -x_9 = l_List_mapTR_loop___at___Lake_CacheService_artifactUrl_spec__2(x_7, x_8); -x_10 = l_String_intercalate(x_6, x_9); -if (lean_obj_tag(x_5) == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("build-outputs\?rev=", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lake_CacheService_revisionUrl___closed__2() { +_start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_11 = lean_string_append(x_4, x_6); -x_12 = lean_string_append(x_11, x_10); -lean_dec_ref(x_10); -x_13 = lean_string_append(x_12, x_6); -x_14 = lean_string_append(x_13, x_1); -x_15 = l_Lake_Cache_revisionPath___closed__0; -x_16 = lean_string_append(x_14, x_15); -return x_16; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("&platform=", 10, 10); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_14; uint8_t x_26; +x_26 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl(x_1, x_2, x_3, x_4, x_5); +return x_27; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_dec_ref(x_4); -x_17 = lean_ctor_get(x_5, 0); -lean_inc(x_17); -lean_dec_ref(x_5); -x_18 = l_Lake_CacheService_artifactUrl___closed__2; -x_19 = lean_string_append(x_17, x_18); -x_20 = lean_string_append(x_19, x_10); -lean_dec_ref(x_10); -x_21 = l_Lake_CacheService_revisionUrl___closed__0; -x_22 = lean_string_append(x_20, x_21); -x_23 = lean_string_append(x_22, x_1); -return x_23; +uint8_t x_28; +x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_29); +lean_dec_ref(x_2); +x_30 = l_Lake_CacheService_artifactUrl___closed__1; +x_31 = lean_string_append(x_29, x_30); +x_14 = x_31; +goto block_25; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_2, 3); +lean_inc_ref(x_32); +lean_dec_ref(x_2); +x_33 = l_Lake_CacheService_artifactUrl___closed__2; +x_34 = lean_string_append(x_32, x_33); +x_14 = x_34; +goto block_25; +} +} +block_13: +{ +lean_object* x_7; lean_object* x_8; uint8_t x_9; +x_7 = lean_string_utf8_byte_size(x_5); +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_7, x_8); +lean_dec(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = l_Lake_CacheService_revisionUrl___closed__0; +x_11 = lean_string_append(x_6, x_10); +x_12 = l_Lake_uriEncode(x_5, x_11); +return x_12; +} +else +{ +return x_6; +} +} +block_25: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +x_15 = l___private_Lake_Config_Cache_0__Lake_CacheService_appendScope(x_14, x_3); +x_16 = l_Lake_CacheService_revisionUrl___closed__1; +x_17 = lean_string_append(x_16, x_1); +x_18 = lean_string_append(x_15, x_17); +lean_dec_ref(x_17); +x_19 = lean_string_utf8_byte_size(x_4); +x_20 = lean_unsigned_to_nat(0u); +x_21 = lean_nat_dec_eq(x_19, x_20); +lean_dec(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = l_Lake_CacheService_revisionUrl___closed__2; +x_23 = lean_string_append(x_18, x_22); +x_24 = l_Lake_uriEncode(x_4, x_23); +x_6 = x_24; +goto block_13; +} +else +{ +x_6 = x_18; +goto block_13; } } } -LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +} +LEAN_EXPORT lean_object* l_Lake_CacheService_revisionUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_4; -x_4 = l_Lake_CacheService_revisionUrl(x_1, x_2, x_3); -lean_dec_ref(x_2); +lean_object* x_6; +x_6 = l_Lake_CacheService_revisionUrl(x_1, x_2, x_3, x_4, x_5); +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); lean_dec_ref(x_1); -return x_4; +return x_6; } } static lean_object* _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0() { @@ -10201,7 +10570,7 @@ static lean_object* _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___clos _start: { lean_object* x_1; -x_1 = l_Lake_Reservoir_lakeHeaders; +x_1 = lean_mk_string_unchecked(": downloading build outputs for revision ", 41, 41); return x_1; } } @@ -10209,7 +10578,7 @@ static lean_object* _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___clos _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(": downloading build outputs for revision ", 41, 41); +x_1 = l_Array_empty(lean_box(0)); return x_1; } } @@ -10217,814 +10586,787 @@ static lean_object* _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___clos _start: { lean_object* x_1; -x_1 = l_Array_empty(lean_box(0)); +x_1 = l_Lake_Reservoir_lakeHeaders; return x_1; } } -LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7) { +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, uint8_t x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_8; lean_object* x_12; lean_object* x_13; lean_object* x_17; lean_object* x_18; lean_object* x_29; lean_object* x_32; lean_object* x_33; lean_object* x_37; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_151; lean_object* x_152; lean_object* x_155; uint8_t x_156; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_224; uint8_t x_225; -x_41 = l_Lake_Cache_revisionDir___closed__0; -x_42 = l_System_FilePath_join(x_2, x_41); -x_43 = l_System_FilePath_join(x_42, x_1); -x_44 = l_Lake_Cache_revisionPath___closed__0; -lean_inc_ref(x_3); -x_45 = lean_string_append(x_3, x_44); -x_46 = l_System_FilePath_join(x_43, x_45); -lean_dec_ref(x_45); -x_176 = l_System_FilePath_pathExists(x_46, x_7); -x_177 = lean_ctor_get(x_176, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_176, 1); -lean_inc(x_178); -lean_dec_ref(x_176); -x_224 = l_Lake_CacheMap_parse___closed__5; -x_225 = l_Lake_CacheService_downloadArtifact___closed__5; -if (x_225 == 0) -{ -x_179 = x_178; -goto block_223; -} -else -{ -uint8_t x_226; -x_226 = l_Lake_CacheService_downloadArtifact___closed__6; -if (x_226 == 0) -{ -x_179 = x_178; -goto block_223; -} -else -{ -lean_object* x_227; size_t x_228; size_t x_229; lean_object* x_230; lean_object* x_231; -x_227 = lean_box(0); -x_228 = 0; -x_229 = l_Lake_CacheService_downloadArtifact___closed__7; -lean_inc_ref(x_6); -x_230 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_224, x_228, x_229, x_227, x_6, x_178); -x_231 = lean_ctor_get(x_230, 1); -lean_inc(x_231); -lean_dec_ref(x_230); -x_179 = x_231; -goto block_223; -} -} -block_11: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_box(0); -x_10 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -block_16: -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_14, 0, x_12); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -block_28: -{ -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_19 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0; -x_20 = lean_string_append(x_3, x_19); -x_21 = 3; -x_22 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set_uint8(x_22, sizeof(void*)*1, x_21); -x_23 = lean_apply_2(x_6, x_22, x_18); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_23, 0); -lean_dec(x_25); -lean_ctor_set_tag(x_23, 1); -lean_ctor_set(x_23, 0, x_17); -return x_23; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_dec(x_23); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_17); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -block_31: -{ -lean_object* x_30; -x_30 = lean_box(0); -x_17 = x_30; -x_18 = x_29; -goto block_28; -} -block_36: -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_34, 0, x_32); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -return x_35; -} -block_40: -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -block_120: -{ -if (lean_obj_tag(x_47) == 0) -{ -lean_object* x_49; lean_object* x_50; -lean_dec_ref(x_46); -lean_dec_ref(x_6); -x_49 = lean_box(0); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -else -{ -lean_object* x_51; lean_object* x_52; -x_51 = lean_ctor_get(x_47, 0); -lean_inc(x_51); -lean_dec_ref(x_47); -x_52 = l_Lake_createParentDirs(x_46, x_48); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 1); -lean_inc(x_53); -lean_dec_ref(x_52); -x_54 = l_IO_FS_writeFile(x_46, x_51, x_53); -lean_dec(x_51); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -lean_dec_ref(x_54); -x_56 = lean_unsigned_to_nat(0u); -x_57 = l_Lake_CacheMap_parse___closed__5; -x_58 = l_Lake_CacheMap_load(x_46, x_57, x_55); -x_59 = lean_ctor_get(x_58, 0); -lean_inc(x_59); -if (lean_obj_tag(x_59) == 0) -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_60 = lean_ctor_get(x_58, 1); -lean_inc(x_60); -lean_dec_ref(x_58); -x_61 = lean_ctor_get(x_59, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_59, 1); -lean_inc(x_62); -lean_dec_ref(x_59); -x_63 = lean_array_get_size(x_62); -x_64 = lean_nat_dec_lt(x_56, x_63); -if (x_64 == 0) -{ -lean_dec(x_63); -lean_dec(x_62); -lean_dec_ref(x_6); -x_32 = x_61; -x_33 = x_60; -goto block_36; -} -else -{ -uint8_t x_65; -x_65 = lean_nat_dec_le(x_63, x_63); -if (x_65 == 0) -{ -lean_dec(x_63); -lean_dec(x_62); -lean_dec_ref(x_6); -x_32 = x_61; -x_33 = x_60; -goto block_36; -} -else -{ -lean_object* x_66; size_t x_67; size_t x_68; lean_object* x_69; lean_object* x_70; -x_66 = lean_box(0); -x_67 = 0; -x_68 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_69 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_62, x_67, x_68, x_66, x_6, x_60); -lean_dec(x_62); -x_70 = lean_ctor_get(x_69, 1); -lean_inc(x_70); -lean_dec_ref(x_69); -x_32 = x_61; -x_33 = x_70; -goto block_36; -} -} -} -else -{ -uint8_t x_71; -x_71 = !lean_is_exclusive(x_58); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_72 = lean_ctor_get(x_58, 1); -x_73 = lean_ctor_get(x_58, 0); -lean_dec(x_73); -x_74 = lean_ctor_get(x_59, 1); -lean_inc(x_74); -lean_dec_ref(x_59); -x_75 = lean_array_get_size(x_74); -x_76 = lean_nat_dec_lt(x_56, x_75); -if (x_76 == 0) -{ -lean_object* x_77; -lean_dec(x_75); -lean_dec(x_74); -lean_dec_ref(x_6); -x_77 = lean_box(0); -lean_ctor_set_tag(x_58, 1); -lean_ctor_set(x_58, 0, x_77); -return x_58; -} -else -{ -uint8_t x_78; -lean_free_object(x_58); -x_78 = lean_nat_dec_le(x_75, x_75); -if (x_78 == 0) -{ -lean_dec(x_75); -lean_dec(x_74); -lean_dec_ref(x_6); -x_37 = x_72; -goto block_40; -} -else -{ -lean_object* x_79; size_t x_80; size_t x_81; lean_object* x_82; lean_object* x_83; -x_79 = lean_box(0); -x_80 = 0; -x_81 = lean_usize_of_nat(x_75); -lean_dec(x_75); -x_82 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_74, x_80, x_81, x_79, x_6, x_72); -lean_dec(x_74); -x_83 = lean_ctor_get(x_82, 1); -lean_inc(x_83); -lean_dec_ref(x_82); -x_37 = x_83; -goto block_40; -} -} -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_84 = lean_ctor_get(x_58, 1); -lean_inc(x_84); -lean_dec(x_58); -x_85 = lean_ctor_get(x_59, 1); -lean_inc(x_85); -lean_dec_ref(x_59); -x_86 = lean_array_get_size(x_85); -x_87 = lean_nat_dec_lt(x_56, x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; -lean_dec(x_86); -lean_dec(x_85); -lean_dec_ref(x_6); -x_88 = lean_box(0); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_84); -return x_89; -} -else -{ -uint8_t x_90; -x_90 = lean_nat_dec_le(x_86, x_86); -if (x_90 == 0) -{ -lean_dec(x_86); -lean_dec(x_85); -lean_dec_ref(x_6); -x_37 = x_84; -goto block_40; -} -else -{ -lean_object* x_91; size_t x_92; size_t x_93; lean_object* x_94; lean_object* x_95; -x_91 = lean_box(0); -x_92 = 0; -x_93 = lean_usize_of_nat(x_86); -lean_dec(x_86); -x_94 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_85, x_92, x_93, x_91, x_6, x_84); -lean_dec(x_85); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec_ref(x_94); -x_37 = x_95; -goto block_40; -} -} -} -} -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; uint8_t x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; -lean_dec_ref(x_46); -x_96 = lean_ctor_get(x_54, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_54, 1); -lean_inc(x_97); -lean_dec_ref(x_54); -x_98 = lean_io_error_to_string(x_96); -x_99 = 3; -x_100 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set_uint8(x_100, sizeof(void*)*1, x_99); -x_101 = lean_apply_2(x_6, x_100, x_97); -x_102 = !lean_is_exclusive(x_101); -if (x_102 == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_101, 0); -lean_dec(x_103); -x_104 = lean_box(0); -lean_ctor_set_tag(x_101, 1); -lean_ctor_set(x_101, 0, x_104); -return x_101; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; -x_105 = lean_ctor_get(x_101, 1); -lean_inc(x_105); -lean_dec(x_101); -x_106 = lean_box(0); -x_107 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_105); -return x_107; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; -lean_dec(x_51); -lean_dec_ref(x_46); -x_108 = lean_ctor_get(x_52, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_52, 1); -lean_inc(x_109); -lean_dec_ref(x_52); -x_110 = lean_io_error_to_string(x_108); -x_111 = 3; -x_112 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set_uint8(x_112, sizeof(void*)*1, x_111); -x_113 = lean_apply_2(x_6, x_112, x_109); -x_114 = !lean_is_exclusive(x_113); -if (x_114 == 0) -{ -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_113, 0); -lean_dec(x_115); -x_116 = lean_box(0); -lean_ctor_set_tag(x_113, 1); -lean_ctor_set(x_113, 0, x_116); -return x_113; -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_117 = lean_ctor_get(x_113, 1); -lean_inc(x_117); -lean_dec(x_113); -x_118 = lean_box(0); -x_119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_119, 0, x_118); -lean_ctor_set(x_119, 1, x_117); -return x_119; -} -} -} -} -block_150: -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_124 = lean_unsigned_to_nat(0u); -x_125 = l_Lake_CacheMap_parse___closed__5; -x_126 = l_Lake_getUrl_x3f(x_122, x_123, x_125, x_121); -lean_dec_ref(x_123); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; -lean_dec_ref(x_3); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec_ref(x_126); -x_129 = lean_ctor_get(x_127, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_130); -lean_dec_ref(x_127); -x_131 = lean_array_get_size(x_130); -x_132 = lean_nat_dec_lt(x_124, x_131); -if (x_132 == 0) -{ -lean_dec(x_131); -lean_dec(x_130); -x_47 = x_129; -x_48 = x_128; -goto block_120; -} -else -{ -uint8_t x_133; -x_133 = lean_nat_dec_le(x_131, x_131); -if (x_133 == 0) -{ -lean_dec(x_131); -lean_dec(x_130); -x_47 = x_129; -x_48 = x_128; -goto block_120; -} -else -{ -lean_object* x_134; size_t x_135; size_t x_136; lean_object* x_137; lean_object* x_138; -x_134 = lean_box(0); -x_135 = 0; -x_136 = lean_usize_of_nat(x_131); -lean_dec(x_131); -lean_inc_ref(x_6); -x_137 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_130, x_135, x_136, x_134, x_6, x_128); -lean_dec(x_130); -x_138 = lean_ctor_get(x_137, 1); -lean_inc(x_138); -lean_dec_ref(x_137); -x_47 = x_129; -x_48 = x_138; -goto block_120; -} -} -} -else -{ -lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; -lean_dec_ref(x_46); -x_139 = lean_ctor_get(x_126, 1); -lean_inc(x_139); -lean_dec_ref(x_126); -x_140 = lean_ctor_get(x_127, 1); -lean_inc(x_140); -lean_dec_ref(x_127); -x_141 = lean_array_get_size(x_140); -x_142 = lean_nat_dec_lt(x_124, x_141); -if (x_142 == 0) -{ -lean_object* x_143; -lean_dec(x_141); -lean_dec(x_140); -x_143 = lean_box(0); -x_17 = x_143; -x_18 = x_139; -goto block_28; -} -else -{ -uint8_t x_144; -x_144 = lean_nat_dec_le(x_141, x_141); -if (x_144 == 0) -{ -lean_dec(x_141); -lean_dec(x_140); -x_29 = x_139; -goto block_31; -} -else -{ -lean_object* x_145; size_t x_146; size_t x_147; lean_object* x_148; lean_object* x_149; -x_145 = lean_box(0); -x_146 = 0; -x_147 = lean_usize_of_nat(x_141); -lean_dec(x_141); -lean_inc_ref(x_6); -x_148 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_140, x_146, x_147, x_145, x_6, x_139); -lean_dec(x_140); -x_149 = lean_ctor_get(x_148, 1); -lean_inc(x_149); -lean_dec_ref(x_148); -x_29 = x_149; -goto block_31; -} -} -} -} -block_154: -{ -lean_object* x_153; -x_153 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__1; -x_121 = x_151; -x_122 = x_152; -x_123 = x_153; -goto block_150; -} -block_175: -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_object* x_11; lean_object* x_15; lean_object* x_16; lean_object* x_20; lean_object* x_24; lean_object* x_25; lean_object* x_29; lean_object* x_30; lean_object* x_41; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_154; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_220; uint8_t x_221; +x_44 = l_Lake_Cache_revisionDir___closed__0; +x_45 = l_System_FilePath_join(x_2, x_44); +x_46 = l_System_FilePath_join(x_45, x_1); +x_47 = l_Lake_Cache_revisionPath___closed__0; lean_inc_ref(x_4); -x_157 = l_Lake_CacheService_revisionUrl(x_1, x_3, x_4); -x_158 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__2; -lean_inc_ref(x_3); -x_159 = lean_string_append(x_3, x_158); -x_160 = lean_string_append(x_159, x_1); -x_161 = l_Lake_CacheService_downloadArtifact___closed__2; -x_162 = lean_string_append(x_160, x_161); -x_163 = lean_string_append(x_162, x_46); -x_164 = l_Lake_CacheService_downloadArtifact___closed__3; -x_165 = lean_string_append(x_163, x_164); -x_166 = lean_string_append(x_165, x_157); -x_167 = 1; -x_168 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_168, 0, x_166); -lean_ctor_set_uint8(x_168, sizeof(void*)*1, x_167); -lean_inc_ref(x_6); -x_169 = lean_apply_2(x_6, x_168, x_155); -x_170 = lean_ctor_get(x_4, 3); -lean_inc(x_170); -lean_dec_ref(x_4); -if (lean_obj_tag(x_170) == 0) +x_48 = lean_string_append(x_4, x_47); +x_49 = l_System_FilePath_join(x_46, x_48); +lean_dec_ref(x_48); +x_174 = l_System_FilePath_pathExists(x_49, x_10); +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec_ref(x_174); +x_220 = l_Lake_CacheMap_parse___closed__5; +x_221 = l_Lake_CacheService_downloadArtifact___closed__5; +if (x_221 == 0) { -if (x_156 == 0) -{ -lean_object* x_171; lean_object* x_172; -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec_ref(x_169); -x_172 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__3; -x_121 = x_171; -x_122 = x_157; -x_123 = x_172; -goto block_150; -} -else -{ -lean_object* x_173; -x_173 = lean_ctor_get(x_169, 1); -lean_inc(x_173); -lean_dec_ref(x_169); -x_151 = x_173; -x_152 = x_157; -goto block_154; -} -} -else -{ -lean_object* x_174; -lean_dec_ref(x_170); -x_174 = lean_ctor_get(x_169, 1); -lean_inc(x_174); -lean_dec_ref(x_169); -x_151 = x_174; -x_152 = x_157; -goto block_154; -} -} -block_223: -{ -uint8_t x_180; -x_180 = lean_unbox(x_177); -if (x_180 == 0) -{ -uint8_t x_181; -x_181 = lean_unbox(x_177); -lean_dec(x_177); -x_155 = x_179; -x_156 = x_181; -goto block_175; -} -else -{ -lean_dec(x_177); -if (x_5 == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; -lean_dec_ref(x_4); -lean_dec_ref(x_3); -x_182 = lean_unsigned_to_nat(0u); -x_183 = l_Lake_CacheMap_parse___closed__5; -x_184 = l_Lake_CacheMap_load(x_46, x_183, x_179); -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -if (lean_obj_tag(x_185) == 0) -{ -lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec_ref(x_184); -x_187 = lean_ctor_get(x_185, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_185, 1); -lean_inc(x_188); -lean_dec_ref(x_185); -x_189 = lean_array_get_size(x_188); -x_190 = lean_nat_dec_lt(x_182, x_189); -if (x_190 == 0) -{ -lean_dec(x_189); -lean_dec(x_188); -lean_dec_ref(x_6); -x_12 = x_187; -x_13 = x_186; -goto block_16; -} -else -{ -uint8_t x_191; -x_191 = lean_nat_dec_le(x_189, x_189); -if (x_191 == 0) -{ -lean_dec(x_189); -lean_dec(x_188); -lean_dec_ref(x_6); -x_12 = x_187; -x_13 = x_186; -goto block_16; -} -else -{ -lean_object* x_192; size_t x_193; size_t x_194; lean_object* x_195; lean_object* x_196; -x_192 = lean_box(0); -x_193 = 0; -x_194 = lean_usize_of_nat(x_189); -lean_dec(x_189); -x_195 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_188, x_193, x_194, x_192, x_6, x_186); -lean_dec(x_188); -x_196 = lean_ctor_get(x_195, 1); -lean_inc(x_196); -lean_dec_ref(x_195); -x_12 = x_187; -x_13 = x_196; -goto block_16; -} -} -} -else -{ -uint8_t x_197; -x_197 = !lean_is_exclusive(x_184); -if (x_197 == 0) -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; uint8_t x_202; -x_198 = lean_ctor_get(x_184, 1); -x_199 = lean_ctor_get(x_184, 0); -lean_dec(x_199); -x_200 = lean_ctor_get(x_185, 1); -lean_inc(x_200); -lean_dec_ref(x_185); -x_201 = lean_array_get_size(x_200); -x_202 = lean_nat_dec_lt(x_182, x_201); -if (x_202 == 0) -{ -lean_object* x_203; -lean_dec(x_201); -lean_dec(x_200); -lean_dec_ref(x_6); -x_203 = lean_box(0); -lean_ctor_set_tag(x_184, 1); -lean_ctor_set(x_184, 0, x_203); -return x_184; -} -else -{ -uint8_t x_204; -lean_free_object(x_184); -x_204 = lean_nat_dec_le(x_201, x_201); -if (x_204 == 0) -{ -lean_dec(x_201); -lean_dec(x_200); -lean_dec_ref(x_6); -x_8 = x_198; -goto block_11; -} -else -{ -lean_object* x_205; size_t x_206; size_t x_207; lean_object* x_208; lean_object* x_209; -x_205 = lean_box(0); -x_206 = 0; -x_207 = lean_usize_of_nat(x_201); -lean_dec(x_201); -x_208 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_200, x_206, x_207, x_205, x_6, x_198); -lean_dec(x_200); -x_209 = lean_ctor_get(x_208, 1); -lean_inc(x_209); -lean_dec_ref(x_208); -x_8 = x_209; -goto block_11; -} -} -} -else -{ -lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; -x_210 = lean_ctor_get(x_184, 1); -lean_inc(x_210); -lean_dec(x_184); -x_211 = lean_ctor_get(x_185, 1); -lean_inc(x_211); -lean_dec_ref(x_185); -x_212 = lean_array_get_size(x_211); -x_213 = lean_nat_dec_lt(x_182, x_212); -if (x_213 == 0) -{ -lean_object* x_214; lean_object* x_215; -lean_dec(x_212); -lean_dec(x_211); -lean_dec_ref(x_6); -x_214 = lean_box(0); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_210); -return x_215; -} -else -{ -uint8_t x_216; -x_216 = lean_nat_dec_le(x_212, x_212); -if (x_216 == 0) -{ -lean_dec(x_212); -lean_dec(x_211); -lean_dec_ref(x_6); -x_8 = x_210; -goto block_11; -} -else -{ -lean_object* x_217; size_t x_218; size_t x_219; lean_object* x_220; lean_object* x_221; -x_217 = lean_box(0); -x_218 = 0; -x_219 = lean_usize_of_nat(x_212); -lean_dec(x_212); -x_220 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_211, x_218, x_219, x_217, x_6, x_210); -lean_dec(x_211); -x_221 = lean_ctor_get(x_220, 1); -lean_inc(x_221); -lean_dec_ref(x_220); -x_8 = x_221; -goto block_11; -} -} -} -} +x_177 = x_176; +goto block_219; } else { uint8_t x_222; -x_222 = 0; -x_155 = x_179; -x_156 = x_222; -goto block_175; +x_222 = l_Lake_CacheService_downloadArtifact___closed__6; +if (x_222 == 0) +{ +x_177 = x_176; +goto block_219; +} +else +{ +lean_object* x_223; size_t x_224; size_t x_225; lean_object* x_226; lean_object* x_227; +x_223 = lean_box(0); +x_224 = 0; +x_225 = l_Lake_CacheService_downloadArtifact___closed__7; +lean_inc_ref(x_9); +x_226 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_220, x_224, x_225, x_223, x_9, x_176); +x_227 = lean_ctor_get(x_226, 1); +lean_inc(x_227); +lean_dec_ref(x_226); +x_177 = x_227; +goto block_219; +} +} +block_14: +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_box(0); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +return x_13; +} +block_19: +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_15); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +block_23: +{ +lean_object* x_21; lean_object* x_22; +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +block_28: +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_24); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_25); +return x_27; +} +block_40: +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_31 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0; +x_32 = lean_string_append(x_5, x_31); +x_33 = 3; +x_34 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); +x_35 = lean_apply_2(x_9, x_34, x_30); +x_36 = !lean_is_exclusive(x_35); +if (x_36 == 0) +{ +lean_object* x_37; +x_37 = lean_ctor_get(x_35, 0); +lean_dec(x_37); +lean_ctor_set_tag(x_35, 1); +lean_ctor_set(x_35, 0, x_29); +return x_35; +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_35, 1); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_29); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +block_43: +{ +lean_object* x_42; +x_42 = lean_box(0); +x_29 = x_42; +x_30 = x_41; +goto block_40; +} +block_123: +{ +if (lean_obj_tag(x_50) == 0) +{ +lean_object* x_52; lean_object* x_53; +lean_dec_ref(x_49); +lean_dec_ref(x_9); +x_52 = lean_box(0); +x_53 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +return x_53; +} +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_50, 0); +lean_inc(x_54); +lean_dec_ref(x_50); +x_55 = l_Lake_createParentDirs(x_49, x_51); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +lean_dec_ref(x_55); +x_57 = l_IO_FS_writeFile(x_49, x_54, x_56); +lean_dec(x_54); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec_ref(x_57); +x_59 = lean_unsigned_to_nat(0u); +x_60 = l_Lake_CacheMap_parse___closed__5; +x_61 = l_Lake_CacheMap_load(x_49, x_60, x_58); +x_62 = lean_ctor_get(x_61, 0); +lean_inc(x_62); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); +lean_dec_ref(x_61); +x_64 = lean_ctor_get(x_62, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_62, 1); +lean_inc(x_65); +lean_dec_ref(x_62); +x_66 = lean_array_get_size(x_65); +x_67 = lean_nat_dec_lt(x_59, x_66); +if (x_67 == 0) +{ +lean_dec(x_66); +lean_dec(x_65); +lean_dec_ref(x_9); +x_24 = x_64; +x_25 = x_63; +goto block_28; +} +else +{ +uint8_t x_68; +x_68 = lean_nat_dec_le(x_66, x_66); +if (x_68 == 0) +{ +lean_dec(x_66); +lean_dec(x_65); +lean_dec_ref(x_9); +x_24 = x_64; +x_25 = x_63; +goto block_28; +} +else +{ +lean_object* x_69; size_t x_70; size_t x_71; lean_object* x_72; lean_object* x_73; +x_69 = lean_box(0); +x_70 = 0; +x_71 = lean_usize_of_nat(x_66); +lean_dec(x_66); +x_72 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_65, x_70, x_71, x_69, x_9, x_63); +lean_dec(x_65); +x_73 = lean_ctor_get(x_72, 1); +lean_inc(x_73); +lean_dec_ref(x_72); +x_24 = x_64; +x_25 = x_73; +goto block_28; +} +} +} +else +{ +uint8_t x_74; +x_74 = !lean_is_exclusive(x_61); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_75 = lean_ctor_get(x_61, 1); +x_76 = lean_ctor_get(x_61, 0); +lean_dec(x_76); +x_77 = lean_ctor_get(x_62, 1); +lean_inc(x_77); +lean_dec_ref(x_62); +x_78 = lean_array_get_size(x_77); +x_79 = lean_nat_dec_lt(x_59, x_78); +if (x_79 == 0) +{ +lean_object* x_80; +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_9); +x_80 = lean_box(0); +lean_ctor_set_tag(x_61, 1); +lean_ctor_set(x_61, 0, x_80); +return x_61; +} +else +{ +uint8_t x_81; +lean_free_object(x_61); +x_81 = lean_nat_dec_le(x_78, x_78); +if (x_81 == 0) +{ +lean_dec(x_78); +lean_dec(x_77); +lean_dec_ref(x_9); +x_20 = x_75; +goto block_23; +} +else +{ +lean_object* x_82; size_t x_83; size_t x_84; lean_object* x_85; lean_object* x_86; +x_82 = lean_box(0); +x_83 = 0; +x_84 = lean_usize_of_nat(x_78); +lean_dec(x_78); +x_85 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_77, x_83, x_84, x_82, x_9, x_75); +lean_dec(x_77); +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec_ref(x_85); +x_20 = x_86; +goto block_23; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_87 = lean_ctor_get(x_61, 1); +lean_inc(x_87); +lean_dec(x_61); +x_88 = lean_ctor_get(x_62, 1); +lean_inc(x_88); +lean_dec_ref(x_62); +x_89 = lean_array_get_size(x_88); +x_90 = lean_nat_dec_lt(x_59, x_89); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; +lean_dec(x_89); +lean_dec(x_88); +lean_dec_ref(x_9); +x_91 = lean_box(0); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_87); +return x_92; +} +else +{ +uint8_t x_93; +x_93 = lean_nat_dec_le(x_89, x_89); +if (x_93 == 0) +{ +lean_dec(x_89); +lean_dec(x_88); +lean_dec_ref(x_9); +x_20 = x_87; +goto block_23; +} +else +{ +lean_object* x_94; size_t x_95; size_t x_96; lean_object* x_97; lean_object* x_98; +x_94 = lean_box(0); +x_95 = 0; +x_96 = lean_usize_of_nat(x_89); +lean_dec(x_89); +x_97 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_88, x_95, x_96, x_94, x_9, x_87); +lean_dec(x_88); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec_ref(x_97); +x_20 = x_98; +goto block_23; } } } } } -LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; +lean_dec_ref(x_49); +x_99 = lean_ctor_get(x_57, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_57, 1); +lean_inc(x_100); +lean_dec_ref(x_57); +x_101 = lean_io_error_to_string(x_99); +x_102 = 3; +x_103 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set_uint8(x_103, sizeof(void*)*1, x_102); +x_104 = lean_apply_2(x_9, x_103, x_100); +x_105 = !lean_is_exclusive(x_104); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_104, 0); +lean_dec(x_106); +x_107 = lean_box(0); +lean_ctor_set_tag(x_104, 1); +lean_ctor_set(x_104, 0, x_107); +return x_104; +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_104, 1); +lean_inc(x_108); +lean_dec(x_104); +x_109 = lean_box(0); +x_110 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +return x_110; +} +} +} +else +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; uint8_t x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; +lean_dec(x_54); +lean_dec_ref(x_49); +x_111 = lean_ctor_get(x_55, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_55, 1); +lean_inc(x_112); +lean_dec_ref(x_55); +x_113 = lean_io_error_to_string(x_111); +x_114 = 3; +x_115 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_115, 0, x_113); +lean_ctor_set_uint8(x_115, sizeof(void*)*1, x_114); +x_116 = lean_apply_2(x_9, x_115, x_112); +x_117 = !lean_is_exclusive(x_116); +if (x_117 == 0) +{ +lean_object* x_118; lean_object* x_119; +x_118 = lean_ctor_get(x_116, 0); +lean_dec(x_118); +x_119 = lean_box(0); +lean_ctor_set_tag(x_116, 1); +lean_ctor_set(x_116, 0, x_119); +return x_116; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_116, 1); +lean_inc(x_120); +lean_dec(x_116); +x_121 = lean_box(0); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_121); +lean_ctor_set(x_122, 1, x_120); +return x_122; +} +} +} +} +block_153: +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_127 = lean_unsigned_to_nat(0u); +x_128 = l_Lake_CacheMap_parse___closed__5; +x_129 = l_Lake_getUrl_x3f(x_124, x_126, x_128, x_125); +lean_dec_ref(x_126); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +if (lean_obj_tag(x_130) == 0) +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +lean_dec_ref(x_5); +x_131 = lean_ctor_get(x_129, 1); +lean_inc(x_131); +lean_dec_ref(x_129); +x_132 = lean_ctor_get(x_130, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_130, 1); +lean_inc(x_133); +lean_dec_ref(x_130); +x_134 = lean_array_get_size(x_133); +x_135 = lean_nat_dec_lt(x_127, x_134); +if (x_135 == 0) +{ +lean_dec(x_134); +lean_dec(x_133); +x_50 = x_132; +x_51 = x_131; +goto block_123; +} +else +{ +uint8_t x_136; +x_136 = lean_nat_dec_le(x_134, x_134); +if (x_136 == 0) +{ +lean_dec(x_134); +lean_dec(x_133); +x_50 = x_132; +x_51 = x_131; +goto block_123; +} +else +{ +lean_object* x_137; size_t x_138; size_t x_139; lean_object* x_140; lean_object* x_141; +x_137 = lean_box(0); +x_138 = 0; +x_139 = lean_usize_of_nat(x_134); +lean_dec(x_134); +lean_inc_ref(x_9); +x_140 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_133, x_138, x_139, x_137, x_9, x_131); +lean_dec(x_133); +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +lean_dec_ref(x_140); +x_50 = x_132; +x_51 = x_141; +goto block_123; +} +} +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +lean_dec_ref(x_49); +x_142 = lean_ctor_get(x_129, 1); +lean_inc(x_142); +lean_dec_ref(x_129); +x_143 = lean_ctor_get(x_130, 1); +lean_inc(x_143); +lean_dec_ref(x_130); +x_144 = lean_array_get_size(x_143); +x_145 = lean_nat_dec_lt(x_127, x_144); +if (x_145 == 0) +{ +lean_object* x_146; +lean_dec(x_144); +lean_dec(x_143); +x_146 = lean_box(0); +x_29 = x_146; +x_30 = x_142; +goto block_40; +} +else +{ +uint8_t x_147; +x_147 = lean_nat_dec_le(x_144, x_144); +if (x_147 == 0) +{ +lean_dec(x_144); +lean_dec(x_143); +x_41 = x_142; +goto block_43; +} +else +{ +lean_object* x_148; size_t x_149; size_t x_150; lean_object* x_151; lean_object* x_152; +x_148 = lean_box(0); +x_149 = 0; +x_150 = lean_usize_of_nat(x_144); +lean_dec(x_144); +lean_inc_ref(x_9); +x_151 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_143, x_149, x_150, x_148, x_9, x_142); +lean_dec(x_143); +x_152 = lean_ctor_get(x_151, 1); +lean_inc(x_152); +lean_dec_ref(x_151); +x_41 = x_152; +goto block_43; +} +} +} +} +block_173: +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; lean_object* x_167; uint8_t x_168; +lean_inc_ref(x_3); +x_155 = l_Lake_CacheService_revisionUrl(x_1, x_3, x_5, x_6, x_7); +x_156 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__1; +x_157 = lean_string_append(x_4, x_156); +x_158 = lean_string_append(x_157, x_1); +x_159 = l_Lake_CacheService_downloadArtifact___closed__2; +x_160 = lean_string_append(x_158, x_159); +x_161 = lean_string_append(x_160, x_49); +x_162 = l_Lake_CacheService_downloadArtifact___closed__3; +x_163 = lean_string_append(x_161, x_162); +x_164 = lean_string_append(x_163, x_155); +x_165 = 1; +x_166 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_166, 0, x_164); +lean_ctor_set_uint8(x_166, sizeof(void*)*1, x_165); +lean_inc_ref(x_9); +x_167 = lean_apply_2(x_9, x_166, x_154); +x_168 = lean_ctor_get_uint8(x_3, sizeof(void*)*4); +lean_dec_ref(x_3); +if (x_168 == 0) +{ +lean_object* x_169; lean_object* x_170; +x_169 = lean_ctor_get(x_167, 1); +lean_inc(x_169); +lean_dec_ref(x_167); +x_170 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__2; +x_124 = x_155; +x_125 = x_169; +x_126 = x_170; +goto block_153; +} +else +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_167, 1); +lean_inc(x_171); +lean_dec_ref(x_167); +x_172 = l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__3; +x_124 = x_155; +x_125 = x_171; +x_126 = x_172; +goto block_153; +} +} +block_219: +{ +uint8_t x_178; +x_178 = lean_unbox(x_175); +lean_dec(x_175); +if (x_178 == 0) +{ +x_154 = x_177; +goto block_173; +} +else +{ +if (x_8 == 0) +{ +lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +lean_dec_ref(x_5); +lean_dec_ref(x_4); +lean_dec_ref(x_3); +x_179 = lean_unsigned_to_nat(0u); +x_180 = l_Lake_CacheMap_parse___closed__5; +x_181 = l_Lake_CacheMap_load(x_49, x_180, x_177); +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec_ref(x_181); +x_184 = lean_ctor_get(x_182, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_182, 1); +lean_inc(x_185); +lean_dec_ref(x_182); +x_186 = lean_array_get_size(x_185); +x_187 = lean_nat_dec_lt(x_179, x_186); +if (x_187 == 0) +{ +lean_dec(x_186); +lean_dec(x_185); +lean_dec_ref(x_9); +x_15 = x_184; +x_16 = x_183; +goto block_19; +} +else +{ +uint8_t x_188; +x_188 = lean_nat_dec_le(x_186, x_186); +if (x_188 == 0) +{ +lean_dec(x_186); +lean_dec(x_185); +lean_dec_ref(x_9); +x_15 = x_184; +x_16 = x_183; +goto block_19; +} +else +{ +lean_object* x_189; size_t x_190; size_t x_191; lean_object* x_192; lean_object* x_193; +x_189 = lean_box(0); +x_190 = 0; +x_191 = lean_usize_of_nat(x_186); +lean_dec(x_186); +x_192 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_185, x_190, x_191, x_189, x_9, x_183); +lean_dec(x_185); +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +lean_dec_ref(x_192); +x_15 = x_184; +x_16 = x_193; +goto block_19; +} +} +} +else +{ +uint8_t x_194; +x_194 = !lean_is_exclusive(x_181); +if (x_194 == 0) +{ +lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; +x_195 = lean_ctor_get(x_181, 1); +x_196 = lean_ctor_get(x_181, 0); +lean_dec(x_196); +x_197 = lean_ctor_get(x_182, 1); +lean_inc(x_197); +lean_dec_ref(x_182); +x_198 = lean_array_get_size(x_197); +x_199 = lean_nat_dec_lt(x_179, x_198); +if (x_199 == 0) +{ +lean_object* x_200; +lean_dec(x_198); +lean_dec(x_197); +lean_dec_ref(x_9); +x_200 = lean_box(0); +lean_ctor_set_tag(x_181, 1); +lean_ctor_set(x_181, 0, x_200); +return x_181; +} +else +{ +uint8_t x_201; +lean_free_object(x_181); +x_201 = lean_nat_dec_le(x_198, x_198); +if (x_201 == 0) +{ +lean_dec(x_198); +lean_dec(x_197); +lean_dec_ref(x_9); +x_11 = x_195; +goto block_14; +} +else +{ +lean_object* x_202; size_t x_203; size_t x_204; lean_object* x_205; lean_object* x_206; +x_202 = lean_box(0); +x_203 = 0; +x_204 = lean_usize_of_nat(x_198); +lean_dec(x_198); +x_205 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_197, x_203, x_204, x_202, x_9, x_195); +lean_dec(x_197); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +lean_dec_ref(x_205); +x_11 = x_206; +goto block_14; +} +} +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; +x_207 = lean_ctor_get(x_181, 1); +lean_inc(x_207); +lean_dec(x_181); +x_208 = lean_ctor_get(x_182, 1); +lean_inc(x_208); +lean_dec_ref(x_182); +x_209 = lean_array_get_size(x_208); +x_210 = lean_nat_dec_lt(x_179, x_209); +if (x_210 == 0) +{ +lean_object* x_211; lean_object* x_212; +lean_dec(x_209); +lean_dec(x_208); +lean_dec_ref(x_9); +x_211 = lean_box(0); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_207); +return x_212; +} +else +{ +uint8_t x_213; +x_213 = lean_nat_dec_le(x_209, x_209); +if (x_213 == 0) +{ +lean_dec(x_209); +lean_dec(x_208); +lean_dec_ref(x_9); +x_11 = x_207; +goto block_14; +} +else +{ +lean_object* x_214; size_t x_215; size_t x_216; lean_object* x_217; lean_object* x_218; +x_214 = lean_box(0); +x_215 = 0; +x_216 = lean_usize_of_nat(x_209); +lean_dec(x_209); +x_217 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_CacheMap_parse_spec__0(x_208, x_215, x_216, x_214, x_9, x_207); +lean_dec(x_208); +x_218 = lean_ctor_get(x_217, 1); +lean_inc(x_218); +lean_dec_ref(x_217); +x_11 = x_218; +goto block_14; +} +} +} +} +} +else +{ +x_154 = x_177; +goto block_173; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_CacheService_downloadRevisionOutputs_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -uint8_t x_8; lean_object* x_9; -x_8 = lean_unbox(x_5); -x_9 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_1, x_2, x_3, x_4, x_8, x_6, x_7); +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_8); +x_12 = l_Lake_CacheService_downloadRevisionOutputs_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11, x_9, x_10); +lean_dec_ref(x_7); +lean_dec_ref(x_6); lean_dec_ref(x_1); -return x_9; +return x_12; } } static lean_object* _init_l_Lake_CacheService_uploadRevisionOutputs___closed__0() { @@ -11035,50 +11377,53 @@ x_1 = lean_mk_string_unchecked(": uploading build outputs for revision ", 39, 39 return x_1; } } -LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -lean_inc_ref(x_4); -x_7 = l_Lake_CacheService_revisionUrl(x_1, x_3, x_4); -x_8 = l_Lake_CacheService_uploadRevisionOutputs___closed__0; -x_9 = lean_string_append(x_3, x_8); -x_10 = lean_string_append(x_9, x_1); -x_11 = l_Lake_CacheService_downloadArtifact___closed__2; -x_12 = lean_string_append(x_10, x_11); -x_13 = lean_string_append(x_12, x_2); -x_14 = l_Lake_CacheService_downloadArtifact___closed__3; -x_15 = lean_string_append(x_13, x_14); -x_16 = lean_string_append(x_15, x_7); -x_17 = 1; -x_18 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_17); -lean_inc_ref(x_5); -x_19 = lean_apply_2(x_5, x_18, x_6); -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec_ref(x_19); -x_21 = lean_ctor_get(x_4, 0); -lean_inc_ref(x_21); -lean_dec_ref(x_4); -x_22 = l_Lake_CacheService_mapContentType___closed__0; -x_23 = l___private_Lake_Config_Cache_0__Lake_uploadS3___at___Lake_CacheService_uploadArtifact_spec__0(x_5, x_2, x_22, x_7, x_21, x_20); -return x_23; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_inc_ref(x_3); +x_9 = l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl(x_1, x_3, x_4, x_5, x_6); +x_10 = l_Lake_CacheService_uploadRevisionOutputs___closed__0; +x_11 = lean_string_append(x_4, x_10); +x_12 = lean_string_append(x_11, x_1); +x_13 = l_Lake_CacheService_downloadArtifact___closed__2; +x_14 = lean_string_append(x_12, x_13); +x_15 = lean_string_append(x_14, x_2); +x_16 = l_Lake_CacheService_downloadArtifact___closed__3; +x_17 = lean_string_append(x_15, x_16); +x_18 = lean_string_append(x_17, x_9); +x_19 = 1; +x_20 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set_uint8(x_20, sizeof(void*)*1, x_19); +lean_inc_ref(x_7); +x_21 = lean_apply_2(x_7, x_20, x_8); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec_ref(x_21); +x_23 = lean_ctor_get(x_3, 0); +lean_inc_ref(x_23); +lean_dec_ref(x_3); +x_24 = l_Lake_CacheService_mapContentType___closed__0; +x_25 = l___private_Lake_Config_Cache_0__Lake_uploadS3___at___Lake_CacheService_uploadArtifact_spec__0(x_7, x_2, x_24, x_9, x_23, x_22); +return x_25; } } -LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lake_CacheService_uploadRevisionOutputs___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_7; -x_7 = l_Lake_CacheService_uploadRevisionOutputs(x_1, x_2, x_3, x_4, x_5, x_6); +lean_object* x_9; +x_9 = l_Lake_CacheService_uploadRevisionOutputs(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec_ref(x_6); +lean_dec_ref(x_5); lean_dec_ref(x_1); -return x_7; +return x_9; } } lean_object* initialize_Lake_Util_Log(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Config_Artifact(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Build_Trace(uint8_t builtin, lean_object*); +lean_object* initialize_Lake_Config_InstallPath(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Build_Actions(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Util_Url(uint8_t builtin, lean_object*); lean_object* initialize_Lake_Util_Proc(uint8_t builtin, lean_object*); @@ -11098,6 +11443,9 @@ lean_dec_ref(res); res = initialize_Lake_Build_Trace(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lake_Config_InstallPath(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Lake_Build_Actions(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); @@ -11233,18 +11581,22 @@ l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__15 = _init_l___private_ lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__15); l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__16 = _init_l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__16(); lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_uploadS3___closed__16); +l_Lake_CacheService_reservoirService___closed__0 = _init_l_Lake_CacheService_reservoirService___closed__0(); +lean_mark_persistent(l_Lake_CacheService_reservoirService___closed__0); l_Lake_CacheService_artifactContentType___closed__0 = _init_l_Lake_CacheService_artifactContentType___closed__0(); lean_mark_persistent(l_Lake_CacheService_artifactContentType___closed__0); l_Lake_CacheService_artifactContentType = _init_l_Lake_CacheService_artifactContentType(); lean_mark_persistent(l_Lake_CacheService_artifactContentType); +l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0 = _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0(); +lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__0); +l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1 = _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1(); +lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_CacheService_s3ArtifactUrl___closed__1); l_Lake_CacheService_artifactUrl___closed__0 = _init_l_Lake_CacheService_artifactUrl___closed__0(); lean_mark_persistent(l_Lake_CacheService_artifactUrl___closed__0); l_Lake_CacheService_artifactUrl___closed__1 = _init_l_Lake_CacheService_artifactUrl___closed__1(); lean_mark_persistent(l_Lake_CacheService_artifactUrl___closed__1); l_Lake_CacheService_artifactUrl___closed__2 = _init_l_Lake_CacheService_artifactUrl___closed__2(); lean_mark_persistent(l_Lake_CacheService_artifactUrl___closed__2); -l_Lake_CacheService_artifactUrl___closed__3 = _init_l_Lake_CacheService_artifactUrl___closed__3(); -lean_mark_persistent(l_Lake_CacheService_artifactUrl___closed__3); l_Lake_CacheService_downloadArtifact___closed__0 = _init_l_Lake_CacheService_downloadArtifact___closed__0(); lean_mark_persistent(l_Lake_CacheService_downloadArtifact___closed__0); l_Lake_CacheService_downloadArtifact___closed__1 = _init_l_Lake_CacheService_downloadArtifact___closed__1(); @@ -11266,8 +11618,16 @@ l_Lake_CacheService_mapContentType___closed__0 = _init_l_Lake_CacheService_mapCo lean_mark_persistent(l_Lake_CacheService_mapContentType___closed__0); l_Lake_CacheService_mapContentType = _init_l_Lake_CacheService_mapContentType(); lean_mark_persistent(l_Lake_CacheService_mapContentType); +l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0 = _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0(); +lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__0); +l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1 = _init_l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1(); +lean_mark_persistent(l___private_Lake_Config_Cache_0__Lake_CacheService_s3RevisionUrl___closed__1); l_Lake_CacheService_revisionUrl___closed__0 = _init_l_Lake_CacheService_revisionUrl___closed__0(); lean_mark_persistent(l_Lake_CacheService_revisionUrl___closed__0); +l_Lake_CacheService_revisionUrl___closed__1 = _init_l_Lake_CacheService_revisionUrl___closed__1(); +lean_mark_persistent(l_Lake_CacheService_revisionUrl___closed__1); +l_Lake_CacheService_revisionUrl___closed__2 = _init_l_Lake_CacheService_revisionUrl___closed__2(); +lean_mark_persistent(l_Lake_CacheService_revisionUrl___closed__2); l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0 = _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0(); lean_mark_persistent(l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__0); l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__1 = _init_l_Lake_CacheService_downloadRevisionOutputs_x3f___closed__1(); diff --git a/stage0/stdlib/Lake/Config/Package.c b/stage0/stdlib/Lake/Config/Package.c index 7674f4f278..bb4e549f76 100644 --- a/stage0/stdlib/Lake/Config/Package.c +++ b/stage0/stdlib/Lake/Config/Package.c @@ -68,6 +68,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Config_Package_0__Lake_OpaquePostUpdat lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_utf8_byte_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_instToStringPackage; +static lean_object* l_Lake_Package_isPlatformIndependent___closed__1; LEAN_EXPORT lean_object* l_Lake_Package_rootDir(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_preferReleaseBuild___boxed(lean_object*); static lean_object* l_Lake_Package_relLicenseFiles___closed__4; @@ -77,6 +78,7 @@ LEAN_EXPORT lean_object* l_Lake_Package_findTargetDecl_x3f(lean_object*, lean_ob LEAN_EXPORT lean_object* l_Lake_instBEqPackage___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lake_Package_isLocalModule(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_lintDriverArgs___boxed(lean_object*); +static lean_object* l_Lake_Package_isPlatformIndependent___closed__0; static lean_object* l_Lake_instInhabitedPackage_default___closed__1; static lean_object* l_Lake_OrdPackageSet_empty___closed__2; LEAN_EXPORT lean_object* l_Lake_PostUpdateHook_ctorIdx(lean_object*, lean_object*); @@ -123,6 +125,7 @@ LEAN_EXPORT lean_object* l_Lake_instInhabitedPostUpdateHook_default___lam__0___b LEAN_EXPORT lean_object* l_Lake_Package_releaseRepo_x3f___boxed(lean_object*); static lean_object* l_Lake_PackageSet_empty___closed__3; static lean_object* l_Lake_instImpl___closed__2____x40_Lake_Config_Package_1275829001____hygCtx___hyg_26_; +lean_object* l_instDecidableEqBool___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_reservoir___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_PackageSet_empty; LEAN_EXPORT lean_object* l_Lake_instHashablePackage; @@ -130,6 +133,7 @@ LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___ lean_object* l_IO_FS_removeDirAll(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_extraDepTargets___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_testDriverArgs___boxed(lean_object*); +lean_object* l_instBEqOfDecidableEq___redArg(lean_object*); static lean_object* l_Lake_instInhabitedPackage_default___closed__0; LEAN_EXPORT lean_object* l_Lake_Package_binDir(lean_object*); LEAN_EXPORT lean_object* l_Lake_PostUpdateHook_ctorIdx___boxed(lean_object*, lean_object*); @@ -195,6 +199,7 @@ LEAN_EXPORT lean_object* l_Lake_Package_ctorIdx___boxed(lean_object*); static lean_object* l_Lake_Package_relLicenseFiles___closed__8; lean_object* lean_nat_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instToJsonPackage; +LEAN_EXPORT lean_object* l_Lake_Package_isPlatformIndependent___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_findTargetDecl_x3f___boxed(lean_object*, lean_object*); lean_object* l_Nat_nextPowerOfTwo(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_restoreAllArtifacts___boxed(lean_object*); @@ -215,6 +220,7 @@ size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Lake_OpaquePostUpdateHook_instInhabitedOfPostUpdateHook___redArg___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_buildType___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_Package_weakLeancArgs(lean_object*); +uint8_t l_Option_instBEq_beq___redArg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr1(lean_object*); LEAN_EXPORT uint8_t l_Lake_Package_buildType(lean_object*); LEAN_EXPORT lean_object* l_Lake_instInhabitedPostUpdateHook(lean_object*); @@ -244,6 +250,7 @@ static lean_object* l_Lake_PackageSet_empty___closed__4; LEAN_EXPORT lean_object* l_Lake_Package_bootstrap___boxed(lean_object*); lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Config_Package_0__Lake_OpaquePostUpdateHook_unsafeGet(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lake_Package_isPlatformIndependent(lean_object*); static lean_object* l_Lake_Package_licenseFiles___closed__0; static lean_object* l_Lake_PackageSet_empty___closed__1; static lean_object* l_Lake_Package_relLicenseFiles___closed__9; @@ -1412,6 +1419,54 @@ lean_dec_ref(x_1); return x_2; } } +static lean_object* _init_l_Lake_Package_isPlatformIndependent___closed__0() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_alloc_closure((void*)(l_instDecidableEqBool___boxed), 2, 0); +x_2 = l_instBEqOfDecidableEq___redArg(x_1); +return x_2; +} +} +static lean_object* _init_l_Lake_Package_isPlatformIndependent___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lake_Package_isPlatformIndependent(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; +x_2 = lean_ctor_get(x_1, 4); +lean_inc_ref(x_2); +lean_dec_ref(x_1); +x_3 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_3); +lean_dec_ref(x_2); +x_4 = lean_ctor_get(x_3, 10); +lean_inc(x_4); +lean_dec_ref(x_3); +x_5 = l_Lake_Package_isPlatformIndependent___closed__0; +x_6 = l_Lake_Package_isPlatformIndependent___closed__1; +x_7 = l_Option_instBEq_beq___redArg(x_5, x_4, x_6); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lake_Package_isPlatformIndependent___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lake_Package_isPlatformIndependent(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lake_Package_releaseRepo_x3f(lean_object* x_1) { _start: { @@ -2649,6 +2704,10 @@ l_Lake_Package_licenseFiles___closed__0 = _init_l_Lake_Package_licenseFiles___cl lean_mark_persistent(l_Lake_Package_licenseFiles___closed__0); l_Lake_Package_relLakeDir___closed__0 = _init_l_Lake_Package_relLakeDir___closed__0(); lean_mark_persistent(l_Lake_Package_relLakeDir___closed__0); +l_Lake_Package_isPlatformIndependent___closed__0 = _init_l_Lake_Package_isPlatformIndependent___closed__0(); +lean_mark_persistent(l_Lake_Package_isPlatformIndependent___closed__0); +l_Lake_Package_isPlatformIndependent___closed__1 = _init_l_Lake_Package_isPlatformIndependent___closed__1(); +lean_mark_persistent(l_Lake_Package_isPlatformIndependent___closed__1); l_Lake_Package_barrelFile___closed__0 = _init_l_Lake_Package_barrelFile___closed__0(); lean_mark_persistent(l_Lake_Package_barrelFile___closed__0); l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___Lake_Package_isLocalModule_spec__0___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___Lake_Package_isLocalModule_spec__0___closed__0(); diff --git a/stage0/stdlib/Lake/Load/Resolve.c b/stage0/stdlib/Lake/Load/Resolve.c index 41de3a401f..ed4ddcee6c 100644 --- a/stage0/stdlib/Lake/Load/Resolve.c +++ b/stage0/stdlib/Lake/Load/Resolve.c @@ -38,6 +38,7 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe static lean_object* l_Lake_Workspace_materializeDeps___closed__4; lean_object* l_System_FilePath_join(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_Workspace_materializeDeps_spec__9(lean_object*, size_t, size_t, lean_object*); +uint8_t l_Lake_ToolchainVer_ble(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at___Lake_Workspace_materializeDeps___elam__0_spec__0_spec__1_spec__1___lam__7(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_StateT_instMonad___redArg___lam__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_normalize(lean_object*); @@ -185,7 +186,7 @@ static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at___Lean_NameMap_ static lean_object* l_Lake_Workspace_materializeDeps___closed__0; LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_reuseManifest___elam__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at___Lake_Workspace_materializeDeps___elam__0_spec__0_spec__1_spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +static uint8_t l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at___Lake_Workspace_materializeDeps___elam__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Package_runPostUpdateHooks_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -198,12 +199,10 @@ LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe LEAN_EXPORT lean_object* l_Lake_recFetch___at_____private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__12_spec__15_spec__15___redArg(lean_object*, uint8_t, 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_____private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__0_spec__0_spec__2_spec__2___lam__6___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_foldrMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__0_spec__0_spec__2_spec__2___lam__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lake_ToolchainVer_decLe(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__0_spec__0_spec__1___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___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_validateManifest_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Load_Resolve_0__Lake_depCycleError___redArg___closed__1; static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at___Lean_NameMap_toJson___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__1_spec__0_spec__0___redArg___closed__0; -lean_object* l_Lake_ToolchainVer_toString(lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lake_Load_Resolve_0__Lake_updateAndMaterializeDep___closed__0; LEAN_EXPORT lean_object* l_Lake_recFetch___at___Lake_recFetch___at_____private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5_spec__4_spec__9_spec__9___redArg___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*); @@ -212,7 +211,6 @@ LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_reuseManifest___e LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at___Lake_Workspace_materializeDeps___elam__0___at___Lake_Workspace_materializeDeps_spec__0_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_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_DepStackT_run(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__0_spec__0_spec__2_spec__2___lam__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Lake_ToolchainVer_decLt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_validateManifest___elam__0___at_____private_Lake_Load_Resolve_0__Lake_validateManifest___elam__1___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_validateManifest_spec__0_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_validateManifest___elam__1___at_____private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_validateManifest_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Workspace_materializeDeps___elam__2___closed__2; @@ -272,6 +270,7 @@ lean_object* l_Lake_Manifest_load(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__12_spec__15(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_recFetch___at_____private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__6_spec__7___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_recFetch___at_____private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__12_spec__15_spec__15(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lake_ToolchainVer_blt(lean_object*, lean_object*); lean_object* l_StateT_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at___Lake_Workspace_materializeDeps___elam__0___at___Lake_Workspace_materializeDeps_spec__0_spec__0___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_reuseManifest(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -292,7 +291,7 @@ LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_resolve LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_recFetch___at___Lake_recFetch___at_____private_Lake_Load_Resolve_0__Lake_Workspace_runResolveT___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__5___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__12_spec__15_spec__15_spec__15___redArg___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_Load_Resolve_0__Lake_Workspace_updateToolchain___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__19___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -static uint8_t l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; +static lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___at___Lake_Workspace_updateAndMaterialize_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); static lean_object* l___private_Lake_Load_Resolve_0__Lake_validateManifest___elam__0___closed__3; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldrMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_resolveDepsCore_go___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore___elam__0___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__1_spec__1_spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -5033,7 +5032,7 @@ x_49 = lean_ctor_get(x_17, 1); x_50 = lean_ctor_get(x_17, 0); lean_dec(x_50); x_51 = lean_ctor_get(x_18, 0); -x_52 = l_Lake_ToolchainVer_decLe(x_47, x_51); +x_52 = l_Lake_ToolchainVer_ble(x_47, x_51); if (x_52 == 0) { uint8_t x_53; @@ -5046,7 +5045,7 @@ x_54 = lean_ctor_get(x_2, 1); lean_dec(x_54); x_55 = lean_ctor_get(x_2, 0); lean_dec(x_55); -x_56 = l_Lake_ToolchainVer_decLt(x_51, x_47); +x_56 = l_Lake_ToolchainVer_blt(x_51, x_47); if (x_56 == 0) { lean_object* x_57; lean_object* x_58; lean_object* x_59; @@ -5082,7 +5081,7 @@ else { uint8_t x_61; lean_dec(x_2); -x_61 = l_Lake_ToolchainVer_decLt(x_51, x_47); +x_61 = l_Lake_ToolchainVer_blt(x_51, x_47); if (x_61 == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; @@ -5137,7 +5136,7 @@ x_70 = lean_ctor_get(x_17, 1); lean_inc(x_70); lean_dec(x_17); x_71 = lean_ctor_get(x_18, 0); -x_72 = l_Lake_ToolchainVer_decLe(x_68, x_71); +x_72 = l_Lake_ToolchainVer_ble(x_68, x_71); if (x_72 == 0) { lean_object* x_73; uint8_t x_74; @@ -5150,7 +5149,7 @@ if (lean_is_exclusive(x_2)) { lean_dec_ref(x_2); x_73 = lean_box(0); } -x_74 = l_Lake_ToolchainVer_decLt(x_71, x_68); +x_74 = l_Lake_ToolchainVer_blt(x_71, x_68); if (x_74 == 0) { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; @@ -5225,7 +5224,7 @@ if (lean_is_exclusive(x_17)) { x_87 = lean_box(0); } x_88 = lean_ctor_get(x_18, 0); -x_89 = l_Lake_ToolchainVer_decLe(x_84, x_88); +x_89 = l_Lake_ToolchainVer_ble(x_84, x_88); if (x_89 == 0) { lean_object* x_90; uint8_t x_91; @@ -5238,7 +5237,7 @@ if (lean_is_exclusive(x_2)) { lean_dec_ref(x_2); x_90 = lean_box(0); } -x_91 = l_Lake_ToolchainVer_decLt(x_88, x_84); +x_91 = l_Lake_ToolchainVer_blt(x_88, x_84); if (x_91 == 0) { lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; @@ -5376,7 +5375,7 @@ uint8_t x_5; x_5 = lean_usize_dec_eq(x_2, x_3); if (x_5 == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_22; x_6 = lean_array_uget(x_1, x_2); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); @@ -5385,7 +5384,14 @@ lean_inc(x_8); lean_dec_ref(x_6); x_9 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__0; x_10 = lean_string_append(x_4, x_9); -x_11 = l_Lake_ToolchainVer_toString(x_8); +x_22 = lean_ctor_get(x_8, 0); +lean_inc_ref(x_22); +lean_dec(x_8); +x_11 = x_22; +goto block_21; +block_21: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; size_t x_18; size_t x_19; x_12 = lean_string_append(x_10, x_11); lean_dec_ref(x_11); x_13 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; @@ -5400,6 +5406,7 @@ x_2 = x_19; x_4 = x_17; goto _start; } +} else { return x_4; @@ -5599,7 +5606,7 @@ x_49 = lean_ctor_get(x_17, 1); x_50 = lean_ctor_get(x_17, 0); lean_dec(x_50); x_51 = lean_ctor_get(x_18, 0); -x_52 = l_Lake_ToolchainVer_decLe(x_47, x_51); +x_52 = l_Lake_ToolchainVer_ble(x_47, x_51); if (x_52 == 0) { uint8_t x_53; @@ -5612,7 +5619,7 @@ x_54 = lean_ctor_get(x_3, 1); lean_dec(x_54); x_55 = lean_ctor_get(x_3, 0); lean_dec(x_55); -x_56 = l_Lake_ToolchainVer_decLt(x_51, x_47); +x_56 = l_Lake_ToolchainVer_blt(x_51, x_47); if (x_56 == 0) { lean_object* x_57; lean_object* x_58; lean_object* x_59; @@ -5648,7 +5655,7 @@ else { uint8_t x_61; lean_dec(x_3); -x_61 = l_Lake_ToolchainVer_decLt(x_51, x_47); +x_61 = l_Lake_ToolchainVer_blt(x_51, x_47); if (x_61 == 0) { lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; @@ -5703,7 +5710,7 @@ x_70 = lean_ctor_get(x_17, 1); lean_inc(x_70); lean_dec(x_17); x_71 = lean_ctor_get(x_18, 0); -x_72 = l_Lake_ToolchainVer_decLe(x_68, x_71); +x_72 = l_Lake_ToolchainVer_ble(x_68, x_71); if (x_72 == 0) { lean_object* x_73; uint8_t x_74; @@ -5716,7 +5723,7 @@ if (lean_is_exclusive(x_3)) { lean_dec_ref(x_3); x_73 = lean_box(0); } -x_74 = l_Lake_ToolchainVer_decLt(x_71, x_68); +x_74 = l_Lake_ToolchainVer_blt(x_71, x_68); if (x_74 == 0) { lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; @@ -5791,7 +5798,7 @@ if (lean_is_exclusive(x_17)) { x_87 = lean_box(0); } x_88 = lean_ctor_get(x_18, 0); -x_89 = l_Lake_ToolchainVer_decLe(x_84, x_88); +x_89 = l_Lake_ToolchainVer_ble(x_84, x_88); if (x_89 == 0) { lean_object* x_90; uint8_t x_91; @@ -5804,7 +5811,7 @@ if (lean_is_exclusive(x_3)) { lean_dec_ref(x_3); x_90 = lean_box(0); } -x_91 = l_Lake_ToolchainVer_decLt(x_88, x_84); +x_91 = l_Lake_ToolchainVer_blt(x_88, x_84); if (x_91 == 0) { lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; @@ -5970,23 +5977,15 @@ static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_update _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("updating toolchain to '", 23, 23); +x_1 = lean_mk_string_unchecked("cannot auto-restart; you will need to manually restart Lake", 59, 59); return x_1; } } static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("cannot auto-restart; you will need to manually restart Lake", 59, 59); -return x_1; -} -} -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2() { -_start: -{ lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1; +x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__0; x_2 = 1; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -5994,7 +5993,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static uint8_t _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3() { +static uint8_t _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2() { _start: { uint32_t x_1; uint8_t x_2; @@ -6003,7 +6002,7 @@ x_2 = lean_uint32_to_uint8(x_1); return x_2; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3() { _start: { lean_object* x_1; @@ -6011,11 +6010,11 @@ x_1 = lean_mk_string_unchecked("no Elan detected; you will need to manually rest return x_1; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4; +x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; x_2 = 1; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -6023,7 +6022,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__6() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5() { _start: { lean_object* x_1; @@ -6031,11 +6030,11 @@ x_1 = lean_mk_string_unchecked("restarting Lake via Elan", 24, 24); return x_1; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__6; +x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5; x_2 = 1; x_3 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -6043,7 +6042,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__8() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7() { _start: { uint8_t x_1; lean_object* x_2; @@ -6055,7 +6054,7 @@ lean_ctor_set_uint8(x_2, 2, x_1); return x_2; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__9() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__8() { _start: { lean_object* x_1; @@ -6063,7 +6062,7 @@ x_1 = lean_mk_string_unchecked("run", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__10() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__9() { _start: { lean_object* x_1; @@ -6071,7 +6070,7 @@ x_1 = lean_mk_string_unchecked("--install", 9, 9); return x_1; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__11() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__10() { _start: { lean_object* x_1; @@ -6079,7 +6078,7 @@ x_1 = lean_mk_string_unchecked("lake", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__12() { +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__11() { _start: { lean_object* x_1; lean_object* x_2; @@ -6088,6 +6087,16 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } +static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__8; +x_2 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__11; +x_3 = lean_array_push(x_2, x_1); +return x_3; +} +} static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__13() { _start: { @@ -6101,11 +6110,9 @@ return x_3; static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__14() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__10; -x_2 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__13; -x_3 = lean_array_push(x_2, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("updating toolchain to '", 23, 23); +return x_1; } } static lean_object* _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__15() { @@ -6176,7 +6183,7 @@ return x_2; LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_object* x_5; lean_object* x_6; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; x_15 = lean_ctor_get(x_1, 0); lean_inc_ref(x_15); x_16 = lean_ctor_get(x_1, 1); @@ -6184,635 +6191,663 @@ lean_inc_ref(x_16); x_17 = lean_ctor_get(x_1, 3); lean_inc(x_17); lean_dec_ref(x_1); -x_156 = lean_ctor_get(x_15, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_15, 2); -lean_inc_ref(x_157); -lean_dec_ref(x_15); -x_158 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___elam__0___closed__0; -lean_inc_ref(x_157); -x_159 = l_System_FilePath_join(x_157, x_158); -x_160 = l_Lake_ToolchainVer_ofFile_x3f(x_159, x_4); -lean_dec_ref(x_159); -if (lean_obj_tag(x_160) == 0) -{ -uint8_t x_161; -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_162 = lean_ctor_get(x_160, 0); -x_163 = lean_ctor_get(x_160, 1); -x_164 = lean_unsigned_to_nat(0u); -x_209 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; -x_210 = lean_array_get_size(x_2); -x_211 = lean_nat_dec_lt(x_164, x_210); -if (x_211 == 0) -{ -lean_dec(x_210); -lean_free_object(x_160); +x_162 = lean_ctor_get(x_15, 0); lean_inc(x_162); -x_175 = x_156; -x_176 = x_162; -x_177 = x_209; -x_178 = x_163; -goto block_208; +x_163 = lean_ctor_get(x_15, 2); +lean_inc_ref(x_163); +lean_dec_ref(x_15); +x_164 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___elam__0___closed__0; +lean_inc_ref(x_163); +x_165 = l_System_FilePath_join(x_163, x_164); +x_166 = l_Lake_ToolchainVer_ofFile_x3f(x_165, x_4); +lean_dec_ref(x_165); +if (lean_obj_tag(x_166) == 0) +{ +uint8_t x_167; +x_167 = !lean_is_exclusive(x_166); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_168 = lean_ctor_get(x_166, 0); +x_169 = lean_ctor_get(x_166, 1); +x_170 = lean_unsigned_to_nat(0u); +x_223 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; +x_224 = lean_array_get_size(x_2); +x_225 = lean_nat_dec_lt(x_170, x_224); +if (x_225 == 0) +{ +lean_dec(x_224); +lean_free_object(x_166); +lean_inc(x_168); +x_194 = x_162; +x_195 = x_168; +x_196 = x_223; +x_197 = x_169; +goto block_222; } else { -uint8_t x_212; -x_212 = lean_nat_dec_le(x_210, x_210); +uint8_t x_226; +x_226 = lean_nat_dec_le(x_224, x_224); +if (x_226 == 0) +{ +lean_dec(x_224); +lean_free_object(x_166); +lean_inc(x_168); +x_194 = x_162; +x_195 = x_168; +x_196 = x_223; +x_197 = x_169; +goto block_222; +} +else +{ +lean_object* x_227; size_t x_228; size_t x_229; lean_object* x_230; +lean_inc(x_168); +lean_ctor_set(x_166, 1, x_223); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_162); +lean_ctor_set(x_227, 1, x_166); +x_228 = 0; +x_229 = lean_usize_of_nat(x_224); +lean_dec(x_224); +lean_inc_ref(x_3); +lean_inc_ref(x_163); +x_230 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_163, x_2, x_228, x_229, x_227, x_3, x_169); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_231, 1); +lean_inc(x_232); +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec_ref(x_230); +x_234 = lean_ctor_get(x_231, 0); +lean_inc(x_234); +lean_dec(x_231); +x_235 = lean_ctor_get(x_232, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_232, 1); +lean_inc(x_236); +lean_dec(x_232); +x_194 = x_234; +x_195 = x_235; +x_196 = x_236; +x_197 = x_233; +goto block_222; +} +else +{ +uint8_t x_237; +lean_dec(x_168); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec_ref(x_3); +x_237 = !lean_is_exclusive(x_230); +if (x_237 == 0) +{ +return x_230; +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_230, 0); +x_239 = lean_ctor_get(x_230, 1); +lean_inc(x_239); +lean_inc(x_238); +lean_dec(x_230); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; +} +} +} +} +block_180: +{ +uint8_t x_175; +x_175 = lean_nat_dec_lt(x_170, x_173); +if (x_175 == 0) +{ +lean_dec(x_173); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_174; +goto block_14; +} +else +{ +uint8_t x_176; +x_176 = lean_nat_dec_le(x_173, x_173); +if (x_176 == 0) +{ +lean_dec(x_173); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_174; +goto block_14; +} +else +{ +size_t x_177; size_t x_178; lean_object* x_179; +x_177 = 0; +x_178 = lean_usize_of_nat(x_173); +lean_dec(x_173); +x_179 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_171, x_177, x_178, x_174); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_179; +goto block_14; +} +} +} +block_193: +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_188 = lean_string_append(x_184, x_187); +lean_dec_ref(x_187); +x_189 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; +x_190 = lean_string_append(x_188, x_189); +x_191 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_186, x_185); +x_192 = lean_string_append(x_190, x_191); +lean_dec_ref(x_191); +x_171 = x_182; +x_172 = x_181; +x_173 = x_183; +x_174 = x_192; +goto block_180; +} +block_222: +{ +lean_object* x_198; uint8_t x_199; +x_198 = lean_array_get_size(x_196); +x_199 = lean_nat_dec_lt(x_170, x_198); +if (x_199 == 0) +{ +lean_dec(x_198); +lean_dec_ref(x_196); +lean_dec(x_194); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_200; lean_object* x_201; uint8_t x_202; +lean_dec(x_168); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +x_200 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; +x_201 = lean_apply_2(x_3, x_200, x_197); +x_202 = !lean_is_exclusive(x_201); +if (x_202 == 0) +{ +return x_201; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_201, 0); +x_204 = lean_ctor_get(x_201, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_201); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +else +{ +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_195, 0); +lean_inc(x_206); +lean_dec_ref(x_195); +x_207 = l_Lake_joinRelative(x_163, x_164); +if (lean_obj_tag(x_168) == 0) +{ +x_155 = x_206; +x_156 = x_207; +x_157 = x_197; +x_158 = x_199; +goto block_161; +} +else +{ +lean_object* x_208; uint8_t x_209; +x_208 = lean_ctor_get(x_168, 0); +lean_inc(x_208); +lean_dec_ref(x_168); +x_209 = l_Lake_instDecidableEqToolchainVer_decEq(x_208, x_206); +lean_dec(x_208); +if (x_209 == 0) +{ +x_155 = x_206; +x_156 = x_207; +x_157 = x_197; +x_158 = x_209; +goto block_161; +} +else +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +lean_dec_ref(x_207); +lean_dec(x_206); +lean_dec(x_17); +lean_dec_ref(x_16); +x_210 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; +x_211 = lean_apply_2(x_3, x_210, x_197); +x_212 = !lean_is_exclusive(x_211); if (x_212 == 0) { -lean_dec(x_210); -lean_free_object(x_160); -lean_inc(x_162); -x_175 = x_156; -x_176 = x_162; -x_177 = x_209; -x_178 = x_163; -goto block_208; +lean_object* x_213; lean_object* x_214; +x_213 = lean_ctor_get(x_211, 0); +lean_dec(x_213); +x_214 = lean_box(0); +lean_ctor_set(x_211, 0, x_214); +return x_211; } else { -lean_object* x_213; size_t x_214; size_t x_215; lean_object* x_216; -lean_inc(x_162); -lean_ctor_set(x_160, 1, x_209); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_156); -lean_ctor_set(x_213, 1, x_160); -x_214 = 0; -x_215 = lean_usize_of_nat(x_210); -lean_dec(x_210); -lean_inc_ref(x_3); -lean_inc_ref(x_157); -x_216 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_157, x_2, x_214, x_215, x_213, x_3, x_163); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_217, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_216, 1); -lean_inc(x_219); -lean_dec_ref(x_216); -x_220 = lean_ctor_get(x_217, 0); -lean_inc(x_220); -lean_dec(x_217); -x_221 = lean_ctor_get(x_218, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_218, 1); -lean_inc(x_222); -lean_dec(x_218); -x_175 = x_220; -x_176 = x_221; -x_177 = x_222; -x_178 = x_219; -goto block_208; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_211, 1); +lean_inc(x_215); +lean_dec(x_211); +x_216 = lean_box(0); +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_215); +return x_217; +} +} +} +} } else { -uint8_t x_223; -lean_dec(x_162); -lean_dec_ref(x_157); +lean_dec(x_168); +lean_dec_ref(x_163); lean_dec(x_17); lean_dec_ref(x_16); -lean_dec_ref(x_3); -x_223 = !lean_is_exclusive(x_216); -if (x_223 == 0) +if (lean_obj_tag(x_195) == 0) { -return x_216; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_216, 0); -x_225 = lean_ctor_get(x_216, 1); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_216); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -return x_226; -} -} -} -} -block_174: -{ -uint8_t x_169; -x_169 = lean_nat_dec_lt(x_164, x_166); -if (x_169 == 0) -{ -lean_dec(x_166); -lean_dec_ref(x_165); -x_5 = x_167; -x_6 = x_168; -goto block_14; -} -else -{ -uint8_t x_170; -x_170 = lean_nat_dec_le(x_166, x_166); -if (x_170 == 0) -{ -lean_dec(x_166); -lean_dec_ref(x_165); -x_5 = x_167; -x_6 = x_168; -goto block_14; -} -else -{ -size_t x_171; size_t x_172; lean_object* x_173; -x_171 = 0; -x_172 = lean_usize_of_nat(x_166); -lean_dec(x_166); -x_173 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_165, x_171, x_172, x_168); -lean_dec_ref(x_165); -x_5 = x_167; -x_6 = x_173; -goto block_14; -} -} -} -block_208: -{ -lean_object* x_179; uint8_t x_180; -x_179 = lean_array_get_size(x_177); -x_180 = lean_nat_dec_lt(x_164, x_179); -if (x_180 == 0) -{ -lean_dec(x_179); -lean_dec_ref(x_177); -lean_dec(x_175); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_181; lean_object* x_182; uint8_t x_183; -lean_dec(x_162); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -x_181 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; -x_182 = lean_apply_2(x_3, x_181, x_178); -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) -{ -return x_182; -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_182, 0); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_182); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_176, 0); -lean_inc(x_187); -lean_dec_ref(x_176); -x_188 = l_Lake_joinRelative(x_157, x_158); -if (lean_obj_tag(x_162) == 0) -{ -x_18 = x_188; -x_19 = x_187; -x_20 = x_178; -x_21 = x_180; -goto block_155; -} -else -{ -lean_object* x_189; uint8_t x_190; -x_189 = lean_ctor_get(x_162, 0); -lean_inc(x_189); -lean_dec_ref(x_162); -x_190 = l_Lake_instDecidableEqToolchainVer_decEq(x_189, x_187); -lean_dec(x_189); -if (x_190 == 0) -{ -x_18 = x_188; -x_19 = x_187; -x_20 = x_178; -x_21 = x_190; -goto block_155; -} -else -{ -lean_object* x_191; lean_object* x_192; uint8_t x_193; -lean_dec_ref(x_188); -lean_dec(x_187); -lean_dec(x_17); -lean_dec_ref(x_16); -x_191 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; -x_192 = lean_apply_2(x_3, x_191, x_178); -x_193 = !lean_is_exclusive(x_192); -if (x_193 == 0) -{ -lean_object* x_194; lean_object* x_195; -x_194 = lean_ctor_get(x_192, 0); +lean_object* x_218; lean_dec(x_194); -x_195 = lean_box(0); -lean_ctor_set(x_192, 0, x_195); -return x_192; +x_218 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; +x_171 = x_196; +x_172 = x_197; +x_173 = x_198; +x_174 = x_218; +goto block_180; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_192, 1); -lean_inc(x_196); -lean_dec(x_192); -x_197 = lean_box(0); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -return x_198; -} +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_195, 0); +lean_inc(x_219); +lean_dec_ref(x_195); +x_220 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; +x_221 = lean_ctor_get(x_219, 0); +lean_inc_ref(x_221); +lean_dec(x_219); +x_181 = x_197; +x_182 = x_196; +x_183 = x_198; +x_184 = x_220; +x_185 = x_199; +x_186 = x_194; +x_187 = x_221; +goto block_193; } } } } else { -lean_dec(x_162); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -if (lean_obj_tag(x_176) == 0) +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; lean_object* x_259; lean_object* x_260; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_294; lean_object* x_295; uint8_t x_296; +x_241 = lean_ctor_get(x_166, 0); +x_242 = lean_ctor_get(x_166, 1); +lean_inc(x_242); +lean_inc(x_241); +lean_dec(x_166); +x_243 = lean_unsigned_to_nat(0u); +x_294 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; +x_295 = lean_array_get_size(x_2); +x_296 = lean_nat_dec_lt(x_243, x_295); +if (x_296 == 0) { -lean_object* x_199; -lean_dec(x_175); -x_199 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; -x_165 = x_177; -x_166 = x_179; -x_167 = x_178; -x_168 = x_199; -goto block_174; +lean_dec(x_295); +lean_inc(x_241); +x_267 = x_162; +x_268 = x_241; +x_269 = x_294; +x_270 = x_242; +goto block_293; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_200 = lean_ctor_get(x_176, 0); -lean_inc(x_200); -lean_dec_ref(x_176); -x_201 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; -x_202 = l_Lake_ToolchainVer_toString(x_200); -x_203 = lean_string_append(x_201, x_202); -lean_dec_ref(x_202); -x_204 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; -x_205 = lean_string_append(x_203, x_204); -x_206 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_175, x_180); -x_207 = lean_string_append(x_205, x_206); -lean_dec_ref(x_206); -x_165 = x_177; -x_166 = x_179; -x_167 = x_178; -x_168 = x_207; -goto block_174; -} -} -} -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_227 = lean_ctor_get(x_160, 0); -x_228 = lean_ctor_get(x_160, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_160); -x_229 = lean_unsigned_to_nat(0u); -x_272 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; -x_273 = lean_array_get_size(x_2); -x_274 = lean_nat_dec_lt(x_229, x_273); -if (x_274 == 0) -{ -lean_dec(x_273); -lean_inc(x_227); -x_240 = x_156; -x_241 = x_227; -x_242 = x_272; -x_243 = x_228; -goto block_271; -} -else -{ -uint8_t x_275; -x_275 = lean_nat_dec_le(x_273, x_273); -if (x_275 == 0) -{ -lean_dec(x_273); -lean_inc(x_227); -x_240 = x_156; -x_241 = x_227; -x_242 = x_272; -x_243 = x_228; -goto block_271; -} -else -{ -lean_object* x_276; lean_object* x_277; size_t x_278; size_t x_279; lean_object* x_280; -lean_inc(x_227); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_227); -lean_ctor_set(x_276, 1, x_272); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_156); -lean_ctor_set(x_277, 1, x_276); -x_278 = 0; -x_279 = lean_usize_of_nat(x_273); -lean_dec(x_273); -lean_inc_ref(x_3); -lean_inc_ref(x_157); -x_280 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_157, x_2, x_278, x_279, x_277, x_3, x_228); -if (lean_obj_tag(x_280) == 0) -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_281, 1); -lean_inc(x_282); -x_283 = lean_ctor_get(x_280, 1); -lean_inc(x_283); -lean_dec_ref(x_280); -x_284 = lean_ctor_get(x_281, 0); -lean_inc(x_284); -lean_dec(x_281); -x_285 = lean_ctor_get(x_282, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_282, 1); -lean_inc(x_286); -lean_dec(x_282); -x_240 = x_284; -x_241 = x_285; -x_242 = x_286; -x_243 = x_283; -goto block_271; -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_3); -x_287 = lean_ctor_get(x_280, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_280, 1); -lean_inc(x_288); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_289 = x_280; -} else { - lean_dec_ref(x_280); - x_289 = lean_box(0); -} -if (lean_is_scalar(x_289)) { - x_290 = lean_alloc_ctor(1, 2, 0); -} else { - x_290 = x_289; -} -lean_ctor_set(x_290, 0, x_287); -lean_ctor_set(x_290, 1, x_288); -return x_290; -} -} -} -block_239: -{ -uint8_t x_234; -x_234 = lean_nat_dec_lt(x_229, x_231); -if (x_234 == 0) -{ -lean_dec(x_231); -lean_dec_ref(x_230); -x_5 = x_232; -x_6 = x_233; -goto block_14; -} -else -{ -uint8_t x_235; -x_235 = lean_nat_dec_le(x_231, x_231); -if (x_235 == 0) -{ -lean_dec(x_231); -lean_dec_ref(x_230); -x_5 = x_232; -x_6 = x_233; -goto block_14; -} -else -{ -size_t x_236; size_t x_237; lean_object* x_238; -x_236 = 0; -x_237 = lean_usize_of_nat(x_231); -lean_dec(x_231); -x_238 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_230, x_236, x_237, x_233); -lean_dec_ref(x_230); -x_5 = x_232; -x_6 = x_238; -goto block_14; -} -} -} -block_271: -{ -lean_object* x_244; uint8_t x_245; -x_244 = lean_array_get_size(x_242); -x_245 = lean_nat_dec_lt(x_229, x_244); -if (x_245 == 0) -{ -lean_dec(x_244); -lean_dec_ref(x_242); -lean_dec(x_240); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -x_246 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; -x_247 = lean_apply_2(x_3, x_246, x_243); -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_250 = x_247; -} else { - lean_dec_ref(x_247); - x_250 = lean_box(0); -} -if (lean_is_scalar(x_250)) { - x_251 = lean_alloc_ctor(0, 2, 0); -} else { - x_251 = x_250; -} -lean_ctor_set(x_251, 0, x_248); -lean_ctor_set(x_251, 1, x_249); -return x_251; -} -else -{ -lean_object* x_252; lean_object* x_253; -x_252 = lean_ctor_get(x_241, 0); -lean_inc(x_252); -lean_dec_ref(x_241); -x_253 = l_Lake_joinRelative(x_157, x_158); -if (lean_obj_tag(x_227) == 0) -{ -x_18 = x_253; -x_19 = x_252; -x_20 = x_243; -x_21 = x_245; -goto block_155; -} -else -{ -lean_object* x_254; uint8_t x_255; -x_254 = lean_ctor_get(x_227, 0); -lean_inc(x_254); -lean_dec_ref(x_227); -x_255 = l_Lake_instDecidableEqToolchainVer_decEq(x_254, x_252); -lean_dec(x_254); -if (x_255 == 0) -{ -x_18 = x_253; -x_19 = x_252; -x_20 = x_243; -x_21 = x_255; -goto block_155; -} -else -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -lean_dec_ref(x_253); -lean_dec(x_252); -lean_dec(x_17); -lean_dec_ref(x_16); -x_256 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; -x_257 = lean_apply_2(x_3, x_256, x_243); -x_258 = lean_ctor_get(x_257, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_259 = x_257; -} else { - lean_dec_ref(x_257); - x_259 = lean_box(0); -} -x_260 = lean_box(0); -if (lean_is_scalar(x_259)) { - x_261 = lean_alloc_ctor(0, 2, 0); -} else { - x_261 = x_259; -} -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_258); -return x_261; -} -} -} -} -else -{ -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_262; -lean_dec(x_240); -x_262 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; -x_230 = x_242; -x_231 = x_244; -x_232 = x_243; -x_233 = x_262; -goto block_239; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_263 = lean_ctor_get(x_241, 0); -lean_inc(x_263); -lean_dec_ref(x_241); -x_264 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; -x_265 = l_Lake_ToolchainVer_toString(x_263); -x_266 = lean_string_append(x_264, x_265); -lean_dec_ref(x_265); -x_267 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; -x_268 = lean_string_append(x_266, x_267); -x_269 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_240, x_245); -x_270 = lean_string_append(x_268, x_269); -lean_dec_ref(x_269); -x_230 = x_242; -x_231 = x_244; -x_232 = x_243; -x_233 = x_270; -goto block_239; -} -} -} -} -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -lean_dec_ref(x_157); -lean_dec(x_156); -lean_dec(x_17); -lean_dec_ref(x_16); -x_291 = lean_ctor_get(x_160, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_160, 1); -lean_inc(x_292); -lean_dec_ref(x_160); -x_293 = lean_io_error_to_string(x_291); -x_294 = 3; -x_295 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_295, 0, x_293); -lean_ctor_set_uint8(x_295, sizeof(void*)*1, x_294); -x_296 = lean_apply_2(x_3, x_295, x_292); -x_297 = !lean_is_exclusive(x_296); +uint8_t x_297; +x_297 = lean_nat_dec_le(x_295, x_295); if (x_297 == 0) { -lean_object* x_298; lean_object* x_299; -x_298 = lean_ctor_get(x_296, 0); -lean_dec(x_298); -x_299 = lean_box(0); -lean_ctor_set_tag(x_296, 1); -lean_ctor_set(x_296, 0, x_299); -return x_296; +lean_dec(x_295); +lean_inc(x_241); +x_267 = x_162; +x_268 = x_241; +x_269 = x_294; +x_270 = x_242; +goto block_293; } else { -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_296, 1); -lean_inc(x_300); -lean_dec(x_296); -x_301 = lean_box(0); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_300); -return x_302; +lean_object* x_298; lean_object* x_299; size_t x_300; size_t x_301; lean_object* x_302; +lean_inc(x_241); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_241); +lean_ctor_set(x_298, 1, x_294); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_162); +lean_ctor_set(x_299, 1, x_298); +x_300 = 0; +x_301 = lean_usize_of_nat(x_295); +lean_dec(x_295); +lean_inc_ref(x_3); +lean_inc_ref(x_163); +x_302 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_163, x_2, x_300, x_301, x_299, x_3, x_242); +if (lean_obj_tag(x_302) == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +x_305 = lean_ctor_get(x_302, 1); +lean_inc(x_305); +lean_dec_ref(x_302); +x_306 = lean_ctor_get(x_303, 0); +lean_inc(x_306); +lean_dec(x_303); +x_307 = lean_ctor_get(x_304, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_304, 1); +lean_inc(x_308); +lean_dec(x_304); +x_267 = x_306; +x_268 = x_307; +x_269 = x_308; +x_270 = x_305; +goto block_293; +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec_ref(x_3); +x_309 = lean_ctor_get(x_302, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_302, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_311 = x_302; +} else { + lean_dec_ref(x_302); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +} +block_253: +{ +uint8_t x_248; +x_248 = lean_nat_dec_lt(x_243, x_246); +if (x_248 == 0) +{ +lean_dec(x_246); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_247; +goto block_14; +} +else +{ +uint8_t x_249; +x_249 = lean_nat_dec_le(x_246, x_246); +if (x_249 == 0) +{ +lean_dec(x_246); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_247; +goto block_14; +} +else +{ +size_t x_250; size_t x_251; lean_object* x_252; +x_250 = 0; +x_251 = lean_usize_of_nat(x_246); +lean_dec(x_246); +x_252 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_244, x_250, x_251, x_247); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_252; +goto block_14; +} +} +} +block_266: +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_261 = lean_string_append(x_257, x_260); +lean_dec_ref(x_260); +x_262 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; +x_263 = lean_string_append(x_261, x_262); +x_264 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_259, x_258); +x_265 = lean_string_append(x_263, x_264); +lean_dec_ref(x_264); +x_244 = x_255; +x_245 = x_254; +x_246 = x_256; +x_247 = x_265; +goto block_253; +} +block_293: +{ +lean_object* x_271; uint8_t x_272; +x_271 = lean_array_get_size(x_269); +x_272 = lean_nat_dec_lt(x_243, x_271); +if (x_272 == 0) +{ +lean_dec(x_271); +lean_dec_ref(x_269); +lean_dec(x_267); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +x_273 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; +x_274 = lean_apply_2(x_3, x_273, x_270); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_277 = x_274; +} else { + lean_dec_ref(x_274); + x_277 = lean_box(0); +} +if (lean_is_scalar(x_277)) { + x_278 = lean_alloc_ctor(0, 2, 0); +} else { + x_278 = x_277; +} +lean_ctor_set(x_278, 0, x_275); +lean_ctor_set(x_278, 1, x_276); +return x_278; +} +else +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_268, 0); +lean_inc(x_279); +lean_dec_ref(x_268); +x_280 = l_Lake_joinRelative(x_163, x_164); +if (lean_obj_tag(x_241) == 0) +{ +x_155 = x_279; +x_156 = x_280; +x_157 = x_270; +x_158 = x_272; +goto block_161; +} +else +{ +lean_object* x_281; uint8_t x_282; +x_281 = lean_ctor_get(x_241, 0); +lean_inc(x_281); +lean_dec_ref(x_241); +x_282 = l_Lake_instDecidableEqToolchainVer_decEq(x_281, x_279); +lean_dec(x_281); +if (x_282 == 0) +{ +x_155 = x_279; +x_156 = x_280; +x_157 = x_270; +x_158 = x_282; +goto block_161; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +lean_dec_ref(x_280); +lean_dec(x_279); +lean_dec(x_17); +lean_dec_ref(x_16); +x_283 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; +x_284 = lean_apply_2(x_3, x_283, x_270); +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_286 = x_284; +} else { + lean_dec_ref(x_284); + x_286 = lean_box(0); +} +x_287 = lean_box(0); +if (lean_is_scalar(x_286)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_286; +} +lean_ctor_set(x_288, 0, x_287); +lean_ctor_set(x_288, 1, x_285); +return x_288; +} +} +} +} +else +{ +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_289; +lean_dec(x_267); +x_289 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; +x_244 = x_269; +x_245 = x_270; +x_246 = x_271; +x_247 = x_289; +goto block_253; +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_290 = lean_ctor_get(x_268, 0); +lean_inc(x_290); +lean_dec_ref(x_268); +x_291 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; +x_292 = lean_ctor_get(x_290, 0); +lean_inc_ref(x_292); +lean_dec(x_290); +x_254 = x_270; +x_255 = x_269; +x_256 = x_271; +x_257 = x_291; +x_258 = x_272; +x_259 = x_267; +x_260 = x_292; +goto block_266; +} +} +} +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; +lean_dec_ref(x_163); +lean_dec(x_162); +lean_dec(x_17); +lean_dec_ref(x_16); +x_313 = lean_ctor_get(x_166, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_166, 1); +lean_inc(x_314); +lean_dec_ref(x_166); +x_315 = lean_io_error_to_string(x_313); +x_316 = 3; +x_317 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set_uint8(x_317, sizeof(void*)*1, x_316); +x_318 = lean_apply_2(x_3, x_317, x_314); +x_319 = !lean_is_exclusive(x_318); +if (x_319 == 0) +{ +lean_object* x_320; lean_object* x_321; +x_320 = lean_ctor_get(x_318, 0); +lean_dec(x_320); +x_321 = lean_box(0); +lean_ctor_set_tag(x_318, 1); +lean_ctor_set(x_318, 0, x_321); +return x_318; +} +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_322 = lean_ctor_get(x_318, 1); +lean_inc(x_322); +lean_dec(x_318); +x_323 = lean_box(0); +x_324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_322); +return x_324; } } block_14: @@ -6842,384 +6877,382 @@ lean_ctor_set(x_13, 1, x_12); return x_13; } } -block_155: +block_154: { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_22 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__0; -x_23 = l_Lake_ToolchainVer_toString(x_19); -x_24 = lean_string_append(x_22, x_23); -x_25 = l___private_Lake_Load_Resolve_0__Lake_reuseManifest___closed__3; -x_26 = lean_string_append(x_24, x_25); -x_27 = 1; -x_28 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_23 = lean_string_append(x_21, x_22); +x_24 = l___private_Lake_Load_Resolve_0__Lake_reuseManifest___closed__3; +x_25 = lean_string_append(x_23, x_24); +x_26 = 1; +x_27 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); lean_inc_ref(x_3); -x_29 = lean_apply_2(x_3, x_28, x_20); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec_ref(x_29); -x_31 = l_IO_FS_writeFile(x_18, x_23, x_30); -lean_dec_ref(x_18); -if (lean_obj_tag(x_31) == 0) +x_28 = lean_apply_2(x_3, x_27, x_20); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec_ref(x_28); +x_30 = l_IO_FS_writeFile(x_19, x_22, x_29); +lean_dec_ref(x_19); +if (lean_obj_tag(x_30) == 0) { if (lean_obj_tag(x_17) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; -lean_dec_ref(x_23); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +lean_dec_ref(x_22); lean_dec_ref(x_16); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec_ref(x_31); -x_33 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1; lean_inc_ref(x_3); -x_34 = lean_apply_2(x_3, x_33, x_32); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec_ref(x_34); -x_36 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; -x_37 = lean_io_exit(x_36, x_35); -if (lean_obj_tag(x_37) == 0) +x_33 = lean_apply_2(x_3, x_32, x_31); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec_ref(x_33); +x_35 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_36 = lean_io_exit(x_35, x_34); +if (lean_obj_tag(x_36) == 0) { -uint8_t x_38; +uint8_t x_37; lean_dec_ref(x_3); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -return x_37; +return x_36; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_42 = lean_ctor_get(x_37, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); -lean_dec_ref(x_37); -x_44 = lean_io_error_to_string(x_42); -x_45 = 3; -x_46 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_45); -x_47 = lean_apply_2(x_3, x_46, x_43); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +lean_dec_ref(x_36); +x_43 = lean_io_error_to_string(x_41); +x_44 = 3; +x_45 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); +x_46 = lean_apply_2(x_3, x_45, x_42); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -x_50 = lean_box(0); -lean_ctor_set_tag(x_47, 1); -lean_ctor_set(x_47, 0, x_50); -return x_47; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +x_49 = lean_box(0); +lean_ctor_set_tag(x_46, 1); +lean_ctor_set(x_46, 0, x_49); +return x_46; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_dec(x_46); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } } else { -lean_object* x_54; -x_54 = lean_ctor_get(x_16, 2); -if (lean_obj_tag(x_54) == 0) +lean_object* x_53; +x_53 = lean_ctor_get(x_16, 2); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; -lean_dec_ref(x_23); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; +lean_dec_ref(x_22); lean_dec_ref(x_17); lean_dec_ref(x_16); -x_55 = lean_ctor_get(x_31, 1); -lean_inc(x_55); -lean_dec_ref(x_31); -x_56 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5; +x_54 = lean_ctor_get(x_30, 1); +lean_inc(x_54); +lean_dec_ref(x_30); +x_55 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4; lean_inc_ref(x_3); -x_57 = lean_apply_2(x_3, x_56, x_55); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec_ref(x_57); -x_59 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; -x_60 = lean_io_exit(x_59, x_58); -if (lean_obj_tag(x_60) == 0) +x_56 = lean_apply_2(x_3, x_55, x_54); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec_ref(x_56); +x_58 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_59 = lean_io_exit(x_58, x_57); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_61; +uint8_t x_60; lean_dec_ref(x_3); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -return x_60; +return x_59; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); lean_inc(x_62); -lean_dec(x_60); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_inc(x_61); +lean_dec(x_59); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_65 = lean_ctor_get(x_60, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec_ref(x_60); -x_67 = lean_io_error_to_string(x_65); -x_68 = 3; -x_69 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*1, x_68); -x_70 = lean_apply_2(x_3, x_69, x_66); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +lean_dec_ref(x_59); +x_66 = lean_io_error_to_string(x_64); +x_67 = 3; +x_68 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set_uint8(x_68, sizeof(void*)*1, x_67); +x_69 = lean_apply_2(x_3, x_68, x_65); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -x_73 = lean_box(0); -lean_ctor_set_tag(x_70, 1); -lean_ctor_set(x_70, 0, x_73); -return x_70; +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = lean_box(0); +lean_ctor_set_tag(x_69, 1); +lean_ctor_set(x_69, 0, x_72); +return x_69; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_70, 1); -lean_inc(x_74); -lean_dec(x_70); -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_69, 1); +lean_inc(x_73); +lean_dec(x_69); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; -x_77 = lean_ctor_get(x_31, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; +x_76 = lean_ctor_get(x_30, 1); +lean_inc(x_76); +lean_dec_ref(x_30); +x_77 = lean_ctor_get(x_17, 0); lean_inc(x_77); -lean_dec_ref(x_31); -x_78 = lean_ctor_get(x_17, 0); -lean_inc(x_78); lean_dec_ref(x_17); -x_79 = lean_ctor_get(x_54, 0); -x_80 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7; +x_78 = lean_ctor_get(x_53, 0); +x_79 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__6; lean_inc_ref(x_3); -x_81 = lean_apply_2(x_3, x_80, x_77); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec_ref(x_81); -x_83 = lean_ctor_get(x_79, 1); -lean_inc_ref(x_83); -x_84 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__8; -x_85 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__11; -x_86 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__14; -x_87 = lean_array_push(x_86, x_23); -x_88 = lean_array_push(x_87, x_85); -x_89 = l_Array_append___redArg(x_88, x_78); -lean_dec(x_78); -x_90 = lean_box(0); -x_91 = l_Lake_Env_noToolchainVars(x_16); -x_92 = 1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_84); -lean_ctor_set(x_93, 1, x_83); -lean_ctor_set(x_93, 2, x_89); -lean_ctor_set(x_93, 3, x_90); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_92); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_21); -x_94 = lean_io_process_spawn(x_93, x_82); -if (lean_obj_tag(x_94) == 0) +x_80 = lean_apply_2(x_3, x_79, x_76); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec_ref(x_80); +x_82 = lean_ctor_get(x_78, 1); +lean_inc_ref(x_82); +x_83 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7; +x_84 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__10; +x_85 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__13; +x_86 = lean_array_push(x_85, x_22); +x_87 = lean_array_push(x_86, x_84); +x_88 = l_Array_append___redArg(x_87, x_77); +lean_dec(x_77); +x_89 = lean_box(0); +x_90 = l_Lake_Env_noToolchainVars(x_16); +x_91 = 1; +x_92 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_92, 0, x_83); +lean_ctor_set(x_92, 1, x_82); +lean_ctor_set(x_92, 2, x_88); +lean_ctor_set(x_92, 3, x_89); +lean_ctor_set(x_92, 4, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*5, x_91); +lean_ctor_set_uint8(x_92, sizeof(void*)*5 + 1, x_18); +x_93 = lean_io_process_spawn(x_92, x_81); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_94, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec_ref(x_94); -x_97 = lean_io_process_child_wait(x_84, x_95, x_96); -lean_dec(x_95); -if (lean_obj_tag(x_97) == 0) +lean_dec_ref(x_93); +x_96 = lean_io_process_child_wait(x_83, x_94, x_95); +lean_dec(x_94); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_98; lean_object* x_99; uint32_t x_100; uint8_t x_101; lean_object* x_102; -x_98 = lean_ctor_get(x_97, 0); +lean_object* x_97; lean_object* x_98; uint32_t x_99; uint8_t x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec_ref(x_97); -x_100 = lean_unbox_uint32(x_98); -lean_dec(x_98); -x_101 = lean_uint32_to_uint8(x_100); -x_102 = lean_io_exit(x_101, x_99); -if (lean_obj_tag(x_102) == 0) +lean_dec_ref(x_96); +x_99 = lean_unbox_uint32(x_97); +lean_dec(x_97); +x_100 = lean_uint32_to_uint8(x_99); +x_101 = lean_io_exit(x_100, x_98); +if (lean_obj_tag(x_101) == 0) { -uint8_t x_103; +uint8_t x_102; lean_dec_ref(x_3); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -return x_102; +return x_101; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 0); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_101, 0); +x_104 = lean_ctor_get(x_101, 1); lean_inc(x_104); -lean_dec(x_102); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; +lean_inc(x_103); +lean_dec(x_101); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_107 = lean_ctor_get(x_102, 0); +lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_106 = lean_ctor_get(x_101, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_101, 1); lean_inc(x_107); -x_108 = lean_ctor_get(x_102, 1); -lean_inc(x_108); -lean_dec_ref(x_102); -x_109 = lean_io_error_to_string(x_107); -x_110 = 3; -x_111 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set_uint8(x_111, sizeof(void*)*1, x_110); -x_112 = lean_apply_2(x_3, x_111, x_108); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) +lean_dec_ref(x_101); +x_108 = lean_io_error_to_string(x_106); +x_109 = 3; +x_110 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); +x_111 = lean_apply_2(x_3, x_110, x_107); +x_112 = !lean_is_exclusive(x_111); +if (x_112 == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_112, 0); -lean_dec(x_114); -x_115 = lean_box(0); -lean_ctor_set_tag(x_112, 1); -lean_ctor_set(x_112, 0, x_115); -return x_112; +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_111, 0); +lean_dec(x_113); +x_114 = lean_box(0); +lean_ctor_set_tag(x_111, 1); +lean_ctor_set(x_111, 0, x_114); +return x_111; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_112, 1); -lean_inc(x_116); -lean_dec(x_112); -x_117 = lean_box(0); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_116); -return x_118; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +lean_dec(x_111); +x_116 = lean_box(0); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +return x_117; } } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -x_119 = lean_ctor_get(x_97, 0); +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_118 = lean_ctor_get(x_96, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_96, 1); lean_inc(x_119); -x_120 = lean_ctor_get(x_97, 1); -lean_inc(x_120); -lean_dec_ref(x_97); -x_121 = lean_io_error_to_string(x_119); -x_122 = 3; -x_123 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set_uint8(x_123, sizeof(void*)*1, x_122); -x_124 = lean_apply_2(x_3, x_123, x_120); -x_125 = !lean_is_exclusive(x_124); -if (x_125 == 0) +lean_dec_ref(x_96); +x_120 = lean_io_error_to_string(x_118); +x_121 = 3; +x_122 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set_uint8(x_122, sizeof(void*)*1, x_121); +x_123 = lean_apply_2(x_3, x_122, x_119); +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) { -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_124, 0); -lean_dec(x_126); -x_127 = lean_box(0); -lean_ctor_set_tag(x_124, 1); -lean_ctor_set(x_124, 0, x_127); -return x_124; +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_123, 0); +lean_dec(x_125); +x_126 = lean_box(0); +lean_ctor_set_tag(x_123, 1); +lean_ctor_set(x_123, 0, x_126); +return x_123; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_124, 1); -lean_inc(x_128); -lean_dec(x_124); -x_129 = lean_box(0); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_123, 1); +lean_inc(x_127); +lean_dec(x_123); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +return x_129; } } } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_131 = lean_ctor_get(x_94, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_130 = lean_ctor_get(x_93, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_93, 1); lean_inc(x_131); -x_132 = lean_ctor_get(x_94, 1); -lean_inc(x_132); -lean_dec_ref(x_94); -x_133 = lean_io_error_to_string(x_131); -x_134 = 3; -x_135 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set_uint8(x_135, sizeof(void*)*1, x_134); -x_136 = lean_apply_2(x_3, x_135, x_132); -x_137 = !lean_is_exclusive(x_136); -if (x_137 == 0) +lean_dec_ref(x_93); +x_132 = lean_io_error_to_string(x_130); +x_133 = 3; +x_134 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set_uint8(x_134, sizeof(void*)*1, x_133); +x_135 = lean_apply_2(x_3, x_134, x_131); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_136, 0); -lean_dec(x_138); -x_139 = lean_box(0); -lean_ctor_set_tag(x_136, 1); -lean_ctor_set(x_136, 0, x_139); -return x_136; +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_135, 0); +lean_dec(x_137); +x_138 = lean_box(0); +lean_ctor_set_tag(x_135, 1); +lean_ctor_set(x_135, 0, x_138); +return x_135; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -lean_dec(x_136); -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -return x_142; +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_135, 1); +lean_inc(x_139); +lean_dec(x_135); +x_140 = lean_box(0); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +return x_141; } } } @@ -7227,46 +7260,60 @@ return x_142; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -lean_dec_ref(x_23); +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +lean_dec_ref(x_22); lean_dec(x_17); lean_dec_ref(x_16); -x_143 = lean_ctor_get(x_31, 0); +x_142 = lean_ctor_get(x_30, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_30, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_31, 1); -lean_inc(x_144); -lean_dec_ref(x_31); -x_145 = lean_io_error_to_string(x_143); -x_146 = 3; -x_147 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set_uint8(x_147, sizeof(void*)*1, x_146); -x_148 = lean_apply_2(x_3, x_147, x_144); -x_149 = !lean_is_exclusive(x_148); -if (x_149 == 0) +lean_dec_ref(x_30); +x_144 = lean_io_error_to_string(x_142); +x_145 = 3; +x_146 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set_uint8(x_146, sizeof(void*)*1, x_145); +x_147 = lean_apply_2(x_3, x_146, x_143); +x_148 = !lean_is_exclusive(x_147); +if (x_148 == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_148, 0); -lean_dec(x_150); -x_151 = lean_box(0); -lean_ctor_set_tag(x_148, 1); -lean_ctor_set(x_148, 0, x_151); -return x_148; +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_147, 0); +lean_dec(x_149); +x_150 = lean_box(0); +lean_ctor_set_tag(x_147, 1); +lean_ctor_set(x_147, 0, x_150); +return x_147; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_148, 1); -lean_inc(x_152); -lean_dec(x_148); -x_153 = lean_box(0); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_152); -return x_154; +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_147, 1); +lean_inc(x_151); +lean_dec(x_147); +x_152 = lean_box(0); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_151); +return x_153; } } } +block_161: +{ +lean_object* x_159; lean_object* x_160; +x_159 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__14; +x_160 = lean_ctor_get(x_155, 0); +lean_inc_ref(x_160); +lean_dec_ref(x_155); +x_18 = x_158; +x_19 = x_156; +x_20 = x_157; +x_21 = x_159; +x_22 = x_160; +goto block_154; +} } } LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___elam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -15918,7 +15965,7 @@ return x_12; LEAN_EXPORT lean_object* l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__19(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_object* x_5; lean_object* x_6; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_155; lean_object* x_156; lean_object* x_157; uint8_t x_158; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; x_15 = lean_ctor_get(x_2, 0); lean_inc_ref(x_15); x_16 = lean_ctor_get(x_2, 1); @@ -15926,635 +15973,663 @@ lean_inc_ref(x_16); x_17 = lean_ctor_get(x_2, 3); lean_inc(x_17); lean_dec_ref(x_2); -x_156 = lean_ctor_get(x_15, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_15, 2); -lean_inc_ref(x_157); -lean_dec_ref(x_15); -x_158 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___elam__0___closed__0; -lean_inc_ref(x_157); -x_159 = l_System_FilePath_join(x_157, x_158); -x_160 = l_Lake_ToolchainVer_ofFile_x3f(x_159, x_4); -lean_dec_ref(x_159); -if (lean_obj_tag(x_160) == 0) -{ -uint8_t x_161; -x_161 = !lean_is_exclusive(x_160); -if (x_161 == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_209; lean_object* x_210; uint8_t x_211; -x_162 = lean_ctor_get(x_160, 0); -x_163 = lean_ctor_get(x_160, 1); -x_164 = lean_unsigned_to_nat(0u); -x_209 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; -x_210 = lean_array_get_size(x_3); -x_211 = lean_nat_dec_lt(x_164, x_210); -if (x_211 == 0) -{ -lean_dec(x_210); -lean_free_object(x_160); +x_162 = lean_ctor_get(x_15, 0); lean_inc(x_162); -x_175 = x_156; -x_176 = x_162; -x_177 = x_209; -x_178 = x_163; -goto block_208; +x_163 = lean_ctor_get(x_15, 2); +lean_inc_ref(x_163); +lean_dec_ref(x_15); +x_164 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___elam__0___closed__0; +lean_inc_ref(x_163); +x_165 = l_System_FilePath_join(x_163, x_164); +x_166 = l_Lake_ToolchainVer_ofFile_x3f(x_165, x_4); +lean_dec_ref(x_165); +if (lean_obj_tag(x_166) == 0) +{ +uint8_t x_167; +x_167 = !lean_is_exclusive(x_166); +if (x_167 == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_181; lean_object* x_182; uint8_t x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_223; lean_object* x_224; uint8_t x_225; +x_168 = lean_ctor_get(x_166, 0); +x_169 = lean_ctor_get(x_166, 1); +x_170 = lean_unsigned_to_nat(0u); +x_223 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; +x_224 = lean_array_get_size(x_3); +x_225 = lean_nat_dec_lt(x_170, x_224); +if (x_225 == 0) +{ +lean_dec(x_224); +lean_free_object(x_166); +lean_inc(x_168); +x_194 = x_162; +x_195 = x_168; +x_196 = x_223; +x_197 = x_169; +goto block_222; } else { -uint8_t x_212; -x_212 = lean_nat_dec_le(x_210, x_210); +uint8_t x_226; +x_226 = lean_nat_dec_le(x_224, x_224); +if (x_226 == 0) +{ +lean_dec(x_224); +lean_free_object(x_166); +lean_inc(x_168); +x_194 = x_162; +x_195 = x_168; +x_196 = x_223; +x_197 = x_169; +goto block_222; +} +else +{ +lean_object* x_227; size_t x_228; size_t x_229; lean_object* x_230; +lean_inc(x_168); +lean_ctor_set(x_166, 1, x_223); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_162); +lean_ctor_set(x_227, 1, x_166); +x_228 = 0; +x_229 = lean_usize_of_nat(x_224); +lean_dec(x_224); +lean_inc_ref(x_1); +lean_inc_ref(x_163); +x_230 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_163, x_3, x_228, x_229, x_227, x_1, x_169); +if (lean_obj_tag(x_230) == 0) +{ +lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; +x_231 = lean_ctor_get(x_230, 0); +lean_inc(x_231); +x_232 = lean_ctor_get(x_231, 1); +lean_inc(x_232); +x_233 = lean_ctor_get(x_230, 1); +lean_inc(x_233); +lean_dec_ref(x_230); +x_234 = lean_ctor_get(x_231, 0); +lean_inc(x_234); +lean_dec(x_231); +x_235 = lean_ctor_get(x_232, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_232, 1); +lean_inc(x_236); +lean_dec(x_232); +x_194 = x_234; +x_195 = x_235; +x_196 = x_236; +x_197 = x_233; +goto block_222; +} +else +{ +uint8_t x_237; +lean_dec(x_168); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_237 = !lean_is_exclusive(x_230); +if (x_237 == 0) +{ +return x_230; +} +else +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_238 = lean_ctor_get(x_230, 0); +x_239 = lean_ctor_get(x_230, 1); +lean_inc(x_239); +lean_inc(x_238); +lean_dec(x_230); +x_240 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +return x_240; +} +} +} +} +block_180: +{ +uint8_t x_175; +x_175 = lean_nat_dec_lt(x_170, x_173); +if (x_175 == 0) +{ +lean_dec(x_173); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_174; +goto block_14; +} +else +{ +uint8_t x_176; +x_176 = lean_nat_dec_le(x_173, x_173); +if (x_176 == 0) +{ +lean_dec(x_173); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_174; +goto block_14; +} +else +{ +size_t x_177; size_t x_178; lean_object* x_179; +x_177 = 0; +x_178 = lean_usize_of_nat(x_173); +lean_dec(x_173); +x_179 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_171, x_177, x_178, x_174); +lean_dec_ref(x_171); +x_5 = x_172; +x_6 = x_179; +goto block_14; +} +} +} +block_193: +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_188 = lean_string_append(x_184, x_187); +lean_dec_ref(x_187); +x_189 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; +x_190 = lean_string_append(x_188, x_189); +x_191 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_181, x_183); +x_192 = lean_string_append(x_190, x_191); +lean_dec_ref(x_191); +x_171 = x_182; +x_172 = x_186; +x_173 = x_185; +x_174 = x_192; +goto block_180; +} +block_222: +{ +lean_object* x_198; uint8_t x_199; +x_198 = lean_array_get_size(x_196); +x_199 = lean_nat_dec_lt(x_170, x_198); +if (x_199 == 0) +{ +lean_dec(x_198); +lean_dec_ref(x_196); +lean_dec(x_194); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_200; lean_object* x_201; uint8_t x_202; +lean_dec(x_168); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +x_200 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; +x_201 = lean_apply_2(x_1, x_200, x_197); +x_202 = !lean_is_exclusive(x_201); +if (x_202 == 0) +{ +return x_201; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_201, 0); +x_204 = lean_ctor_get(x_201, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_201); +x_205 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; +} +} +else +{ +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_195, 0); +lean_inc(x_206); +lean_dec_ref(x_195); +x_207 = l_Lake_joinRelative(x_163, x_164); +if (lean_obj_tag(x_168) == 0) +{ +x_155 = x_207; +x_156 = x_206; +x_157 = x_197; +x_158 = x_199; +goto block_161; +} +else +{ +lean_object* x_208; uint8_t x_209; +x_208 = lean_ctor_get(x_168, 0); +lean_inc(x_208); +lean_dec_ref(x_168); +x_209 = l_Lake_instDecidableEqToolchainVer_decEq(x_208, x_206); +lean_dec(x_208); +if (x_209 == 0) +{ +x_155 = x_207; +x_156 = x_206; +x_157 = x_197; +x_158 = x_209; +goto block_161; +} +else +{ +lean_object* x_210; lean_object* x_211; uint8_t x_212; +lean_dec_ref(x_207); +lean_dec(x_206); +lean_dec(x_17); +lean_dec_ref(x_16); +x_210 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; +x_211 = lean_apply_2(x_1, x_210, x_197); +x_212 = !lean_is_exclusive(x_211); if (x_212 == 0) { -lean_dec(x_210); -lean_free_object(x_160); -lean_inc(x_162); -x_175 = x_156; -x_176 = x_162; -x_177 = x_209; -x_178 = x_163; -goto block_208; +lean_object* x_213; lean_object* x_214; +x_213 = lean_ctor_get(x_211, 0); +lean_dec(x_213); +x_214 = lean_box(0); +lean_ctor_set(x_211, 0, x_214); +return x_211; } else { -lean_object* x_213; size_t x_214; size_t x_215; lean_object* x_216; -lean_inc(x_162); -lean_ctor_set(x_160, 1, x_209); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_156); -lean_ctor_set(x_213, 1, x_160); -x_214 = 0; -x_215 = lean_usize_of_nat(x_210); -lean_dec(x_210); -lean_inc_ref(x_1); -lean_inc_ref(x_157); -x_216 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_157, x_3, x_214, x_215, x_213, x_1, x_163); -if (lean_obj_tag(x_216) == 0) -{ -lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_217, 1); -lean_inc(x_218); -x_219 = lean_ctor_get(x_216, 1); -lean_inc(x_219); -lean_dec_ref(x_216); -x_220 = lean_ctor_get(x_217, 0); -lean_inc(x_220); -lean_dec(x_217); -x_221 = lean_ctor_get(x_218, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_218, 1); -lean_inc(x_222); -lean_dec(x_218); -x_175 = x_220; -x_176 = x_221; -x_177 = x_222; -x_178 = x_219; -goto block_208; +lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_215 = lean_ctor_get(x_211, 1); +lean_inc(x_215); +lean_dec(x_211); +x_216 = lean_box(0); +x_217 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_215); +return x_217; +} +} +} +} } else { -uint8_t x_223; -lean_dec(x_162); -lean_dec_ref(x_157); +lean_dec(x_168); +lean_dec_ref(x_163); lean_dec(x_17); lean_dec_ref(x_16); -lean_dec_ref(x_1); -x_223 = !lean_is_exclusive(x_216); -if (x_223 == 0) +if (lean_obj_tag(x_195) == 0) { -return x_216; -} -else -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_216, 0); -x_225 = lean_ctor_get(x_216, 1); -lean_inc(x_225); -lean_inc(x_224); -lean_dec(x_216); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -return x_226; -} -} -} -} -block_174: -{ -uint8_t x_169; -x_169 = lean_nat_dec_lt(x_164, x_167); -if (x_169 == 0) -{ -lean_dec(x_167); -lean_dec_ref(x_165); -x_5 = x_166; -x_6 = x_168; -goto block_14; -} -else -{ -uint8_t x_170; -x_170 = lean_nat_dec_le(x_167, x_167); -if (x_170 == 0) -{ -lean_dec(x_167); -lean_dec_ref(x_165); -x_5 = x_166; -x_6 = x_168; -goto block_14; -} -else -{ -size_t x_171; size_t x_172; lean_object* x_173; -x_171 = 0; -x_172 = lean_usize_of_nat(x_167); -lean_dec(x_167); -x_173 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_165, x_171, x_172, x_168); -lean_dec_ref(x_165); -x_5 = x_166; -x_6 = x_173; -goto block_14; -} -} -} -block_208: -{ -lean_object* x_179; uint8_t x_180; -x_179 = lean_array_get_size(x_177); -x_180 = lean_nat_dec_lt(x_164, x_179); -if (x_180 == 0) -{ -lean_dec(x_179); -lean_dec_ref(x_177); -lean_dec(x_175); -if (lean_obj_tag(x_176) == 0) -{ -lean_object* x_181; lean_object* x_182; uint8_t x_183; -lean_dec(x_162); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -x_181 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; -x_182 = lean_apply_2(x_1, x_181, x_178); -x_183 = !lean_is_exclusive(x_182); -if (x_183 == 0) -{ -return x_182; -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_184 = lean_ctor_get(x_182, 0); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_inc(x_184); -lean_dec(x_182); -x_186 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_186, 0, x_184); -lean_ctor_set(x_186, 1, x_185); -return x_186; -} -} -else -{ -lean_object* x_187; lean_object* x_188; -x_187 = lean_ctor_get(x_176, 0); -lean_inc(x_187); -lean_dec_ref(x_176); -x_188 = l_Lake_joinRelative(x_157, x_158); -if (lean_obj_tag(x_162) == 0) -{ -x_18 = x_188; -x_19 = x_187; -x_20 = x_178; -x_21 = x_180; -goto block_155; -} -else -{ -lean_object* x_189; uint8_t x_190; -x_189 = lean_ctor_get(x_162, 0); -lean_inc(x_189); -lean_dec_ref(x_162); -x_190 = l_Lake_instDecidableEqToolchainVer_decEq(x_189, x_187); -lean_dec(x_189); -if (x_190 == 0) -{ -x_18 = x_188; -x_19 = x_187; -x_20 = x_178; -x_21 = x_190; -goto block_155; -} -else -{ -lean_object* x_191; lean_object* x_192; uint8_t x_193; -lean_dec_ref(x_188); -lean_dec(x_187); -lean_dec(x_17); -lean_dec_ref(x_16); -x_191 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; -x_192 = lean_apply_2(x_1, x_191, x_178); -x_193 = !lean_is_exclusive(x_192); -if (x_193 == 0) -{ -lean_object* x_194; lean_object* x_195; -x_194 = lean_ctor_get(x_192, 0); +lean_object* x_218; lean_dec(x_194); -x_195 = lean_box(0); -lean_ctor_set(x_192, 0, x_195); -return x_192; +x_218 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; +x_171 = x_196; +x_172 = x_197; +x_173 = x_198; +x_174 = x_218; +goto block_180; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_192, 1); -lean_inc(x_196); -lean_dec(x_192); -x_197 = lean_box(0); -x_198 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_198, 0, x_197); -lean_ctor_set(x_198, 1, x_196); -return x_198; -} +lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_219 = lean_ctor_get(x_195, 0); +lean_inc(x_219); +lean_dec_ref(x_195); +x_220 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; +x_221 = lean_ctor_get(x_219, 0); +lean_inc_ref(x_221); +lean_dec(x_219); +x_181 = x_194; +x_182 = x_196; +x_183 = x_199; +x_184 = x_220; +x_185 = x_198; +x_186 = x_197; +x_187 = x_221; +goto block_193; } } } } else { -lean_dec(x_162); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -if (lean_obj_tag(x_176) == 0) +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_294; lean_object* x_295; uint8_t x_296; +x_241 = lean_ctor_get(x_166, 0); +x_242 = lean_ctor_get(x_166, 1); +lean_inc(x_242); +lean_inc(x_241); +lean_dec(x_166); +x_243 = lean_unsigned_to_nat(0u); +x_294 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; +x_295 = lean_array_get_size(x_3); +x_296 = lean_nat_dec_lt(x_243, x_295); +if (x_296 == 0) { -lean_object* x_199; -lean_dec(x_175); -x_199 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; -x_165 = x_177; -x_166 = x_178; -x_167 = x_179; -x_168 = x_199; -goto block_174; +lean_dec(x_295); +lean_inc(x_241); +x_267 = x_162; +x_268 = x_241; +x_269 = x_294; +x_270 = x_242; +goto block_293; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_200 = lean_ctor_get(x_176, 0); -lean_inc(x_200); -lean_dec_ref(x_176); -x_201 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; -x_202 = l_Lake_ToolchainVer_toString(x_200); -x_203 = lean_string_append(x_201, x_202); -lean_dec_ref(x_202); -x_204 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; -x_205 = lean_string_append(x_203, x_204); -x_206 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_175, x_180); -x_207 = lean_string_append(x_205, x_206); -lean_dec_ref(x_206); -x_165 = x_177; -x_166 = x_178; -x_167 = x_179; -x_168 = x_207; -goto block_174; -} -} -} -} -else -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_272; lean_object* x_273; uint8_t x_274; -x_227 = lean_ctor_get(x_160, 0); -x_228 = lean_ctor_get(x_160, 1); -lean_inc(x_228); -lean_inc(x_227); -lean_dec(x_160); -x_229 = lean_unsigned_to_nat(0u); -x_272 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__21; -x_273 = lean_array_get_size(x_3); -x_274 = lean_nat_dec_lt(x_229, x_273); -if (x_274 == 0) -{ -lean_dec(x_273); -lean_inc(x_227); -x_240 = x_156; -x_241 = x_227; -x_242 = x_272; -x_243 = x_228; -goto block_271; -} -else -{ -uint8_t x_275; -x_275 = lean_nat_dec_le(x_273, x_273); -if (x_275 == 0) -{ -lean_dec(x_273); -lean_inc(x_227); -x_240 = x_156; -x_241 = x_227; -x_242 = x_272; -x_243 = x_228; -goto block_271; -} -else -{ -lean_object* x_276; lean_object* x_277; size_t x_278; size_t x_279; lean_object* x_280; -lean_inc(x_227); -x_276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_276, 0, x_227); -lean_ctor_set(x_276, 1, x_272); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_156); -lean_ctor_set(x_277, 1, x_276); -x_278 = 0; -x_279 = lean_usize_of_nat(x_273); -lean_dec(x_273); -lean_inc_ref(x_1); -lean_inc_ref(x_157); -x_280 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_157, x_3, x_278, x_279, x_277, x_1, x_228); -if (lean_obj_tag(x_280) == 0) -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_281, 1); -lean_inc(x_282); -x_283 = lean_ctor_get(x_280, 1); -lean_inc(x_283); -lean_dec_ref(x_280); -x_284 = lean_ctor_get(x_281, 0); -lean_inc(x_284); -lean_dec(x_281); -x_285 = lean_ctor_get(x_282, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_282, 1); -lean_inc(x_286); -lean_dec(x_282); -x_240 = x_284; -x_241 = x_285; -x_242 = x_286; -x_243 = x_283; -goto block_271; -} -else -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -lean_dec_ref(x_1); -x_287 = lean_ctor_get(x_280, 0); -lean_inc(x_287); -x_288 = lean_ctor_get(x_280, 1); -lean_inc(x_288); -if (lean_is_exclusive(x_280)) { - lean_ctor_release(x_280, 0); - lean_ctor_release(x_280, 1); - x_289 = x_280; -} else { - lean_dec_ref(x_280); - x_289 = lean_box(0); -} -if (lean_is_scalar(x_289)) { - x_290 = lean_alloc_ctor(1, 2, 0); -} else { - x_290 = x_289; -} -lean_ctor_set(x_290, 0, x_287); -lean_ctor_set(x_290, 1, x_288); -return x_290; -} -} -} -block_239: -{ -uint8_t x_234; -x_234 = lean_nat_dec_lt(x_229, x_232); -if (x_234 == 0) -{ -lean_dec(x_232); -lean_dec_ref(x_230); -x_5 = x_231; -x_6 = x_233; -goto block_14; -} -else -{ -uint8_t x_235; -x_235 = lean_nat_dec_le(x_232, x_232); -if (x_235 == 0) -{ -lean_dec(x_232); -lean_dec_ref(x_230); -x_5 = x_231; -x_6 = x_233; -goto block_14; -} -else -{ -size_t x_236; size_t x_237; lean_object* x_238; -x_236 = 0; -x_237 = lean_usize_of_nat(x_232); -lean_dec(x_232); -x_238 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_230, x_236, x_237, x_233); -lean_dec_ref(x_230); -x_5 = x_231; -x_6 = x_238; -goto block_14; -} -} -} -block_271: -{ -lean_object* x_244; uint8_t x_245; -x_244 = lean_array_get_size(x_242); -x_245 = lean_nat_dec_lt(x_229, x_244); -if (x_245 == 0) -{ -lean_dec(x_244); -lean_dec_ref(x_242); -lean_dec(x_240); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -x_246 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; -x_247 = lean_apply_2(x_1, x_246, x_243); -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -if (lean_is_exclusive(x_247)) { - lean_ctor_release(x_247, 0); - lean_ctor_release(x_247, 1); - x_250 = x_247; -} else { - lean_dec_ref(x_247); - x_250 = lean_box(0); -} -if (lean_is_scalar(x_250)) { - x_251 = lean_alloc_ctor(0, 2, 0); -} else { - x_251 = x_250; -} -lean_ctor_set(x_251, 0, x_248); -lean_ctor_set(x_251, 1, x_249); -return x_251; -} -else -{ -lean_object* x_252; lean_object* x_253; -x_252 = lean_ctor_get(x_241, 0); -lean_inc(x_252); -lean_dec_ref(x_241); -x_253 = l_Lake_joinRelative(x_157, x_158); -if (lean_obj_tag(x_227) == 0) -{ -x_18 = x_253; -x_19 = x_252; -x_20 = x_243; -x_21 = x_245; -goto block_155; -} -else -{ -lean_object* x_254; uint8_t x_255; -x_254 = lean_ctor_get(x_227, 0); -lean_inc(x_254); -lean_dec_ref(x_227); -x_255 = l_Lake_instDecidableEqToolchainVer_decEq(x_254, x_252); -lean_dec(x_254); -if (x_255 == 0) -{ -x_18 = x_253; -x_19 = x_252; -x_20 = x_243; -x_21 = x_255; -goto block_155; -} -else -{ -lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -lean_dec_ref(x_253); -lean_dec(x_252); -lean_dec(x_17); -lean_dec_ref(x_16); -x_256 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; -x_257 = lean_apply_2(x_1, x_256, x_243); -x_258 = lean_ctor_get(x_257, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_259 = x_257; -} else { - lean_dec_ref(x_257); - x_259 = lean_box(0); -} -x_260 = lean_box(0); -if (lean_is_scalar(x_259)) { - x_261 = lean_alloc_ctor(0, 2, 0); -} else { - x_261 = x_259; -} -lean_ctor_set(x_261, 0, x_260); -lean_ctor_set(x_261, 1, x_258); -return x_261; -} -} -} -} -else -{ -lean_dec(x_227); -lean_dec_ref(x_157); -lean_dec(x_17); -lean_dec_ref(x_16); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_262; -lean_dec(x_240); -x_262 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; -x_230 = x_242; -x_231 = x_243; -x_232 = x_244; -x_233 = x_262; -goto block_239; -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -x_263 = lean_ctor_get(x_241, 0); -lean_inc(x_263); -lean_dec_ref(x_241); -x_264 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; -x_265 = l_Lake_ToolchainVer_toString(x_263); -x_266 = lean_string_append(x_264, x_265); -lean_dec_ref(x_265); -x_267 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; -x_268 = lean_string_append(x_266, x_267); -x_269 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_240, x_245); -x_270 = lean_string_append(x_268, x_269); -lean_dec_ref(x_269); -x_230 = x_242; -x_231 = x_243; -x_232 = x_244; -x_233 = x_270; -goto block_239; -} -} -} -} -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; -lean_dec_ref(x_157); -lean_dec(x_156); -lean_dec(x_17); -lean_dec_ref(x_16); -x_291 = lean_ctor_get(x_160, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_160, 1); -lean_inc(x_292); -lean_dec_ref(x_160); -x_293 = lean_io_error_to_string(x_291); -x_294 = 3; -x_295 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_295, 0, x_293); -lean_ctor_set_uint8(x_295, sizeof(void*)*1, x_294); -x_296 = lean_apply_2(x_1, x_295, x_292); -x_297 = !lean_is_exclusive(x_296); +uint8_t x_297; +x_297 = lean_nat_dec_le(x_295, x_295); if (x_297 == 0) { -lean_object* x_298; lean_object* x_299; -x_298 = lean_ctor_get(x_296, 0); -lean_dec(x_298); -x_299 = lean_box(0); -lean_ctor_set_tag(x_296, 1); -lean_ctor_set(x_296, 0, x_299); -return x_296; +lean_dec(x_295); +lean_inc(x_241); +x_267 = x_162; +x_268 = x_241; +x_269 = x_294; +x_270 = x_242; +goto block_293; } else { -lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_300 = lean_ctor_get(x_296, 1); -lean_inc(x_300); -lean_dec(x_296); -x_301 = lean_box(0); -x_302 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_302, 0, x_301); -lean_ctor_set(x_302, 1, x_300); -return x_302; +lean_object* x_298; lean_object* x_299; size_t x_300; size_t x_301; lean_object* x_302; +lean_inc(x_241); +x_298 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_298, 0, x_241); +lean_ctor_set(x_298, 1, x_294); +x_299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_299, 0, x_162); +lean_ctor_set(x_299, 1, x_298); +x_300 = 0; +x_301 = lean_usize_of_nat(x_295); +lean_dec(x_295); +lean_inc_ref(x_1); +lean_inc_ref(x_163); +x_302 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__1(x_163, x_3, x_300, x_301, x_299, x_1, x_242); +if (lean_obj_tag(x_302) == 0) +{ +lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_303 = lean_ctor_get(x_302, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_303, 1); +lean_inc(x_304); +x_305 = lean_ctor_get(x_302, 1); +lean_inc(x_305); +lean_dec_ref(x_302); +x_306 = lean_ctor_get(x_303, 0); +lean_inc(x_306); +lean_dec(x_303); +x_307 = lean_ctor_get(x_304, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_304, 1); +lean_inc(x_308); +lean_dec(x_304); +x_267 = x_306; +x_268 = x_307; +x_269 = x_308; +x_270 = x_305; +goto block_293; +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +lean_dec_ref(x_1); +x_309 = lean_ctor_get(x_302, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_302, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_302)) { + lean_ctor_release(x_302, 0); + lean_ctor_release(x_302, 1); + x_311 = x_302; +} else { + lean_dec_ref(x_302); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(1, 2, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +return x_312; +} +} +} +block_253: +{ +uint8_t x_248; +x_248 = lean_nat_dec_lt(x_243, x_246); +if (x_248 == 0) +{ +lean_dec(x_246); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_247; +goto block_14; +} +else +{ +uint8_t x_249; +x_249 = lean_nat_dec_le(x_246, x_246); +if (x_249 == 0) +{ +lean_dec(x_246); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_247; +goto block_14; +} +else +{ +size_t x_250; size_t x_251; lean_object* x_252; +x_250 = 0; +x_251 = lean_usize_of_nat(x_246); +lean_dec(x_246); +x_252 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0(x_244, x_250, x_251, x_247); +lean_dec_ref(x_244); +x_5 = x_245; +x_6 = x_252; +goto block_14; +} +} +} +block_266: +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_261 = lean_string_append(x_257, x_260); +lean_dec_ref(x_260); +x_262 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain_spec__0___closed__1; +x_263 = lean_string_append(x_261, x_262); +x_264 = l_Lean_Name_toStringWithToken___at___Lean_Name_toString_spec__0(x_254, x_256); +x_265 = lean_string_append(x_263, x_264); +lean_dec_ref(x_264); +x_244 = x_255; +x_245 = x_259; +x_246 = x_258; +x_247 = x_265; +goto block_253; +} +block_293: +{ +lean_object* x_271; uint8_t x_272; +x_271 = lean_array_get_size(x_269); +x_272 = lean_nat_dec_lt(x_243, x_271); +if (x_272 == 0) +{ +lean_dec(x_271); +lean_dec_ref(x_269); +lean_dec(x_267); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +x_273 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__16; +x_274 = lean_apply_2(x_1, x_273, x_270); +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_277 = x_274; +} else { + lean_dec_ref(x_274); + x_277 = lean_box(0); +} +if (lean_is_scalar(x_277)) { + x_278 = lean_alloc_ctor(0, 2, 0); +} else { + x_278 = x_277; +} +lean_ctor_set(x_278, 0, x_275); +lean_ctor_set(x_278, 1, x_276); +return x_278; +} +else +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_268, 0); +lean_inc(x_279); +lean_dec_ref(x_268); +x_280 = l_Lake_joinRelative(x_163, x_164); +if (lean_obj_tag(x_241) == 0) +{ +x_155 = x_280; +x_156 = x_279; +x_157 = x_270; +x_158 = x_272; +goto block_161; +} +else +{ +lean_object* x_281; uint8_t x_282; +x_281 = lean_ctor_get(x_241, 0); +lean_inc(x_281); +lean_dec_ref(x_241); +x_282 = l_Lake_instDecidableEqToolchainVer_decEq(x_281, x_279); +lean_dec(x_281); +if (x_282 == 0) +{ +x_155 = x_280; +x_156 = x_279; +x_157 = x_270; +x_158 = x_282; +goto block_161; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +lean_dec_ref(x_280); +lean_dec(x_279); +lean_dec(x_17); +lean_dec_ref(x_16); +x_283 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__18; +x_284 = lean_apply_2(x_1, x_283, x_270); +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +if (lean_is_exclusive(x_284)) { + lean_ctor_release(x_284, 0); + lean_ctor_release(x_284, 1); + x_286 = x_284; +} else { + lean_dec_ref(x_284); + x_286 = lean_box(0); +} +x_287 = lean_box(0); +if (lean_is_scalar(x_286)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_286; +} +lean_ctor_set(x_288, 0, x_287); +lean_ctor_set(x_288, 1, x_285); +return x_288; +} +} +} +} +else +{ +lean_dec(x_241); +lean_dec_ref(x_163); +lean_dec(x_17); +lean_dec_ref(x_16); +if (lean_obj_tag(x_268) == 0) +{ +lean_object* x_289; +lean_dec(x_267); +x_289 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__19; +x_244 = x_269; +x_245 = x_270; +x_246 = x_271; +x_247 = x_289; +goto block_253; +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; +x_290 = lean_ctor_get(x_268, 0); +lean_inc(x_290); +lean_dec_ref(x_268); +x_291 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__20; +x_292 = lean_ctor_get(x_290, 0); +lean_inc_ref(x_292); +lean_dec(x_290); +x_254 = x_267; +x_255 = x_269; +x_256 = x_272; +x_257 = x_291; +x_258 = x_271; +x_259 = x_270; +x_260 = x_292; +goto block_266; +} +} +} +} +} +else +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; +lean_dec_ref(x_163); +lean_dec(x_162); +lean_dec(x_17); +lean_dec_ref(x_16); +x_313 = lean_ctor_get(x_166, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_166, 1); +lean_inc(x_314); +lean_dec_ref(x_166); +x_315 = lean_io_error_to_string(x_313); +x_316 = 3; +x_317 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set_uint8(x_317, sizeof(void*)*1, x_316); +x_318 = lean_apply_2(x_1, x_317, x_314); +x_319 = !lean_is_exclusive(x_318); +if (x_319 == 0) +{ +lean_object* x_320; lean_object* x_321; +x_320 = lean_ctor_get(x_318, 0); +lean_dec(x_320); +x_321 = lean_box(0); +lean_ctor_set_tag(x_318, 1); +lean_ctor_set(x_318, 0, x_321); +return x_318; +} +else +{ +lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_322 = lean_ctor_get(x_318, 1); +lean_inc(x_322); +lean_dec(x_318); +x_323 = lean_box(0); +x_324 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_322); +return x_324; } } block_14: @@ -16584,384 +16659,382 @@ lean_ctor_set(x_13, 1, x_12); return x_13; } } -block_155: +block_154: { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_22 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__0; -x_23 = l_Lake_ToolchainVer_toString(x_19); -x_24 = lean_string_append(x_22, x_23); -x_25 = l___private_Lake_Load_Resolve_0__Lake_reuseManifest___closed__3; -x_26 = lean_string_append(x_24, x_25); -x_27 = 1; -x_28 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set_uint8(x_28, sizeof(void*)*1, x_27); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_23 = lean_string_append(x_19, x_22); +x_24 = l___private_Lake_Load_Resolve_0__Lake_reuseManifest___closed__3; +x_25 = lean_string_append(x_23, x_24); +x_26 = 1; +x_27 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set_uint8(x_27, sizeof(void*)*1, x_26); lean_inc_ref(x_1); -x_29 = lean_apply_2(x_1, x_28, x_20); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec_ref(x_29); -x_31 = l_IO_FS_writeFile(x_18, x_23, x_30); +x_28 = lean_apply_2(x_1, x_27, x_21); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec_ref(x_28); +x_30 = l_IO_FS_writeFile(x_18, x_22, x_29); lean_dec_ref(x_18); -if (lean_obj_tag(x_31) == 0) +if (lean_obj_tag(x_30) == 0) { if (lean_obj_tag(x_17) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; -lean_dec_ref(x_23); +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; +lean_dec_ref(x_22); lean_dec_ref(x_16); -x_32 = lean_ctor_get(x_31, 1); -lean_inc(x_32); -lean_dec_ref(x_31); -x_33 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec_ref(x_30); +x_32 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1; lean_inc_ref(x_1); -x_34 = lean_apply_2(x_1, x_33, x_32); -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -lean_dec_ref(x_34); -x_36 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; -x_37 = lean_io_exit(x_36, x_35); -if (lean_obj_tag(x_37) == 0) +x_33 = lean_apply_2(x_1, x_32, x_31); +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec_ref(x_33); +x_35 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_36 = lean_io_exit(x_35, x_34); +if (lean_obj_tag(x_36) == 0) { -uint8_t x_38; +uint8_t x_37; lean_dec_ref(x_1); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -return x_37; +return x_36; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_37, 0); -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; +lean_inc(x_38); +lean_dec(x_36); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_42 = lean_ctor_get(x_37, 0); +lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_41 = lean_ctor_get(x_36, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_36, 1); lean_inc(x_42); -x_43 = lean_ctor_get(x_37, 1); -lean_inc(x_43); -lean_dec_ref(x_37); -x_44 = lean_io_error_to_string(x_42); -x_45 = 3; -x_46 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set_uint8(x_46, sizeof(void*)*1, x_45); -x_47 = lean_apply_2(x_1, x_46, x_43); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) +lean_dec_ref(x_36); +x_43 = lean_io_error_to_string(x_41); +x_44 = 3; +x_45 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set_uint8(x_45, sizeof(void*)*1, x_44); +x_46 = lean_apply_2(x_1, x_45, x_42); +x_47 = !lean_is_exclusive(x_46); +if (x_47 == 0) { -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -x_50 = lean_box(0); -lean_ctor_set_tag(x_47, 1); -lean_ctor_set(x_47, 0, x_50); -return x_47; +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_46, 0); +lean_dec(x_48); +x_49 = lean_box(0); +lean_ctor_set_tag(x_46, 1); +lean_ctor_set(x_46, 0, x_49); +return x_46; } else { -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_47, 1); -lean_inc(x_51); -lean_dec(x_47); -x_52 = lean_box(0); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_51); -return x_53; +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_46, 1); +lean_inc(x_50); +lean_dec(x_46); +x_51 = lean_box(0); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; } } } else { -lean_object* x_54; -x_54 = lean_ctor_get(x_16, 2); -if (lean_obj_tag(x_54) == 0) +lean_object* x_53; +x_53 = lean_ctor_get(x_16, 2); +if (lean_obj_tag(x_53) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; lean_object* x_60; -lean_dec_ref(x_23); +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; +lean_dec_ref(x_22); lean_dec_ref(x_17); lean_dec_ref(x_16); -x_55 = lean_ctor_get(x_31, 1); -lean_inc(x_55); -lean_dec_ref(x_31); -x_56 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5; +x_54 = lean_ctor_get(x_30, 1); +lean_inc(x_54); +lean_dec_ref(x_30); +x_55 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4; lean_inc_ref(x_1); -x_57 = lean_apply_2(x_1, x_56, x_55); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec_ref(x_57); -x_59 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3; -x_60 = lean_io_exit(x_59, x_58); -if (lean_obj_tag(x_60) == 0) +x_56 = lean_apply_2(x_1, x_55, x_54); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec_ref(x_56); +x_58 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2; +x_59 = lean_io_exit(x_58, x_57); +if (lean_obj_tag(x_59) == 0) { -uint8_t x_61; +uint8_t x_60; lean_dec_ref(x_1); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) +x_60 = !lean_is_exclusive(x_59); +if (x_60 == 0) { -return x_60; +return x_59; } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_59, 0); +x_62 = lean_ctor_get(x_59, 1); lean_inc(x_62); -lean_dec(x_60); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; +lean_inc(x_61); +lean_dec(x_59); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_65 = lean_ctor_get(x_60, 0); +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_64 = lean_ctor_get(x_59, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_59, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_60, 1); -lean_inc(x_66); -lean_dec_ref(x_60); -x_67 = lean_io_error_to_string(x_65); -x_68 = 3; -x_69 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set_uint8(x_69, sizeof(void*)*1, x_68); -x_70 = lean_apply_2(x_1, x_69, x_66); -x_71 = !lean_is_exclusive(x_70); -if (x_71 == 0) +lean_dec_ref(x_59); +x_66 = lean_io_error_to_string(x_64); +x_67 = 3; +x_68 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set_uint8(x_68, sizeof(void*)*1, x_67); +x_69 = lean_apply_2(x_1, x_68, x_65); +x_70 = !lean_is_exclusive(x_69); +if (x_70 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_70, 0); -lean_dec(x_72); -x_73 = lean_box(0); -lean_ctor_set_tag(x_70, 1); -lean_ctor_set(x_70, 0, x_73); -return x_70; +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_69, 0); +lean_dec(x_71); +x_72 = lean_box(0); +lean_ctor_set_tag(x_69, 1); +lean_ctor_set(x_69, 0, x_72); +return x_69; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; -x_74 = lean_ctor_get(x_70, 1); -lean_inc(x_74); -lean_dec(x_70); -x_75 = lean_box(0); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_74); -return x_76; +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_69, 1); +lean_inc(x_73); +lean_dec(x_69); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_73); +return x_75; } } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; -x_77 = lean_ctor_get(x_31, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; +x_76 = lean_ctor_get(x_30, 1); +lean_inc(x_76); +lean_dec_ref(x_30); +x_77 = lean_ctor_get(x_17, 0); lean_inc(x_77); -lean_dec_ref(x_31); -x_78 = lean_ctor_get(x_17, 0); -lean_inc(x_78); lean_dec_ref(x_17); -x_79 = lean_ctor_get(x_54, 0); -x_80 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7; +x_78 = lean_ctor_get(x_53, 0); +x_79 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__6; lean_inc_ref(x_1); -x_81 = lean_apply_2(x_1, x_80, x_77); -x_82 = lean_ctor_get(x_81, 1); -lean_inc(x_82); -lean_dec_ref(x_81); -x_83 = lean_ctor_get(x_79, 1); -lean_inc_ref(x_83); -x_84 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__8; -x_85 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__11; -x_86 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__14; -x_87 = lean_array_push(x_86, x_23); -x_88 = lean_array_push(x_87, x_85); -x_89 = l_Array_append___redArg(x_88, x_78); -lean_dec(x_78); -x_90 = lean_box(0); -x_91 = l_Lake_Env_noToolchainVars(x_16); -x_92 = 1; -x_93 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_93, 0, x_84); -lean_ctor_set(x_93, 1, x_83); -lean_ctor_set(x_93, 2, x_89); -lean_ctor_set(x_93, 3, x_90); -lean_ctor_set(x_93, 4, x_91); -lean_ctor_set_uint8(x_93, sizeof(void*)*5, x_92); -lean_ctor_set_uint8(x_93, sizeof(void*)*5 + 1, x_21); -x_94 = lean_io_process_spawn(x_93, x_82); -if (lean_obj_tag(x_94) == 0) +x_80 = lean_apply_2(x_1, x_79, x_76); +x_81 = lean_ctor_get(x_80, 1); +lean_inc(x_81); +lean_dec_ref(x_80); +x_82 = lean_ctor_get(x_78, 1); +lean_inc_ref(x_82); +x_83 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__7; +x_84 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__10; +x_85 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__13; +x_86 = lean_array_push(x_85, x_22); +x_87 = lean_array_push(x_86, x_84); +x_88 = l_Array_append___redArg(x_87, x_77); +lean_dec(x_77); +x_89 = lean_box(0); +x_90 = l_Lake_Env_noToolchainVars(x_16); +x_91 = 1; +x_92 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_92, 0, x_83); +lean_ctor_set(x_92, 1, x_82); +lean_ctor_set(x_92, 2, x_88); +lean_ctor_set(x_92, 3, x_89); +lean_ctor_set(x_92, 4, x_90); +lean_ctor_set_uint8(x_92, sizeof(void*)*5, x_91); +lean_ctor_set_uint8(x_92, sizeof(void*)*5 + 1, x_20); +x_93 = lean_io_process_spawn(x_92, x_81); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_94, 0); +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec_ref(x_94); -x_97 = lean_io_process_child_wait(x_84, x_95, x_96); -lean_dec(x_95); -if (lean_obj_tag(x_97) == 0) +lean_dec_ref(x_93); +x_96 = lean_io_process_child_wait(x_83, x_94, x_95); +lean_dec(x_94); +if (lean_obj_tag(x_96) == 0) { -lean_object* x_98; lean_object* x_99; uint32_t x_100; uint8_t x_101; lean_object* x_102; -x_98 = lean_ctor_get(x_97, 0); +lean_object* x_97; lean_object* x_98; uint32_t x_99; uint8_t x_100; lean_object* x_101; +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); lean_inc(x_98); -x_99 = lean_ctor_get(x_97, 1); -lean_inc(x_99); -lean_dec_ref(x_97); -x_100 = lean_unbox_uint32(x_98); -lean_dec(x_98); -x_101 = lean_uint32_to_uint8(x_100); -x_102 = lean_io_exit(x_101, x_99); -if (lean_obj_tag(x_102) == 0) +lean_dec_ref(x_96); +x_99 = lean_unbox_uint32(x_97); +lean_dec(x_97); +x_100 = lean_uint32_to_uint8(x_99); +x_101 = lean_io_exit(x_100, x_98); +if (lean_obj_tag(x_101) == 0) { -uint8_t x_103; +uint8_t x_102; lean_dec_ref(x_1); -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +x_102 = !lean_is_exclusive(x_101); +if (x_102 == 0) { -return x_102; +return x_101; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_102, 0); -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); +lean_object* x_103; lean_object* x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_101, 0); +x_104 = lean_ctor_get(x_101, 1); lean_inc(x_104); -lean_dec(x_102); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -return x_106; +lean_inc(x_103); +lean_dec(x_101); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +return x_105; } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; lean_object* x_112; uint8_t x_113; -x_107 = lean_ctor_get(x_102, 0); +lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; uint8_t x_112; +x_106 = lean_ctor_get(x_101, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_101, 1); lean_inc(x_107); -x_108 = lean_ctor_get(x_102, 1); -lean_inc(x_108); -lean_dec_ref(x_102); -x_109 = lean_io_error_to_string(x_107); -x_110 = 3; -x_111 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set_uint8(x_111, sizeof(void*)*1, x_110); -x_112 = lean_apply_2(x_1, x_111, x_108); -x_113 = !lean_is_exclusive(x_112); -if (x_113 == 0) +lean_dec_ref(x_101); +x_108 = lean_io_error_to_string(x_106); +x_109 = 3; +x_110 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set_uint8(x_110, sizeof(void*)*1, x_109); +x_111 = lean_apply_2(x_1, x_110, x_107); +x_112 = !lean_is_exclusive(x_111); +if (x_112 == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_112, 0); -lean_dec(x_114); -x_115 = lean_box(0); -lean_ctor_set_tag(x_112, 1); -lean_ctor_set(x_112, 0, x_115); -return x_112; +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_111, 0); +lean_dec(x_113); +x_114 = lean_box(0); +lean_ctor_set_tag(x_111, 1); +lean_ctor_set(x_111, 0, x_114); +return x_111; } else { -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_112, 1); -lean_inc(x_116); -lean_dec(x_112); -x_117 = lean_box(0); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_116); -return x_118; +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +lean_dec(x_111); +x_116 = lean_box(0); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_115); +return x_117; } } } else { -lean_object* x_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; -x_119 = lean_ctor_get(x_97, 0); +lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_118 = lean_ctor_get(x_96, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_96, 1); lean_inc(x_119); -x_120 = lean_ctor_get(x_97, 1); -lean_inc(x_120); -lean_dec_ref(x_97); -x_121 = lean_io_error_to_string(x_119); -x_122 = 3; -x_123 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_123, 0, x_121); -lean_ctor_set_uint8(x_123, sizeof(void*)*1, x_122); -x_124 = lean_apply_2(x_1, x_123, x_120); -x_125 = !lean_is_exclusive(x_124); -if (x_125 == 0) +lean_dec_ref(x_96); +x_120 = lean_io_error_to_string(x_118); +x_121 = 3; +x_122 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set_uint8(x_122, sizeof(void*)*1, x_121); +x_123 = lean_apply_2(x_1, x_122, x_119); +x_124 = !lean_is_exclusive(x_123); +if (x_124 == 0) { -lean_object* x_126; lean_object* x_127; -x_126 = lean_ctor_get(x_124, 0); -lean_dec(x_126); -x_127 = lean_box(0); -lean_ctor_set_tag(x_124, 1); -lean_ctor_set(x_124, 0, x_127); -return x_124; +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_123, 0); +lean_dec(x_125); +x_126 = lean_box(0); +lean_ctor_set_tag(x_123, 1); +lean_ctor_set(x_123, 0, x_126); +return x_123; } else { -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_124, 1); -lean_inc(x_128); -lean_dec(x_124); -x_129 = lean_box(0); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_129); -lean_ctor_set(x_130, 1, x_128); -return x_130; +lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_127 = lean_ctor_get(x_123, 1); +lean_inc(x_127); +lean_dec(x_123); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_127); +return x_129; } } } else { -lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_131 = lean_ctor_get(x_94, 0); +lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_130 = lean_ctor_get(x_93, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_93, 1); lean_inc(x_131); -x_132 = lean_ctor_get(x_94, 1); -lean_inc(x_132); -lean_dec_ref(x_94); -x_133 = lean_io_error_to_string(x_131); -x_134 = 3; -x_135 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set_uint8(x_135, sizeof(void*)*1, x_134); -x_136 = lean_apply_2(x_1, x_135, x_132); -x_137 = !lean_is_exclusive(x_136); -if (x_137 == 0) +lean_dec_ref(x_93); +x_132 = lean_io_error_to_string(x_130); +x_133 = 3; +x_134 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set_uint8(x_134, sizeof(void*)*1, x_133); +x_135 = lean_apply_2(x_1, x_134, x_131); +x_136 = !lean_is_exclusive(x_135); +if (x_136 == 0) { -lean_object* x_138; lean_object* x_139; -x_138 = lean_ctor_get(x_136, 0); -lean_dec(x_138); -x_139 = lean_box(0); -lean_ctor_set_tag(x_136, 1); -lean_ctor_set(x_136, 0, x_139); -return x_136; +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_135, 0); +lean_dec(x_137); +x_138 = lean_box(0); +lean_ctor_set_tag(x_135, 1); +lean_ctor_set(x_135, 0, x_138); +return x_135; } else { -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_136, 1); -lean_inc(x_140); -lean_dec(x_136); -x_141 = lean_box(0); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_140); -return x_142; +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_135, 1); +lean_inc(x_139); +lean_dec(x_135); +x_140 = lean_box(0); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_139); +return x_141; } } } @@ -16969,46 +17042,60 @@ return x_142; } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; lean_object* x_147; lean_object* x_148; uint8_t x_149; -lean_dec_ref(x_23); +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; lean_object* x_146; lean_object* x_147; uint8_t x_148; +lean_dec_ref(x_22); lean_dec(x_17); lean_dec_ref(x_16); -x_143 = lean_ctor_get(x_31, 0); +x_142 = lean_ctor_get(x_30, 0); +lean_inc(x_142); +x_143 = lean_ctor_get(x_30, 1); lean_inc(x_143); -x_144 = lean_ctor_get(x_31, 1); -lean_inc(x_144); -lean_dec_ref(x_31); -x_145 = lean_io_error_to_string(x_143); -x_146 = 3; -x_147 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set_uint8(x_147, sizeof(void*)*1, x_146); -x_148 = lean_apply_2(x_1, x_147, x_144); -x_149 = !lean_is_exclusive(x_148); -if (x_149 == 0) +lean_dec_ref(x_30); +x_144 = lean_io_error_to_string(x_142); +x_145 = 3; +x_146 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set_uint8(x_146, sizeof(void*)*1, x_145); +x_147 = lean_apply_2(x_1, x_146, x_143); +x_148 = !lean_is_exclusive(x_147); +if (x_148 == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_148, 0); -lean_dec(x_150); -x_151 = lean_box(0); -lean_ctor_set_tag(x_148, 1); -lean_ctor_set(x_148, 0, x_151); -return x_148; +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_147, 0); +lean_dec(x_149); +x_150 = lean_box(0); +lean_ctor_set_tag(x_147, 1); +lean_ctor_set(x_147, 0, x_150); +return x_147; } else { -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_148, 1); -lean_inc(x_152); -lean_dec(x_148); -x_153 = lean_box(0); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_153); -lean_ctor_set(x_154, 1, x_152); -return x_154; +lean_object* x_151; lean_object* x_152; lean_object* x_153; +x_151 = lean_ctor_get(x_147, 1); +lean_inc(x_151); +lean_dec(x_147); +x_152 = lean_box(0); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_152); +lean_ctor_set(x_153, 1, x_151); +return x_153; } } } +block_161: +{ +lean_object* x_159; lean_object* x_160; +x_159 = l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__14; +x_160 = lean_ctor_get(x_156, 0); +lean_inc_ref(x_160); +lean_dec_ref(x_156); +x_18 = x_155; +x_19 = x_159; +x_20 = x_158; +x_21 = x_157; +x_22 = x_160; +goto block_154; +} } } LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at_____private_Lake_Load_Resolve_0__Lake_Workspace_updateAndMaterializeCore_spec__20(lean_object* x_1, uint8_t x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { @@ -24883,8 +24970,8 @@ lean_mark_persistent(l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolc l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1 = _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1(); lean_mark_persistent(l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__1); l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2 = _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2(); -lean_mark_persistent(l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__2); l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3 = _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3(); +lean_mark_persistent(l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__3); l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4 = _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4(); lean_mark_persistent(l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__4); l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5 = _init_l___private_Lake_Load_Resolve_0__Lake_Workspace_updateToolchain___closed__5(); diff --git a/stage0/stdlib/Lake/Reservoir.c b/stage0/stdlib/Lake/Reservoir.c index 8683d25b3d..d65ccbdb3d 100644 --- a/stage0/stdlib/Lake/Reservoir.c +++ b/stage0/stdlib/Lake/Reservoir.c @@ -158,7 +158,7 @@ LEAN_EXPORT lean_object* l_Lake_RegistrySrc_instToJson; LEAN_EXPORT lean_object* l_Lake_RegistrySrc_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_RegistrySrc_ctorIdx(lean_object*); lean_object* l_Option_fromJson_x3f___redArg(lean_object*, lean_object*); -lean_object* l_Lake_uriEncode(lean_object*); +lean_object* l_Lake_uriEncode(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ReservoirResp_data_elim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_getNat_x3f(lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___Array_fromJson_x3f___at___Option_fromJson_x3f___at___Lake_RegistryPkg_fromJson_x3f_spec__1_spec__1_spec__1(size_t, size_t, lean_object*); @@ -2721,21 +2721,22 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_Reservoir_pkgApiUrl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; x_4 = lean_ctor_get(x_1, 3); lean_inc_ref(x_4); lean_dec_ref(x_1); x_5 = l_Lake_Reservoir_pkgApiUrl___closed__0; x_6 = lean_string_append(x_4, x_5); -x_7 = l_Lake_uriEncode(x_2); -x_8 = lean_string_append(x_6, x_7); -lean_dec_ref(x_7); -x_9 = l_Lake_Reservoir_pkgApiUrl___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_Lake_uriEncode(x_3); -x_12 = lean_string_append(x_10, x_11); -lean_dec_ref(x_11); -return x_12; +x_7 = l_Lake_instInhabitedRegistrySrc_default___closed__0; +x_8 = l_Lake_uriEncode(x_2, x_7); +x_9 = lean_string_append(x_6, x_8); +lean_dec_ref(x_8); +x_10 = l_Lake_Reservoir_pkgApiUrl___closed__1; +x_11 = lean_string_append(x_9, x_10); +x_12 = l_Lake_uriEncode(x_3, x_7); +x_13 = lean_string_append(x_11, x_12); +lean_dec_ref(x_12); +return x_13; } } LEAN_EXPORT lean_object* l_Lake_Reservoir_pkgApiUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { @@ -4521,23 +4522,24 @@ return x_1; LEAN_EXPORT lean_object* l_Lake_Reservoir_pkgVersionsApiUrl(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_4 = lean_ctor_get(x_1, 3); lean_inc_ref(x_4); lean_dec_ref(x_1); x_5 = l_Lake_Reservoir_pkgApiUrl___closed__0; x_6 = lean_string_append(x_4, x_5); -x_7 = l_Lake_uriEncode(x_2); -x_8 = lean_string_append(x_6, x_7); -lean_dec_ref(x_7); -x_9 = l_Lake_Reservoir_pkgApiUrl___closed__1; -x_10 = lean_string_append(x_8, x_9); -x_11 = l_Lake_uriEncode(x_3); -x_12 = lean_string_append(x_10, x_11); -lean_dec_ref(x_11); -x_13 = l_Lake_Reservoir_pkgVersionsApiUrl___closed__0; -x_14 = lean_string_append(x_12, x_13); -return x_14; +x_7 = l_Lake_instInhabitedRegistrySrc_default___closed__0; +x_8 = l_Lake_uriEncode(x_2, x_7); +x_9 = lean_string_append(x_6, x_8); +lean_dec_ref(x_8); +x_10 = l_Lake_Reservoir_pkgApiUrl___closed__1; +x_11 = lean_string_append(x_9, x_10); +x_12 = l_Lake_uriEncode(x_3, x_7); +x_13 = lean_string_append(x_11, x_12); +lean_dec_ref(x_12); +x_14 = l_Lake_Reservoir_pkgVersionsApiUrl___closed__0; +x_15 = lean_string_append(x_13, x_14); +return x_15; } } LEAN_EXPORT lean_object* l_Lake_Reservoir_pkgVersionsApiUrl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { diff --git a/stage0/stdlib/Lake/Util/Url.c b/stage0/stdlib/Lake/Util/Url.c index 1e2321e88f..b040381775 100644 --- a/stage0/stdlib/Lake/Util/Url.c +++ b/stage0/stdlib/Lake/Util/Url.c @@ -14,7 +14,7 @@ extern "C" { #endif lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_uriEncode___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_uriEncode___boxed(lean_object*, lean_object*); lean_object* l_Lean_Json_getObj_x3f(lean_object*); static lean_object* l_Lake_foldlUtf8___redArg___closed__7; uint8_t lean_uint32_to_uint8(uint32_t); @@ -31,7 +31,6 @@ static lean_object* l_Lake_getUrl_x3f___closed__6; LEAN_EXPORT lean_object* l_Lake_foldlUtf8M___redArg___lam__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_getUrl_x3f___closed__4; static lean_object* l_Lake_foldlUtf8___redArg___closed__0; -static lean_object* l_Lake_uriEncode___closed__0; LEAN_EXPORT lean_object* l_Lake_foldlUtf8(lean_object*, uint32_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_hexEncodeByte___boxed(lean_object*); static lean_object* l_Lake_foldlUtf8___redArg___closed__8; @@ -53,6 +52,7 @@ static lean_object* l_Lake_getUrl_x3f___closed__10; static lean_object* l_Lake_foldlUtf8___redArg___closed__9; static lean_object* l_Lake_getUrl_x3f___closed__20; LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_getUrl_x3f_spec__1(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lake_getUrl_x3f___closed__24; static lean_object* l_Lake_getUrl_x3f___closed__0; static lean_object* l_Lake_getUrl___closed__3; LEAN_EXPORT lean_object* l_Lake_uriEncodeChar___boxed(lean_object*, lean_object*); @@ -108,7 +108,7 @@ uint8_t lean_uint32_dec_eq(uint32_t, uint32_t); LEAN_EXPORT lean_object* l_Lake_foldlUtf8___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_getUrl(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_getUrl_x3f___closed__11; -LEAN_EXPORT lean_object* l_Lake_uriEncode(lean_object*); +LEAN_EXPORT lean_object* l_Lake_uriEncode(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_isUriUnreservedMark___boxed(lean_object*); lean_object* l_Array_append___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_foldlUtf8M___redArg___lam__6(uint32_t, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1176,19 +1176,10 @@ goto _start; } } } -static lean_object* _init_l_Lake_uriEncode___closed__0() { +LEAN_EXPORT lean_object* l_Lake_uriEncode(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_uriEncode(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l_Lake_uriEncode___closed__0; +lean_object* x_3; lean_object* x_4; lean_object* x_5; x_3 = lean_string_utf8_byte_size(x_1); x_4 = lean_unsigned_to_nat(0u); x_5 = l_String_foldlAux___at___Lake_uriEncode_spec__0(x_1, x_3, x_4, x_2); @@ -1206,13 +1197,13 @@ lean_dec_ref(x_1); return x_5; } } -LEAN_EXPORT lean_object* l_Lake_uriEncode___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lake_uriEncode___boxed(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_2; -x_2 = l_Lake_uriEncode(x_1); +lean_object* x_3; +x_3 = l_Lake_uriEncode(x_1, x_2); lean_dec_ref(x_1); -return x_2; +return x_3; } } static lean_object* _init_l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0___closed__0() { @@ -1386,7 +1377,7 @@ static lean_object* _init_l_Lake_getUrl_x3f___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("http_code", 9, 9); +x_1 = lean_mk_string_unchecked("; received:\n", 12, 12); return x_1; } } @@ -1394,13 +1385,21 @@ static lean_object* _init_l_Lake_getUrl_x3f___closed__6() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("http_code: ", 11, 11); +x_1 = lean_mk_string_unchecked("http_code", 9, 9); return x_1; } } static lean_object* _init_l_Lake_getUrl_x3f___closed__7() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("http_code: ", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lake_getUrl_x3f___closed__8() { +_start: +{ uint8_t x_1; lean_object* x_2; x_1 = 1; x_2 = lean_alloc_ctor(0, 0, 3); @@ -1410,7 +1409,7 @@ lean_ctor_set_uint8(x_2, 2, x_1); return x_2; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__8() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__9() { _start: { lean_object* x_1; @@ -1418,7 +1417,7 @@ x_1 = lean_mk_string_unchecked("curl", 4, 4); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__9() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -1427,7 +1426,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__10() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__11() { _start: { lean_object* x_1; @@ -1435,7 +1434,7 @@ x_1 = lean_mk_string_unchecked("response_code", 13, 13); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__11() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__12() { _start: { lean_object* x_1; @@ -1443,7 +1442,7 @@ x_1 = lean_mk_string_unchecked("-s", 2, 2); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__12() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__13() { _start: { lean_object* x_1; @@ -1451,7 +1450,7 @@ x_1 = lean_mk_string_unchecked("-L", 2, 2); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__13() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__14() { _start: { lean_object* x_1; @@ -1459,7 +1458,7 @@ x_1 = lean_mk_string_unchecked("-w", 2, 2); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__14() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__15() { _start: { lean_object* x_1; @@ -1467,7 +1466,7 @@ x_1 = lean_mk_string_unchecked("%{stderr}%{json}\n", 17, 17); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__15() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__16() { _start: { lean_object* x_1; @@ -1475,7 +1474,7 @@ x_1 = lean_mk_string_unchecked("--retry", 7, 7); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__16() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__17() { _start: { lean_object* x_1; @@ -1483,7 +1482,7 @@ x_1 = lean_mk_string_unchecked("3", 1, 1); return x_1; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__17() { +static lean_object* _init_l_Lake_getUrl_x3f___closed__18() { _start: { lean_object* x_1; lean_object* x_2; @@ -1492,16 +1491,6 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -static lean_object* _init_l_Lake_getUrl_x3f___closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_getUrl_x3f___closed__11; -x_2 = l_Lake_getUrl_x3f___closed__17; -x_3 = lean_array_push(x_2, x_1); -return x_3; -} -} static lean_object* _init_l_Lake_getUrl_x3f___closed__19() { _start: { @@ -1552,39 +1541,49 @@ x_3 = lean_array_push(x_2, x_1); return x_3; } } +static lean_object* _init_l_Lake_getUrl_x3f___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lake_getUrl_x3f___closed__17; +x_2 = l_Lake_getUrl_x3f___closed__23; +x_3 = lean_array_push(x_2, x_1); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lake_getUrl_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_104; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; -x_134 = l_Lake_getUrl_x3f___closed__23; -x_135 = lean_unsigned_to_nat(0u); -x_136 = lean_array_get_size(x_2); -x_137 = lean_nat_dec_lt(x_135, x_136); -if (x_137 == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_112; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_142 = l_Lake_getUrl_x3f___closed__24; +x_143 = lean_unsigned_to_nat(0u); +x_144 = lean_array_get_size(x_2); +x_145 = lean_nat_dec_lt(x_143, x_144); +if (x_145 == 0) { -lean_dec(x_136); -x_104 = x_134; -goto block_133; +lean_dec(x_144); +x_112 = x_142; +goto block_141; } else { -uint8_t x_138; -x_138 = lean_nat_dec_le(x_136, x_136); -if (x_138 == 0) +uint8_t x_146; +x_146 = lean_nat_dec_le(x_144, x_144); +if (x_146 == 0) { -lean_dec(x_136); -x_104 = x_134; -goto block_133; +lean_dec(x_144); +x_112 = x_142; +goto block_141; } else { -size_t x_139; size_t x_140; lean_object* x_141; -x_139 = 0; -x_140 = lean_usize_of_nat(x_136); -lean_dec(x_136); -x_141 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_getUrl_x3f_spec__1(x_2, x_139, x_140, x_134); -x_104 = x_141; -goto block_133; +size_t x_147; size_t x_148; lean_object* x_149; +x_147 = 0; +x_148 = lean_usize_of_nat(x_144); +lean_dec(x_144); +x_149 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_getUrl_x3f_spec__1(x_2, x_147, x_148, x_142); +x_112 = x_149; +goto block_141; } } block_10: @@ -1609,9 +1608,9 @@ x_18 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_18, 0, x_16); lean_ctor_set_uint8(x_18, sizeof(void*)*1, x_17); x_19 = lean_array_push(x_12, x_18); -x_5 = x_11; +x_5 = x_13; x_6 = x_19; -x_7 = x_13; +x_7 = x_11; goto block_10; } block_26: @@ -1619,9 +1618,9 @@ block_26: lean_object* x_24; lean_object* x_25; x_24 = l_Lake_getUrl_x3f___closed__2; x_25 = lean_array_push(x_22, x_24); -x_5 = x_21; +x_5 = x_23; x_6 = x_25; -x_7 = x_23; +x_7 = x_21; goto block_10; } block_36: @@ -1635,20 +1634,20 @@ x_34 = lean_alloc_ctor(0, 1, 1); lean_ctor_set(x_34, 0, x_32); lean_ctor_set_uint8(x_34, sizeof(void*)*1, x_33); x_35 = lean_array_push(x_28, x_34); -x_5 = x_27; +x_5 = x_29; x_6 = x_35; -x_7 = x_29; +x_7 = x_27; goto block_10; } -block_87: +block_95: { if (lean_obj_tag(x_42) == 0) { -lean_dec(x_41); -lean_dec_ref(x_39); -x_21 = x_37; -x_22 = x_38; -x_23 = x_40; +lean_dec(x_39); +lean_dec_ref(x_37); +x_21 = x_38; +x_22 = x_40; +x_23 = x_41; goto block_26; } else @@ -1665,348 +1664,362 @@ if (x_46 == 0) { lean_object* x_47; uint8_t x_48; lean_free_object(x_42); -lean_dec(x_41); -lean_dec_ref(x_39); +lean_dec(x_39); x_47 = lean_unsigned_to_nat(404u); x_48 = lean_nat_dec_eq(x_44, x_47); if (x_48 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; lean_object* x_54; -x_49 = l_Lake_getUrl_x3f___closed__4; -x_50 = l_Nat_reprFast(x_44); -x_51 = lean_string_append(x_49, x_50); -lean_dec_ref(x_50); -x_52 = 3; -x_53 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_52); -x_54 = lean_array_push(x_38, x_53); -x_5 = x_37; -x_6 = x_54; -x_7 = x_40; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; +x_49 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_49); +lean_dec_ref(x_37); +x_50 = l_Lake_getUrl_x3f___closed__4; +x_51 = l_Nat_reprFast(x_44); +x_52 = lean_string_append(x_50, x_51); +lean_dec_ref(x_51); +x_53 = l_Lake_getUrl_x3f___closed__5; +x_54 = lean_string_append(x_52, x_53); +x_55 = lean_string_append(x_54, x_49); +lean_dec_ref(x_49); +x_56 = 3; +x_57 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); +x_58 = lean_array_push(x_40, x_57); +x_5 = x_41; +x_6 = x_58; +x_7 = x_38; goto block_10; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_dec(x_44); -lean_dec(x_37); -x_55 = lean_box(0); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_38); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_40); -return x_57; -} -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_dec(x_44); -lean_dec(x_37); -x_58 = lean_ctor_get(x_39, 0); -lean_inc_ref(x_58); -lean_dec_ref(x_39); -x_59 = lean_string_utf8_byte_size(x_58); -x_60 = l_Substring_takeWhileAux___at___String_Internal_trimImpl_spec__0(x_58, x_59, x_41); -x_61 = l_Substring_takeRightWhileAux___at___String_Internal_trimImpl_spec__1(x_58, x_60, x_59); -x_62 = lean_string_utf8_extract(x_58, x_60, x_61); -lean_dec(x_61); -lean_dec(x_60); -lean_dec_ref(x_58); -lean_ctor_set(x_42, 0, x_62); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_42); -lean_ctor_set(x_63, 1, x_38); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_40); -return x_64; -} -} -else -{ -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_42, 0); -lean_inc(x_65); -lean_dec(x_42); -x_66 = lean_unsigned_to_nat(200u); -x_67 = lean_nat_dec_eq(x_65, x_66); -if (x_67 == 0) -{ -lean_object* x_68; uint8_t x_69; lean_dec(x_41); -lean_dec_ref(x_39); -x_68 = lean_unsigned_to_nat(404u); -x_69 = lean_nat_dec_eq(x_65, x_68); -if (x_69 == 0) +lean_dec_ref(x_37); +x_59 = lean_box(0); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_59); +lean_ctor_set(x_60, 1, x_40); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_38); +return x_61; +} +} +else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_70 = l_Lake_getUrl_x3f___closed__4; -x_71 = l_Nat_reprFast(x_65); -x_72 = lean_string_append(x_70, x_71); -lean_dec_ref(x_71); -x_73 = 3; -x_74 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set_uint8(x_74, sizeof(void*)*1, x_73); -x_75 = lean_array_push(x_38, x_74); -x_5 = x_37; -x_6 = x_75; -x_7 = x_40; +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +lean_dec(x_44); +lean_dec(x_41); +x_62 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_62); +lean_dec_ref(x_37); +x_63 = lean_string_utf8_byte_size(x_62); +x_64 = l_Substring_takeWhileAux___at___String_Internal_trimImpl_spec__0(x_62, x_63, x_39); +x_65 = l_Substring_takeRightWhileAux___at___String_Internal_trimImpl_spec__1(x_62, x_64, x_63); +x_66 = lean_string_utf8_extract(x_62, x_64, x_65); +lean_dec(x_65); +lean_dec(x_64); +lean_dec_ref(x_62); +lean_ctor_set(x_42, 0, x_66); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_42); +lean_ctor_set(x_67, 1, x_40); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_38); +return x_68; +} +} +else +{ +lean_object* x_69; lean_object* x_70; uint8_t x_71; +x_69 = lean_ctor_get(x_42, 0); +lean_inc(x_69); +lean_dec(x_42); +x_70 = lean_unsigned_to_nat(200u); +x_71 = lean_nat_dec_eq(x_69, x_70); +if (x_71 == 0) +{ +lean_object* x_72; uint8_t x_73; +lean_dec(x_39); +x_72 = lean_unsigned_to_nat(404u); +x_73 = lean_nat_dec_eq(x_69, x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; +x_74 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_74); +lean_dec_ref(x_37); +x_75 = l_Lake_getUrl_x3f___closed__4; +x_76 = l_Nat_reprFast(x_69); +x_77 = lean_string_append(x_75, x_76); +lean_dec_ref(x_76); +x_78 = l_Lake_getUrl_x3f___closed__5; +x_79 = lean_string_append(x_77, x_78); +x_80 = lean_string_append(x_79, x_74); +lean_dec_ref(x_74); +x_81 = 3; +x_82 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_81); +x_83 = lean_array_push(x_40, x_82); +x_5 = x_41; +x_6 = x_83; +x_7 = x_38; goto block_10; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_65); -lean_dec(x_37); -x_76 = lean_box(0); -x_77 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_38); -x_78 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_78, 0, x_77); -lean_ctor_set(x_78, 1, x_40); -return x_78; -} -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -lean_dec(x_65); -lean_dec(x_37); -x_79 = lean_ctor_get(x_39, 0); -lean_inc_ref(x_79); -lean_dec_ref(x_39); -x_80 = lean_string_utf8_byte_size(x_79); -x_81 = l_Substring_takeWhileAux___at___String_Internal_trimImpl_spec__0(x_79, x_80, x_41); -x_82 = l_Substring_takeRightWhileAux___at___String_Internal_trimImpl_spec__1(x_79, x_81, x_80); -x_83 = lean_string_utf8_extract(x_79, x_81, x_82); -lean_dec(x_82); -lean_dec(x_81); -lean_dec_ref(x_79); -x_84 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_84, 0, x_83); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_69); +lean_dec(x_41); +lean_dec_ref(x_37); +x_84 = lean_box(0); x_85 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_38); +lean_ctor_set(x_85, 1, x_40); x_86 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_40); +lean_ctor_set(x_86, 1, x_38); return x_86; } } -} -} -block_103: -{ -lean_object* x_94; lean_object* x_95; -x_94 = l_Lake_getUrl_x3f___closed__5; -x_95 = l_Lake_JsonObject_getJson_x3f(x_92, x_94); -lean_dec(x_92); -if (lean_obj_tag(x_95) == 0) -{ -lean_dec(x_93); -lean_dec_ref(x_90); -x_21 = x_88; -x_22 = x_89; -x_23 = x_91; -goto block_26; -} else { -lean_object* x_96; lean_object* x_97; -x_96 = lean_ctor_get(x_95, 0); -lean_inc(x_96); -lean_dec_ref(x_95); -x_97 = l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0(x_96); -if (lean_obj_tag(x_97) == 0) +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +lean_dec(x_69); +lean_dec(x_41); +x_87 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_87); +lean_dec_ref(x_37); +x_88 = lean_string_utf8_byte_size(x_87); +x_89 = l_Substring_takeWhileAux___at___String_Internal_trimImpl_spec__0(x_87, x_88, x_39); +x_90 = l_Substring_takeRightWhileAux___at___String_Internal_trimImpl_spec__1(x_87, x_89, x_88); +x_91 = lean_string_utf8_extract(x_87, x_89, x_90); +lean_dec(x_90); +lean_dec(x_89); +lean_dec_ref(x_87); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_40); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_38); +return x_94; +} +} +} +} +block_111: +{ +lean_object* x_102; lean_object* x_103; +x_102 = l_Lake_getUrl_x3f___closed__6; +x_103 = l_Lake_JsonObject_getJson_x3f(x_100, x_102); +lean_dec(x_100); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_93); -lean_dec_ref(x_90); -x_98 = lean_ctor_get(x_97, 0); -lean_inc(x_98); -lean_dec_ref(x_97); -x_99 = l_Lake_getUrl_x3f___closed__6; -x_100 = lean_string_append(x_99, x_98); lean_dec(x_98); -x_11 = x_88; -x_12 = x_89; -x_13 = x_91; -x_14 = x_100; -goto block_20; -} -else -{ -if (lean_obj_tag(x_97) == 0) -{ -lean_object* x_101; -lean_dec(x_93); -lean_dec_ref(x_90); -x_101 = lean_ctor_get(x_97, 0); -lean_inc(x_101); -lean_dec_ref(x_97); -x_11 = x_88; -x_12 = x_89; -x_13 = x_91; -x_14 = x_101; -goto block_20; -} -else -{ -lean_object* x_102; -x_102 = lean_ctor_get(x_97, 0); -lean_inc(x_102); -lean_dec_ref(x_97); -x_37 = x_88; -x_38 = x_89; -x_39 = x_90; -x_40 = x_91; -x_41 = x_93; -x_42 = x_102; -goto block_87; -} -} -} -} -block_133: -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; uint8_t x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_105 = l_Lake_getUrl_x3f___closed__7; -x_106 = l_Lake_getUrl_x3f___closed__8; -x_107 = lean_array_push(x_104, x_1); -x_108 = lean_box(0); -x_109 = lean_unsigned_to_nat(0u); -x_110 = l_Lake_getUrl_x3f___closed__9; -x_111 = 1; -x_112 = 0; -x_113 = lean_alloc_ctor(0, 5, 2); -lean_ctor_set(x_113, 0, x_105); -lean_ctor_set(x_113, 1, x_106); -lean_ctor_set(x_113, 2, x_107); -lean_ctor_set(x_113, 3, x_108); -lean_ctor_set(x_113, 4, x_110); -lean_ctor_set_uint8(x_113, sizeof(void*)*5, x_111); -lean_ctor_set_uint8(x_113, sizeof(void*)*5 + 1, x_112); -lean_inc_ref(x_3); -x_114 = l_Lake_captureProc_x27(x_113, x_3, x_4); -x_115 = lean_ctor_get(x_114, 0); -lean_inc(x_115); -x_116 = lean_ctor_get(x_114, 1); -lean_inc(x_116); -lean_dec_ref(x_114); -x_117 = lean_array_get_size(x_3); -lean_dec_ref(x_3); -if (lean_obj_tag(x_115) == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_115, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_115, 1); -lean_inc(x_119); -lean_dec_ref(x_115); -x_120 = lean_ctor_get(x_118, 1); -lean_inc_ref(x_120); -x_121 = l_Lean_Json_parse(x_120); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; -lean_dec(x_118); -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -lean_dec_ref(x_121); -x_27 = x_117; -x_28 = x_119; -x_29 = x_116; -x_30 = x_122; -goto block_36; -} -else -{ -lean_object* x_123; lean_object* x_124; -x_123 = lean_ctor_get(x_121, 0); -lean_inc(x_123); -lean_dec_ref(x_121); -x_124 = l_Lean_Json_getObj_x3f(x_123); -if (lean_obj_tag(x_124) == 0) -{ -lean_object* x_125; -lean_dec(x_118); -x_125 = lean_ctor_get(x_124, 0); -lean_inc(x_125); -lean_dec_ref(x_124); -x_27 = x_117; -x_28 = x_119; -x_29 = x_116; -x_30 = x_125; -goto block_36; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_124, 0); -lean_inc(x_126); -lean_dec_ref(x_124); -x_127 = l_Lake_getUrl_x3f___closed__10; -x_128 = l_Lake_JsonObject_getJson_x3f(x_126, x_127); -if (lean_obj_tag(x_128) == 0) -{ -lean_dec(x_126); -lean_dec(x_118); -x_21 = x_117; -x_22 = x_119; -x_23 = x_116; +lean_dec_ref(x_96); +x_21 = x_97; +x_22 = x_99; +x_23 = x_101; goto block_26; } else { -lean_object* x_129; lean_object* x_130; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -lean_dec_ref(x_128); -x_130 = l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0(x_129); -if (lean_obj_tag(x_130) == 0) +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +lean_dec_ref(x_103); +x_105 = l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0(x_104); +if (lean_obj_tag(x_105) == 0) { -lean_dec_ref(x_130); -x_88 = x_117; -x_89 = x_119; -x_90 = x_118; -x_91 = x_116; -x_92 = x_126; -x_93 = x_109; -goto block_103; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_98); +lean_dec_ref(x_96); +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +lean_dec_ref(x_105); +x_107 = l_Lake_getUrl_x3f___closed__7; +x_108 = lean_string_append(x_107, x_106); +lean_dec(x_106); +x_11 = x_97; +x_12 = x_99; +x_13 = x_101; +x_14 = x_108; +goto block_20; } else { -if (lean_obj_tag(x_130) == 0) +if (lean_obj_tag(x_105) == 0) { -lean_dec_ref(x_130); -x_88 = x_117; -x_89 = x_119; -x_90 = x_118; -x_91 = x_116; -x_92 = x_126; -x_93 = x_109; -goto block_103; +lean_object* x_109; +lean_dec(x_98); +lean_dec_ref(x_96); +x_109 = lean_ctor_get(x_105, 0); +lean_inc(x_109); +lean_dec_ref(x_105); +x_11 = x_97; +x_12 = x_99; +x_13 = x_101; +x_14 = x_109; +goto block_20; } else { -lean_object* x_131; +lean_object* x_110; +x_110 = lean_ctor_get(x_105, 0); +lean_inc(x_110); +lean_dec_ref(x_105); +x_37 = x_96; +x_38 = x_97; +x_39 = x_98; +x_40 = x_99; +x_41 = x_101; +x_42 = x_110; +goto block_95; +} +} +} +} +block_141: +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; uint8_t x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_113 = l_Lake_getUrl_x3f___closed__8; +x_114 = l_Lake_getUrl_x3f___closed__9; +x_115 = lean_array_push(x_112, x_1); +x_116 = lean_box(0); +x_117 = lean_unsigned_to_nat(0u); +x_118 = l_Lake_getUrl_x3f___closed__10; +x_119 = 1; +x_120 = 0; +x_121 = lean_alloc_ctor(0, 5, 2); +lean_ctor_set(x_121, 0, x_113); +lean_ctor_set(x_121, 1, x_114); +lean_ctor_set(x_121, 2, x_115); +lean_ctor_set(x_121, 3, x_116); +lean_ctor_set(x_121, 4, x_118); +lean_ctor_set_uint8(x_121, sizeof(void*)*5, x_119); +lean_ctor_set_uint8(x_121, sizeof(void*)*5 + 1, x_120); +lean_inc_ref(x_3); +x_122 = l_Lake_captureProc_x27(x_121, x_3, x_4); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec_ref(x_122); +x_125 = lean_array_get_size(x_3); +lean_dec_ref(x_3); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_126 = lean_ctor_get(x_123, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_123, 1); +lean_inc(x_127); +lean_dec_ref(x_123); +x_128 = lean_ctor_get(x_126, 1); +lean_inc_ref(x_128); +x_129 = l_Lean_Json_parse(x_128); +if (lean_obj_tag(x_129) == 0) +{ +lean_object* x_130; lean_dec(x_126); -x_131 = lean_ctor_get(x_130, 0); +x_130 = lean_ctor_get(x_129, 0); +lean_inc(x_130); +lean_dec_ref(x_129); +x_27 = x_124; +x_28 = x_127; +x_29 = x_125; +x_30 = x_130; +goto block_36; +} +else +{ +lean_object* x_131; lean_object* x_132; +x_131 = lean_ctor_get(x_129, 0); lean_inc(x_131); -lean_dec_ref(x_130); -x_37 = x_117; -x_38 = x_119; -x_39 = x_118; -x_40 = x_116; -x_41 = x_109; -x_42 = x_131; -goto block_87; +lean_dec_ref(x_129); +x_132 = l_Lean_Json_getObj_x3f(x_131); +if (lean_obj_tag(x_132) == 0) +{ +lean_object* x_133; +lean_dec(x_126); +x_133 = lean_ctor_get(x_132, 0); +lean_inc(x_133); +lean_dec_ref(x_132); +x_27 = x_124; +x_28 = x_127; +x_29 = x_125; +x_30 = x_133; +goto block_36; +} +else +{ +lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_134 = lean_ctor_get(x_132, 0); +lean_inc(x_134); +lean_dec_ref(x_132); +x_135 = l_Lake_getUrl_x3f___closed__11; +x_136 = l_Lake_JsonObject_getJson_x3f(x_134, x_135); +if (lean_obj_tag(x_136) == 0) +{ +lean_dec(x_134); +lean_dec(x_126); +x_21 = x_124; +x_22 = x_127; +x_23 = x_125; +goto block_26; +} +else +{ +lean_object* x_137; lean_object* x_138; +x_137 = lean_ctor_get(x_136, 0); +lean_inc(x_137); +lean_dec_ref(x_136); +x_138 = l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0(x_137); +if (lean_obj_tag(x_138) == 0) +{ +lean_dec_ref(x_138); +x_96 = x_126; +x_97 = x_124; +x_98 = x_117; +x_99 = x_127; +x_100 = x_134; +x_101 = x_125; +goto block_111; +} +else +{ +if (lean_obj_tag(x_138) == 0) +{ +lean_dec_ref(x_138); +x_96 = x_126; +x_97 = x_124; +x_98 = x_117; +x_99 = x_127; +x_100 = x_134; +x_101 = x_125; +goto block_111; +} +else +{ +lean_object* x_139; +lean_dec(x_134); +x_139 = lean_ctor_get(x_138, 0); +lean_inc(x_139); +lean_dec_ref(x_138); +x_37 = x_126; +x_38 = x_124; +x_39 = x_117; +x_40 = x_127; +x_41 = x_125; +x_42 = x_139; +goto block_95; } } } @@ -2015,13 +2028,13 @@ goto block_87; } else { -lean_object* x_132; -x_132 = lean_ctor_get(x_115, 1); -lean_inc(x_132); -lean_dec_ref(x_115); -x_5 = x_117; -x_6 = x_132; -x_7 = x_116; +lean_object* x_140; +x_140 = lean_ctor_get(x_123, 1); +lean_inc(x_140); +lean_dec_ref(x_123); +x_5 = x_125; +x_6 = x_140; +x_7 = x_124; goto block_10; } } @@ -2062,7 +2075,7 @@ static lean_object* _init_l_Lake_getUrl___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_getUrl_x3f___closed__11; +x_1 = l_Lake_getUrl_x3f___closed__12; x_2 = l_Lake_getUrl___closed__0; x_3 = lean_array_push(x_2, x_1); return x_3; @@ -2072,7 +2085,7 @@ static lean_object* _init_l_Lake_getUrl___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_getUrl_x3f___closed__12; +x_1 = l_Lake_getUrl_x3f___closed__13; x_2 = l_Lake_getUrl___closed__1; x_3 = lean_array_push(x_2, x_1); return x_3; @@ -2082,7 +2095,7 @@ static lean_object* _init_l_Lake_getUrl___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_getUrl_x3f___closed__15; +x_1 = l_Lake_getUrl_x3f___closed__16; x_2 = l_Lake_getUrl___closed__2; x_3 = lean_array_push(x_2, x_1); return x_3; @@ -2092,7 +2105,7 @@ static lean_object* _init_l_Lake_getUrl___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_getUrl_x3f___closed__16; +x_1 = l_Lake_getUrl_x3f___closed__17; x_2 = l_Lake_getUrl___closed__3; x_3 = lean_array_push(x_2, x_1); return x_3; @@ -2136,12 +2149,12 @@ goto block_56; block_56: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_6 = l_Lake_getUrl_x3f___closed__7; -x_7 = l_Lake_getUrl_x3f___closed__8; +x_6 = l_Lake_getUrl_x3f___closed__8; +x_7 = l_Lake_getUrl_x3f___closed__9; x_8 = lean_array_push(x_5, x_1); x_9 = lean_box(0); x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lake_getUrl_x3f___closed__9; +x_11 = l_Lake_getUrl_x3f___closed__10; x_12 = 1; x_13 = 0; x_14 = lean_alloc_ctor(0, 5, 2); @@ -2360,8 +2373,6 @@ l_Lake_foldlUtf8___redArg___closed__8 = _init_l_Lake_foldlUtf8___redArg___closed lean_mark_persistent(l_Lake_foldlUtf8___redArg___closed__8); l_Lake_foldlUtf8___redArg___closed__9 = _init_l_Lake_foldlUtf8___redArg___closed__9(); lean_mark_persistent(l_Lake_foldlUtf8___redArg___closed__9); -l_Lake_uriEncode___closed__0 = _init_l_Lake_uriEncode___closed__0(); -lean_mark_persistent(l_Lake_uriEncode___closed__0); l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0___closed__0 = _init_l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0___closed__0(); lean_mark_persistent(l_Option_fromJson_x3f___at___Lake_getUrl_x3f_spec__0___closed__0); l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_getUrl_x3f_spec__1___closed__0 = _init_l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___Lake_getUrl_x3f_spec__1___closed__0(); @@ -2418,6 +2429,8 @@ l_Lake_getUrl_x3f___closed__22 = _init_l_Lake_getUrl_x3f___closed__22(); lean_mark_persistent(l_Lake_getUrl_x3f___closed__22); l_Lake_getUrl_x3f___closed__23 = _init_l_Lake_getUrl_x3f___closed__23(); lean_mark_persistent(l_Lake_getUrl_x3f___closed__23); +l_Lake_getUrl_x3f___closed__24 = _init_l_Lake_getUrl_x3f___closed__24(); +lean_mark_persistent(l_Lake_getUrl_x3f___closed__24); l_Lake_getUrl___closed__0 = _init_l_Lake_getUrl___closed__0(); lean_mark_persistent(l_Lake_getUrl___closed__0); l_Lake_getUrl___closed__1 = _init_l_Lake_getUrl___closed__1(); diff --git a/stage0/stdlib/Lake/Util/Version.c b/stage0/stdlib/Lake/Util/Version.c index 34a0ce831c..9986bd2fd1 100644 --- a/stage0/stdlib/Lake/Util/Version.c +++ b/stage0/stdlib/Lake/Util/Version.c @@ -20,12 +20,11 @@ static lean_object* l_Lake_instReprSemVerCore___closed__0; LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_DecodeVersion_ctorIdx___boxed(lean_object*, lean_object*); static lean_object* l_Lake_instReprToolchainVer_repr___closed__11; -LEAN_EXPORT lean_object* l_Lake_instFromJsonToolchainVer___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lake_instMinSemVerCore___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instLESemVerCore; lean_object* l_List_lengthTR___redArg(lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release___override(lean_object*); LEAN_EXPORT lean_object* l_Lake_instMinSemVerCore___lam__0___boxed(lean_object*, lean_object*); -static lean_object* l_Lake_ToolchainVer_toString___closed__0; static lean_object* l_Lake_instReprToolchainVer_repr___closed__5; uint32_t lean_string_utf8_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instOrdSemVerCore_ord___boxed(lean_object*, lean_object*); @@ -37,7 +36,9 @@ static lean_object* l_Lake_instInhabitedStdVer_default___closed__0; LEAN_EXPORT lean_object* l_Lake_instMinStdVer___lam__0(lean_object*, lean_object*); lean_object* l_System_FilePath_join(lean_object*, lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__15; +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_ble(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_defaultOrigin; +lean_object* l_Substring_toNat_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_instReprStdVer; static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__2; static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__18; @@ -45,18 +46,16 @@ LEAN_EXPORT lean_object* l_Lake_instDecodeVersionToolchainVer___lam__0(lean_obje LEAN_EXPORT lean_object* l_Lake_toolchainFileName; static lean_object* l_Lake_SemVerCore_parse___closed__1; LEAN_EXPORT uint8_t l_Lake_instOrdSemVerCore_ord(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_instFromJsonToolchainVer; LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore; static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__5; static lean_object* l_Lake_ToolchainVer_ofString___closed__0; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson; LEAN_EXPORT lean_object* l_Lake_instToStringSemVerCore; -LEAN_EXPORT lean_object* l_Lake_instLEToolchainVer; lean_object* l_String_toNat_x3f(lean_object*); static lean_object* l_Lake_ToolchainVer_ofString___closed__7; static lean_object* l_Lake_instReprToolchainVer___closed__0; LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lake_instToJsonToolchainVer; LEAN_EXPORT lean_object* l_Lake_StdVer_parse___lam__0___boxed(lean_object*); lean_object* l_String_quote(lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr_elim(lean_object*, lean_object*, lean_object*, lean_object*); @@ -73,12 +72,12 @@ LEAN_EXPORT lean_object* l_Lake_instLTStdVer; static lean_object* l_Lake_instInhabitedStdVer_default___closed__1; LEAN_EXPORT lean_object* l_Lake_StdVer_ctorIdx(lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__12; -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_lt_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim___redArg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Nat_cast___at___Lake_instReprSemVerCore_repr_spec__0(lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToString; LEAN_EXPORT lean_object* l_Lake_instToJsonStdVer; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instLT; LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___redArg(lean_object*); -LEAN_EXPORT lean_object* l_Lake_instToStringToolchainVer; static lean_object* l_Lake_ToolchainVer_ofString___closed__1; uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* lean_string_length(lean_object*); @@ -91,32 +90,36 @@ LEAN_EXPORT lean_object* l_Lake_instMinStdVer; LEAN_EXPORT lean_object* l_Lake_instDecodeVersionStdVer; static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__10; static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__11; +static lean_object* l_Lake_ToolchainVer_instToString___closed__0; lean_object* l_Lean_Json_getStr_x3f(lean_object*); lean_object* l_Nat_reprFast(lean_object*); +lean_object* l_String_dropPrefix_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___boxed(lean_object*, lean_object*); static lean_object* l_Lake_instReprToolchainVer_repr___closed__9; uint8_t l_Lake_instOrdDate_ord(lean_object*, lean_object*); uint8_t lean_string_dec_lt(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other___override(lean_object*); lean_object* lean_string_utf8_next(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLt___boxed(lean_object*, lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__13; LEAN_EXPORT lean_object* l_Lake_instInhabitedStdVer; -LEAN_EXPORT lean_object* l_Lake_instCoeLeanVerToolchainVer___lam__0(lean_object*); lean_object* l_Lake_instReprDate_repr___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lake_instLEStdVer; LEAN_EXPORT lean_object* l_Lake_StdVer_toString(lean_object*); LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_ToolchainVer_ofFile_x3f_spec__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lake_instDecidableEqSemVerCore(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_DecodeVersion_ctorIdx(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_Lake_instMaxSemVerCore___lam__0___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_normalizeToolchain(lean_object*); LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at___Lake_ToolchainVer_ofFile_x3f_spec__0___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__8; -static lean_object* l_Lake_ToolchainVer_toString___closed__1; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lake_instMinStdVer___lam__0___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_split___at___Lake_SemVerCore_parse_spec__0(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_lt_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_SemVerCore_parse___lam__0___closed__2; +static lean_object* l_Lake_ToolchainVer_release___override___closed__0; static lean_object* l_Lake_instReprToolchainVer_repr___closed__1; static lean_object* l_Lake_instReprStdVer___closed__0; lean_object* l_Lake_Date_toString(lean_object*); @@ -124,12 +127,12 @@ static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__1; LEAN_EXPORT lean_object* l_Lake_instMaxSemVerCore___lam__0(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofString(lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__16; -LEAN_EXPORT lean_object* l_Lake_instToJsonToolchainVer___lam__0(lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_StdVer_ofSemVerCore(lean_object*); static lean_object* l_Lake_toolchainFileName___closed__0; LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLe(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_StdVer_ctorIdx___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString(lean_object*); +static lean_object* l_Lake_ToolchainVer_nightly___override___closed__0; LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLt(lean_object*, lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__0; static lean_object* l_Lake_ToolchainVer_ofString___closed__4; @@ -141,6 +144,7 @@ static lean_object* l_Lake_instReprToolchainVer_repr___closed__0; LEAN_EXPORT lean_object* l_Lake_instToStringStdVer; LEAN_EXPORT uint8_t l_Lake_instDecidableEqToolchainVer(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instFromJsonStdVer; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instCoeLeanVer___lam__0(lean_object*); static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__6; static lean_object* l_Lake_instReprToolchainVer_repr___closed__4; LEAN_EXPORT lean_object* l_Lake_instMaxStdVer___lam__0___boxed(lean_object*, lean_object*); @@ -148,12 +152,13 @@ LEAN_EXPORT lean_object* l_String_split___at___Lake_SemVerCore_parse_spec__0___b LEAN_EXPORT lean_object* l_Lake_instMaxSemVerCore; lean_object* lean_string_utf8_prev(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_StdVer_parse___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lake_instToJsonSemVerCore; +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_blt(lean_object*, lean_object*); static lean_object* l_Lake_instReprToolchainVer_repr___closed__13; LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__17; static lean_object* l_Lake_instCoeSemVerCoreStdVer___closed__0; -LEAN_EXPORT lean_object* l_Lake_instLTToolchainVer; LEAN_EXPORT lean_object* l_Lake_SemVerCore_ctorIdx(lean_object*); LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer___boxed(lean_object*, lean_object*); static lean_object* l_Lake_ToolchainVer_defaultOrigin___closed__0; @@ -165,21 +170,22 @@ LEAN_EXPORT lean_object* l_Lake_instDecidableEqSemVerCore___boxed(lean_object*, static lean_object* l_Lake_ToolchainVer_ofString___closed__5; lean_object* l_IO_FS_readFile(lean_object*, lean_object*); lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_ToolchainVer_toString___closed__2; static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__6; LEAN_EXPORT uint8_t l_Lake_StdVer_compare(lean_object*, lean_object*); -static lean_object* l_Lake_ToolchainVer_ofString___closed__8; LEAN_EXPORT lean_object* l_Lake_SemVerCore_parse___boxed(lean_object*); static lean_object* l_Lake_instReprToolchainVer_repr___closed__12; LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instDecodeVersionToolchainVer; lean_object* l_String_findAux(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr___override(lean_object*); LEAN_EXPORT lean_object* l_Lake_instDecidableEqStdVer_decEq___boxed(lean_object*, lean_object*); +static lean_object* l_Lake_ToolchainVer_pr___override___closed__0; LEAN_EXPORT lean_object* l_Lake_StdVer_parse(lean_object*); LEAN_EXPORT lean_object* l_Lake_instInhabitedStdVer_default; LEAN_EXPORT lean_object* l_Lake_instDecodeVersionSemVerCore; static lean_object* l_Lake_instOrdSemVerCore___closed__0; static lean_object* l_Lake_instDecodeVersionStdVer___closed__0; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson___lam__0(lean_object*); LEAN_EXPORT lean_object* l_Lake_instOrdStdVer; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lake_instInhabitedSemVerCore_default___closed__0; @@ -194,9 +200,9 @@ LEAN_EXPORT lean_object* l_Lake_SemVerCore_parse___lam__0(lean_object*, lean_obj static lean_object* l_Lake_StdVer_parse___closed__0; LEAN_EXPORT lean_object* l_Substring_takeRightWhileAux___at___Lake_ToolchainVer_ofFile_x3f_spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_String_splitAux___at___String_split___at___Lake_SemVerCore_parse_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_le_match__1_splitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release_elim(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instCoeSemVerCoreStdVer; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ble___boxed(lean_object*, lean_object*); static lean_object* l_Lake_instToStringStdVer___closed__0; LEAN_EXPORT uint8_t l_Lake_instDecidableEqStdVer_decEq(lean_object*, lean_object*); lean_object* l_Repr_addAppParen(lean_object*, lean_object*); @@ -205,9 +211,11 @@ lean_object* l_List_reverse___redArg(lean_object*); LEAN_EXPORT lean_object* l_Lake_instReprSemVerCore_repr___redArg(lean_object*); static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__2; LEAN_EXPORT lean_object* l_Lake_instReprStdVer_repr___boxed(lean_object*, lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lake_Date_ofString_x3f(lean_object*); LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instCoeStdVerSemVerCore; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override(lean_object*); LEAN_EXPORT lean_object* l_Lake_StdVer_compare___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_instMaxStdVer___lam__0(lean_object*, lean_object*); static lean_object* l_Lake_instReprToolchainVer_repr___closed__10; @@ -223,9 +231,10 @@ LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofFile_x3f___boxed(lean_object*, le LEAN_EXPORT lean_object* l_Lake_ToolchainVer_prOrigin; static lean_object* l_Lake_ToolchainVer_ofString___closed__3; LEAN_EXPORT lean_object* l_Lake_instCoeStdVerSemVerCore___lam__0___boxed(lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_blt___boxed(lean_object*, lean_object*); static lean_object* l_Lake_StdVer_toString___closed__0; LEAN_EXPORT lean_object* l_Lake_instMaxStdVer; -static lean_object* l_Lake_instToStringToolchainVer___closed__0; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly___override(lean_object*); LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer; LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at___Lake_ToolchainVer_ofFile_x3f_spec__0(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim(lean_object*, lean_object*, lean_object*, lean_object*); @@ -242,14 +251,16 @@ LEAN_EXPORT lean_object* l_Lake_SemVerCore_parse___lam__0___boxed(lean_object*, LEAN_EXPORT lean_object* l_Lake_instInhabitedSemVerCore_default; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx(lean_object*); -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_le_match__1_splitter___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_instReprStdVer_repr___redArg___closed__0; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instCoeLeanVer; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0___boxed(lean_object*); static lean_object* l_Lake_SemVerCore_parse___closed__0; static lean_object* l_Lake_instReprSemVerCore_repr___redArg___closed__5; -LEAN_EXPORT lean_object* l_Lake_instCoeLeanVerToolchainVer; LEAN_EXPORT lean_object* l_Lake_instFromJsonSemVerCore; LEAN_EXPORT lean_object* l_Lake_instDecidableEqToolchainVer_decEq___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly_elim___redArg(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instLE; +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson; LEAN_EXPORT lean_object* l_Lake_instReprToolchainVer_repr___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_SemVerCore_ctorIdx___boxed(lean_object*); static lean_object* l_Lake_ToolchainVer_ofString___closed__2; @@ -2247,6 +2258,54 @@ x_1 = lean_alloc_closure((void*)(l_Lake_instFromJsonStdVer___lam__0), 1, 0); return x_1; } } +static lean_object* _init_l_Lake_toolchainFileName___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("lean-toolchain", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lake_toolchainFileName() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_toolchainFileName___closed__0; +return x_1; +} +} +static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("leanprover/lean4", 16, 16); +return x_1; +} +} +static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_ToolchainVer_defaultOrigin___closed__0; +return x_1; +} +} +static lean_object* _init_l_Lake_ToolchainVer_prOrigin___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases", 28, 28); +return x_1; +} +} +static lean_object* _init_l_Lake_ToolchainVer_prOrigin() { +_start: +{ +lean_object* x_1; +x_1 = l_Lake_ToolchainVer_prOrigin___closed__0; +return x_1; +} +} LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ctorIdx(lean_object* x_1) { _start: { @@ -2391,6 +2450,214 @@ x_5 = l_Lake_ToolchainVer_ctorElim___redArg(x_2, x_4); return x_5; } } +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +switch (lean_obj_tag(x_1)) { +case 0: +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_6); +lean_dec_ref(x_1); +x_7 = lean_apply_1(x_2, x_6); +return x_7; +} +case 1: +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_8 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_8); +lean_dec_ref(x_1); +x_9 = lean_apply_1(x_3, x_8); +return x_9; +} +case 2: +{ +lean_object* x_10; lean_object* x_11; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_10 = lean_ctor_get(x_1, 1); +lean_inc(x_10); +lean_dec_ref(x_1); +x_11 = lean_apply_1(x_4, x_10); +return x_11; +} +default: +{ +lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_12 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_12); +lean_dec_ref(x_1); +x_13 = lean_apply_1(x_5, x_12); +return x_13; +} +} +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_casesOn___override(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_7 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_7); +lean_dec_ref(x_2); +x_8 = lean_apply_1(x_3, x_7); +return x_8; +} +case 1: +{ +lean_object* x_9; lean_object* x_10; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_9 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_9); +lean_dec_ref(x_2); +x_10 = lean_apply_1(x_4, x_9); +return x_10; +} +case 2: +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +x_11 = lean_ctor_get(x_2, 1); +lean_inc(x_11); +lean_dec_ref(x_2); +x_12 = lean_apply_1(x_5, x_11); +return x_12; +} +default: +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_13 = lean_ctor_get(x_2, 1); +lean_inc_ref(x_13); +lean_dec_ref(x_2); +x_14 = lean_apply_1(x_6, x_13); +return x_14; +} +} +} +} +static lean_object* _init_l_Lake_ToolchainVer_release___override___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("leanprover/lean4:v", 18, 18); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_release___override(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lake_ToolchainVer_release___override___closed__0; +lean_inc_ref(x_1); +x_3 = l_Lake_StdVer_toString(x_1); +x_4 = lean_string_append(x_2, x_3); +lean_dec_ref(x_3); +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_1); +return x_5; +} +} +static lean_object* _init_l_Lake_ToolchainVer_nightly___override___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("leanprover/lean4:nightly-", 25, 25); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_nightly___override(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lake_ToolchainVer_nightly___override___closed__0; +lean_inc_ref(x_1); +x_3 = l_Lake_Date_toString(x_1); +x_4 = lean_string_append(x_2, x_3); +lean_dec_ref(x_3); +x_5 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_1); +return x_5; +} +} +static lean_object* _init_l_Lake_ToolchainVer_pr___override___closed__0() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases:pr-release-", 40, 40); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_pr___override(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lake_ToolchainVer_pr___override___closed__0; +lean_inc(x_1); +x_3 = l_Nat_reprFast(x_1); +x_4 = lean_string_append(x_2, x_3); +lean_dec_ref(x_3); +x_5 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_other___override(lean_object* x_1) { +_start: +{ +lean_object* x_2; +lean_inc_ref(x_1); +x_2 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_2); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString___override___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_ToolchainVer_toString___override(x_1); +lean_dec_ref(x_1); +return x_2; +} +} static lean_object* _init_l_Lake_instReprToolchainVer_repr___closed__0() { _start: { @@ -2535,191 +2802,218 @@ _start: switch (lean_obj_tag(x_1)) { case 0: { -lean_object* x_3; lean_object* x_4; lean_object* x_13; uint8_t x_14; -x_3 = lean_ctor_get(x_1, 0); +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_14; uint8_t x_15; +x_3 = lean_ctor_get(x_1, 1); lean_inc_ref(x_3); -lean_dec_ref(x_1); -x_13 = lean_unsigned_to_nat(1024u); -x_14 = lean_nat_dec_le(x_13, x_2); -if (x_14 == 0) +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_4 = x_1; +} else { + lean_dec_ref(x_1); + x_4 = lean_box(0); +} +x_14 = lean_unsigned_to_nat(1024u); +x_15 = lean_nat_dec_le(x_14, x_2); +if (x_15 == 0) { -lean_object* x_15; -x_15 = l_Lake_instReprToolchainVer_repr___closed__3; -x_4 = x_15; -goto block_12; +lean_object* x_16; +x_16 = l_Lake_instReprToolchainVer_repr___closed__3; +x_5 = x_16; +goto block_13; } else { -lean_object* x_16; -x_16 = l_Lake_instReprToolchainVer_repr___closed__4; -x_4 = x_16; -goto block_12; +lean_object* x_17; +x_17 = l_Lake_instReprToolchainVer_repr___closed__4; +x_5 = x_17; +goto block_13; } -block_12: +block_13: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; -x_5 = l_Lake_instReprToolchainVer_repr___closed__2; -x_6 = l_Lake_instReprStdVer_repr___redArg(x_3); -x_7 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_7, 0, x_5); -lean_ctor_set(x_7, 1, x_6); -x_8 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_8, 0, x_4); +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; +x_6 = l_Lake_instReprToolchainVer_repr___closed__2; +x_7 = l_Lake_instReprStdVer_repr___redArg(x_3); +if (lean_is_scalar(x_4)) { + x_8 = lean_alloc_ctor(5, 2, 0); +} else { + x_8 = x_4; + lean_ctor_set_tag(x_8, 5); +} +lean_ctor_set(x_8, 0, x_6); lean_ctor_set(x_8, 1, x_7); -x_9 = 0; -x_10 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_10, 0, x_8); -lean_ctor_set_uint8(x_10, sizeof(void*)*1, x_9); -x_11 = l_Repr_addAppParen(x_10, x_2); -return x_11; +x_9 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_8); +x_10 = 0; +x_11 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_11, 0, x_9); +lean_ctor_set_uint8(x_11, sizeof(void*)*1, x_10); +x_12 = l_Repr_addAppParen(x_11, x_2); +return x_12; } } case 1: { -lean_object* x_17; lean_object* x_18; lean_object* x_27; uint8_t x_28; -x_17 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_17); -lean_dec_ref(x_1); -x_27 = lean_unsigned_to_nat(1024u); -x_28 = lean_nat_dec_le(x_27, x_2); -if (x_28 == 0) +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_29; uint8_t x_30; +x_18 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_18); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_19 = x_1; +} else { + lean_dec_ref(x_1); + x_19 = lean_box(0); +} +x_29 = lean_unsigned_to_nat(1024u); +x_30 = lean_nat_dec_le(x_29, x_2); +if (x_30 == 0) { -lean_object* x_29; -x_29 = l_Lake_instReprToolchainVer_repr___closed__3; -x_18 = x_29; -goto block_26; +lean_object* x_31; +x_31 = l_Lake_instReprToolchainVer_repr___closed__3; +x_20 = x_31; +goto block_28; } else { -lean_object* x_30; -x_30 = l_Lake_instReprToolchainVer_repr___closed__4; -x_18 = x_30; -goto block_26; +lean_object* x_32; +x_32 = l_Lake_instReprToolchainVer_repr___closed__4; +x_20 = x_32; +goto block_28; } -block_26: +block_28: { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_19 = l_Lake_instReprToolchainVer_repr___closed__7; -x_20 = l_Lake_instReprDate_repr___redArg(x_17); -x_21 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -x_22 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_22, 0, x_18); -lean_ctor_set(x_22, 1, x_21); -x_23 = 0; -x_24 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_24, 0, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*1, x_23); -x_25 = l_Repr_addAppParen(x_24, x_2); -return x_25; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; +x_21 = l_Lake_instReprToolchainVer_repr___closed__7; +x_22 = l_Lake_instReprDate_repr___redArg(x_18); +if (lean_is_scalar(x_19)) { + x_23 = lean_alloc_ctor(5, 2, 0); +} else { + x_23 = x_19; + lean_ctor_set_tag(x_23, 5); +} +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_24, 0, x_20); +lean_ctor_set(x_24, 1, x_23); +x_25 = 0; +x_26 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set_uint8(x_26, sizeof(void*)*1, x_25); +x_27 = l_Repr_addAppParen(x_26, x_2); +return x_27; } } case 2: { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_43; uint8_t x_44; -x_31 = lean_ctor_get(x_1, 0); -lean_inc(x_31); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_45; uint8_t x_46; +x_33 = lean_ctor_get(x_1, 1); +lean_inc(x_33); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_32 = x_1; + lean_ctor_release(x_1, 1); + x_34 = x_1; } else { lean_dec_ref(x_1); - x_32 = lean_box(0); + x_34 = lean_box(0); } -x_43 = lean_unsigned_to_nat(1024u); -x_44 = lean_nat_dec_le(x_43, x_2); -if (x_44 == 0) +x_45 = lean_unsigned_to_nat(1024u); +x_46 = lean_nat_dec_le(x_45, x_2); +if (x_46 == 0) { -lean_object* x_45; -x_45 = l_Lake_instReprToolchainVer_repr___closed__3; -x_33 = x_45; -goto block_42; +lean_object* x_47; +x_47 = l_Lake_instReprToolchainVer_repr___closed__3; +x_35 = x_47; +goto block_44; } else { -lean_object* x_46; -x_46 = l_Lake_instReprToolchainVer_repr___closed__4; -x_33 = x_46; -goto block_42; +lean_object* x_48; +x_48 = l_Lake_instReprToolchainVer_repr___closed__4; +x_35 = x_48; +goto block_44; } -block_42: +block_44: { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; -x_34 = l_Lake_instReprToolchainVer_repr___closed__10; -x_35 = l_Nat_reprFast(x_31); -if (lean_is_scalar(x_32)) { - x_36 = lean_alloc_ctor(3, 1, 0); +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; lean_object* x_42; lean_object* x_43; +x_36 = l_Lake_instReprToolchainVer_repr___closed__10; +x_37 = l_Nat_reprFast(x_33); +x_38 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_38, 0, x_37); +if (lean_is_scalar(x_34)) { + x_39 = lean_alloc_ctor(5, 2, 0); } else { - x_36 = x_32; - lean_ctor_set_tag(x_36, 3); + x_39 = x_34; + lean_ctor_set_tag(x_39, 5); } -lean_ctor_set(x_36, 0, x_35); -x_37 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_37, 0, x_34); -lean_ctor_set(x_37, 1, x_36); -x_38 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_38, 0, x_33); -lean_ctor_set(x_38, 1, x_37); -x_39 = 0; -x_40 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set_uint8(x_40, sizeof(void*)*1, x_39); -x_41 = l_Repr_addAppParen(x_40, x_2); -return x_41; +lean_ctor_set(x_39, 0, x_36); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_40, 0, x_35); +lean_ctor_set(x_40, 1, x_39); +x_41 = 0; +x_42 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set_uint8(x_42, sizeof(void*)*1, x_41); +x_43 = l_Repr_addAppParen(x_42, x_2); +return x_43; } } default: { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_59; uint8_t x_60; -x_47 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_47); +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_61; uint8_t x_62; +x_49 = lean_ctor_get(x_1, 1); +lean_inc_ref(x_49); if (lean_is_exclusive(x_1)) { lean_ctor_release(x_1, 0); - x_48 = x_1; + lean_ctor_release(x_1, 1); + x_50 = x_1; } else { lean_dec_ref(x_1); - x_48 = lean_box(0); + x_50 = lean_box(0); } -x_59 = lean_unsigned_to_nat(1024u); -x_60 = lean_nat_dec_le(x_59, x_2); -if (x_60 == 0) +x_61 = lean_unsigned_to_nat(1024u); +x_62 = lean_nat_dec_le(x_61, x_2); +if (x_62 == 0) { -lean_object* x_61; -x_61 = l_Lake_instReprToolchainVer_repr___closed__3; -x_49 = x_61; -goto block_58; +lean_object* x_63; +x_63 = l_Lake_instReprToolchainVer_repr___closed__3; +x_51 = x_63; +goto block_60; } else { -lean_object* x_62; -x_62 = l_Lake_instReprToolchainVer_repr___closed__4; -x_49 = x_62; -goto block_58; +lean_object* x_64; +x_64 = l_Lake_instReprToolchainVer_repr___closed__4; +x_51 = x_64; +goto block_60; } -block_58: +block_60: { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; -x_50 = l_Lake_instReprToolchainVer_repr___closed__13; -x_51 = l_String_quote(x_47); -if (lean_is_scalar(x_48)) { - x_52 = lean_alloc_ctor(3, 1, 0); +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_object* x_58; lean_object* x_59; +x_52 = l_Lake_instReprToolchainVer_repr___closed__13; +x_53 = l_String_quote(x_49); +x_54 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_54, 0, x_53); +if (lean_is_scalar(x_50)) { + x_55 = lean_alloc_ctor(5, 2, 0); } else { - x_52 = x_48; + x_55 = x_50; + lean_ctor_set_tag(x_55, 5); } -lean_ctor_set(x_52, 0, x_51); -x_53 = lean_alloc_ctor(5, 2, 0); -lean_ctor_set(x_53, 0, x_50); -lean_ctor_set(x_53, 1, x_52); -x_54 = lean_alloc_ctor(4, 2, 0); -lean_ctor_set(x_54, 0, x_49); -lean_ctor_set(x_54, 1, x_53); -x_55 = 0; -x_56 = lean_alloc_ctor(6, 1, 1); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set_uint8(x_56, sizeof(void*)*1, x_55); -x_57 = l_Repr_addAppParen(x_56, x_2); -return x_57; +lean_ctor_set(x_55, 0, x_52); +lean_ctor_set(x_55, 1, x_54); +x_56 = lean_alloc_ctor(4, 2, 0); +lean_ctor_set(x_56, 0, x_51); +lean_ctor_set(x_56, 1, x_55); +x_57 = 0; +x_58 = lean_alloc_ctor(6, 1, 1); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set_uint8(x_58, sizeof(void*)*1, x_57); +x_59 = l_Repr_addAppParen(x_58, x_2); +return x_59; } } } @@ -2759,8 +3053,8 @@ case 0: if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_2, 0); +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_2, 1); x_5 = l_Lake_instDecidableEqStdVer_decEq(x_3, x_4); return x_5; } @@ -2776,8 +3070,8 @@ case 1: if (lean_obj_tag(x_2) == 1) { lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_1, 0); -x_8 = lean_ctor_get(x_2, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_2, 1); x_9 = l_Lake_instDecidableEqDate_decEq(x_7, x_8); return x_9; } @@ -2793,8 +3087,8 @@ case 2: if (lean_obj_tag(x_2) == 2) { lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_1, 0); -x_12 = lean_ctor_get(x_2, 0); +x_11 = lean_ctor_get(x_1, 1); +x_12 = lean_ctor_get(x_2, 1); x_13 = lean_nat_dec_eq(x_11, x_12); return x_13; } @@ -2810,8 +3104,8 @@ default: if (lean_obj_tag(x_2) == 3) { lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_1, 0); -x_16 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_1, 1); +x_16 = lean_ctor_get(x_2, 1); x_17 = lean_string_dec_eq(x_15, x_16); return x_17; } @@ -2855,52 +3149,19 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Lake_instCoeLeanVerToolchainVer___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instCoeLeanVer___lam__0(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lake_ToolchainVer_release___override(x_1); return x_2; } } -static lean_object* _init_l_Lake_instCoeLeanVerToolchainVer() { +static lean_object* _init_l_Lake_ToolchainVer_instCoeLeanVer() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instCoeLeanVerToolchainVer___lam__0), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("leanprover/lean4", 16, 16); -return x_1; -} -} -static lean_object* _init_l_Lake_ToolchainVer_defaultOrigin() { -_start: -{ -lean_object* x_1; -x_1 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -return x_1; -} -} -static lean_object* _init_l_Lake_ToolchainVer_prOrigin___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases", 28, 28); -return x_1; -} -} -static lean_object* _init_l_Lake_ToolchainVer_prOrigin() { -_start: -{ -lean_object* x_1; -x_1 = l_Lake_ToolchainVer_prOrigin___closed__0; +x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_instCoeLeanVer___lam__0), 1, 0); return x_1; } } @@ -2946,50 +3207,35 @@ return x_1; static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__4() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_ToolchainVer_ofString___closed__3; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_ToolchainVer_ofString___closed__4; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lake_ToolchainVer_ofString___closed__3; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_3); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_1); -return x_4; -} -} -static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__6() { -_start: -{ lean_object* x_1; x_1 = lean_mk_string_unchecked("pr-release-", 11, 11); return x_1; } } -static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__7() { +static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("-nightly", 8, 8); +return x_1; +} +} +static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lake_ToolchainVer_ofString___closed__6; +x_1 = l_Lake_ToolchainVer_ofString___closed__5; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__8() { +static lean_object* _init_l_Lake_ToolchainVer_ofString___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lake_ToolchainVer_ofString___closed__7; +x_1 = l_Lake_ToolchainVer_ofString___closed__6; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lake_ToolchainVer_ofString___closed__6; +x_3 = l_Lake_ToolchainVer_ofString___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_3); lean_ctor_set(x_4, 1, x_2); @@ -3000,513 +3246,358 @@ return x_4; LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofString(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; uint32_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_94 = 58; -x_95 = lean_string_utf8_byte_size(x_1); -x_96 = lean_unsigned_to_nat(0u); -x_97 = l_String_posOfAux(x_1, x_94, x_95, x_96); -x_98 = lean_nat_dec_lt(x_97, x_95); -if (x_98 == 0) +lean_object* x_2; lean_object* x_3; uint32_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_71 = 58; +x_72 = lean_string_utf8_byte_size(x_1); +x_73 = lean_unsigned_to_nat(0u); +x_74 = l_String_posOfAux(x_1, x_71, x_72, x_73); +x_75 = lean_nat_dec_lt(x_74, x_72); +if (x_75 == 0) { -lean_object* x_99; -lean_dec(x_97); -lean_dec(x_95); -x_99 = l_Lake_instInhabitedStdVer_default___closed__0; +lean_object* x_76; +lean_dec(x_74); +lean_dec(x_72); +x_76 = l_Lake_instInhabitedStdVer_default___closed__0; lean_inc_ref(x_1); -x_2 = x_99; +x_2 = x_76; x_3 = x_1; -goto block_93; +goto block_70; } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -x_100 = lean_string_utf8_next_fast(x_1, x_97); -x_101 = lean_string_utf8_extract(x_1, x_96, x_97); -lean_dec(x_97); -x_102 = lean_string_utf8_extract(x_1, x_100, x_95); -lean_dec(x_95); -lean_dec(x_100); -x_2 = x_101; -x_3 = x_102; -goto block_93; +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_string_utf8_next_fast(x_1, x_74); +x_78 = lean_string_utf8_extract(x_1, x_73, x_74); +lean_dec(x_74); +x_79 = lean_string_utf8_extract(x_1, x_77, x_72); +lean_dec(x_72); +lean_dec(x_77); +x_2 = x_78; +x_3 = x_79; +goto block_70; } -block_93: +block_70: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_4 = lean_unsigned_to_nat(0u); -x_5 = lean_string_utf8_byte_size(x_3); -lean_inc(x_5); +lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_4 = lean_string_utf8_byte_size(x_2); +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_4, x_5); +lean_dec(x_4); +x_7 = lean_string_utf8_byte_size(x_3); +lean_inc(x_7); lean_inc_ref(x_3); -x_6 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_6, 0, x_3); -lean_ctor_set(x_6, 1, x_4); -lean_ctor_set(x_6, 2, x_5); -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Substring_nextn(x_6, x_7, x_4); -lean_inc(x_8); +x_8 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_8, 0, x_3); +lean_ctor_set(x_8, 1, x_5); +lean_ctor_set(x_8, 2, x_7); +x_9 = lean_unsigned_to_nat(1u); +x_10 = l_Substring_nextn(x_8, x_9, x_5); +lean_dec_ref(x_8); +lean_inc(x_10); lean_inc_ref(x_3); -x_9 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_9, 0, x_3); -lean_ctor_set(x_9, 1, x_4); -lean_ctor_set(x_9, 2, x_8); -x_10 = l_Lake_ToolchainVer_ofString___closed__2; -x_11 = l_Substring_beq(x_9, x_10); -if (x_11 == 0) +x_11 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_11, 0, x_3); +lean_ctor_set(x_11, 1, x_5); +lean_ctor_set(x_11, 2, x_10); +x_12 = l_Lake_ToolchainVer_ofString___closed__2; +x_13 = l_Substring_beq(x_11, x_12); +if (x_13 == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_8); -x_12 = lean_unsigned_to_nat(8u); -x_13 = l_Substring_nextn(x_6, x_12, x_4); -lean_inc(x_13); +lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +lean_dec(x_7); +x_14 = l_Lake_ToolchainVer_ofString___closed__3; lean_inc_ref(x_3); -x_14 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_4); -lean_ctor_set(x_14, 2, x_13); -x_15 = l_Lake_ToolchainVer_ofString___closed__5; -x_16 = l_Substring_beq(x_14, x_15); -if (x_16 == 0) +x_15 = l_String_dropPrefix_x3f(x_3, x_14); +if (lean_obj_tag(x_15) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -lean_dec(x_13); -x_17 = lean_unsigned_to_nat(11u); -x_18 = l_Substring_nextn(x_6, x_17, x_4); -lean_dec_ref(x_6); -lean_inc(x_18); -lean_inc_ref(x_3); -x_19 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_19, 0, x_3); -lean_ctor_set(x_19, 1, x_4); -lean_ctor_set(x_19, 2, x_18); -x_20 = l_Lake_ToolchainVer_ofString___closed__8; -x_21 = l_Substring_beq(x_19, x_20); -if (x_21 == 0) +lean_object* x_16; lean_object* x_17; +x_16 = l_Lake_ToolchainVer_ofString___closed__4; +x_17 = l_String_dropPrefix_x3f(x_3, x_16); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_22; -lean_dec(x_18); -lean_dec(x_5); -lean_dec_ref(x_3); -x_22 = l_Lake_StdVer_parse(x_1); -if (lean_obj_tag(x_22) == 0) +lean_object* x_18; +x_18 = l_Lake_StdVer_parse(x_1); +if (lean_obj_tag(x_18) == 0) { -uint8_t x_23; +lean_object* x_19; +lean_dec_ref(x_18); lean_dec_ref(x_2); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) +lean_inc_ref(x_1); +x_19 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_19, 0, x_1); +lean_ctor_set(x_19, 1, x_1); +return x_19; +} +else +{ +if (x_6 == 0) +{ +lean_object* x_20; lean_object* x_21; uint8_t x_22; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +lean_dec_ref(x_18); +x_21 = l_Lake_ToolchainVer_defaultOrigin___closed__0; +x_22 = lean_string_dec_eq(x_2, x_21); +lean_dec_ref(x_2); +if (x_22 == 0) +{ +lean_object* x_23; +lean_dec(x_20); +lean_inc_ref(x_1); +x_23 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_23, 0, x_1); +lean_ctor_set(x_23, 1, x_1); +return x_23; +} +else { lean_object* x_24; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -lean_ctor_set_tag(x_22, 3); -lean_ctor_set(x_22, 0, x_1); -return x_22; -} -else -{ -lean_object* x_25; -lean_dec(x_22); -x_25 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_25, 0, x_1); -return x_25; -} -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_22); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_27 = lean_ctor_get(x_22, 0); -x_28 = lean_string_utf8_byte_size(x_2); -x_29 = lean_nat_dec_eq(x_28, x_4); -lean_dec(x_28); -if (x_29 == 0) -{ -lean_object* x_30; uint8_t x_31; -x_30 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -x_31 = lean_string_dec_eq(x_2, x_30); -lean_dec_ref(x_2); -if (x_31 == 0) -{ -lean_dec(x_27); -lean_ctor_set_tag(x_22, 3); -lean_ctor_set(x_22, 0, x_1); -return x_22; -} -else -{ lean_dec_ref(x_1); -lean_ctor_set_tag(x_22, 0); -return x_22; +x_24 = l_Lake_ToolchainVer_release___override(x_20); +return x_24; } } else { +lean_object* x_25; lean_object* x_26; lean_dec_ref(x_2); lean_dec_ref(x_1); -lean_ctor_set_tag(x_22, 0); -return x_22; +x_25 = lean_ctor_get(x_18, 0); +lean_inc(x_25); +lean_dec_ref(x_18); +x_26 = l_Lake_ToolchainVer_release___override(x_25); +return x_26; +} } } else { -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_ctor_get(x_22, 0); -lean_inc(x_32); -lean_dec(x_22); -x_33 = lean_string_utf8_byte_size(x_2); -x_34 = lean_nat_dec_eq(x_33, x_4); -lean_dec(x_33); -if (x_34 == 0) +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_17, 0); +lean_inc(x_27); +lean_dec_ref(x_17); +x_28 = l_Substring_toNat_x3f(x_27); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_35; uint8_t x_36; -x_35 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -x_36 = lean_string_dec_eq(x_2, x_35); +lean_object* x_29; lean_dec_ref(x_2); -if (x_36 == 0) -{ -lean_object* x_37; -lean_dec(x_32); -x_37 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_37, 0, x_1); -return x_37; +lean_inc_ref(x_1); +x_29 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_1); +return x_29; } else { -lean_object* x_38; +if (x_6 == 0) +{ +lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_30 = lean_ctor_get(x_28, 0); +lean_inc(x_30); +lean_dec_ref(x_28); +x_31 = l_Lake_ToolchainVer_prOrigin___closed__0; +x_32 = lean_string_dec_eq(x_2, x_31); +lean_dec_ref(x_2); +if (x_32 == 0) +{ +lean_object* x_33; +lean_dec(x_30); +lean_inc_ref(x_1); +x_33 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_33, 0, x_1); +lean_ctor_set(x_33, 1, x_1); +return x_33; +} +else +{ +lean_object* x_34; lean_dec_ref(x_1); -x_38 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_38, 0, x_32); -return x_38; +x_34 = l_Lake_ToolchainVer_pr___override(x_30); +return x_34; } } else { -lean_object* x_39; +lean_object* x_35; lean_object* x_36; lean_dec_ref(x_2); lean_dec_ref(x_1); -x_39 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_39, 0, x_32); -return x_39; +x_35 = lean_ctor_get(x_28, 0); +lean_inc(x_35); +lean_dec_ref(x_28); +x_36 = l_Lake_ToolchainVer_pr___override(x_35); +return x_36; } } } } else { -lean_object* x_40; lean_object* x_41; -x_40 = lean_string_utf8_extract(x_3, x_18, x_5); -lean_dec(x_5); -lean_dec(x_18); +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_dec_ref(x_3); -x_41 = l_String_toNat_x3f(x_40); -lean_dec_ref(x_40); -if (lean_obj_tag(x_41) == 0) +x_37 = lean_ctor_get(x_15, 0); +lean_inc(x_37); +lean_dec_ref(x_15); +x_38 = lean_ctor_get(x_37, 0); +lean_inc_ref(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_37, 2); +lean_inc(x_40); +lean_dec(x_37); +x_41 = lean_string_utf8_extract(x_38, x_39, x_40); +lean_dec(x_40); +lean_dec(x_39); +lean_dec_ref(x_38); +x_42 = l_Lake_Date_ofString_x3f(x_41); +lean_dec_ref(x_41); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_42; +lean_object* x_43; lean_dec_ref(x_2); -x_42 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_42, 0, x_1); -return x_42; +lean_inc_ref(x_1); +x_43 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_43, 0, x_1); +lean_ctor_set(x_43, 1, x_1); +return x_43; } else { -uint8_t x_43; -x_43 = !lean_is_exclusive(x_41); -if (x_43 == 0) +if (x_6 == 0) { -lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_44 = lean_ctor_get(x_41, 0); -x_45 = lean_string_utf8_byte_size(x_2); -x_46 = lean_nat_dec_eq(x_45, x_4); -lean_dec(x_45); -if (x_46 == 0) -{ -lean_object* x_47; uint8_t x_48; -x_47 = l_Lake_ToolchainVer_prOrigin___closed__0; -x_48 = lean_string_dec_eq(x_2, x_47); -lean_dec_ref(x_2); -if (x_48 == 0) +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_42, 0); +lean_inc(x_44); +lean_dec_ref(x_42); +x_45 = l_Lake_ToolchainVer_defaultOrigin___closed__0; +x_46 = l_String_dropPrefix_x3f(x_2, x_45); +if (lean_obj_tag(x_46) == 0) { +lean_object* x_47; lean_dec(x_44); -lean_ctor_set_tag(x_41, 3); -lean_ctor_set(x_41, 0, x_1); -return x_41; +lean_inc_ref(x_1); +x_47 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_47, 0, x_1); +lean_ctor_set(x_47, 1, x_1); +return x_47; } else { -lean_dec_ref(x_1); -lean_ctor_set_tag(x_41, 2); -return x_41; -} -} -else +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_48 = lean_ctor_get(x_46, 0); +lean_inc(x_48); +lean_dec_ref(x_46); +x_49 = lean_ctor_get(x_48, 1); +x_50 = lean_ctor_get(x_48, 2); +x_51 = lean_nat_sub(x_50, x_49); +x_52 = lean_nat_dec_eq(x_51, x_5); +lean_dec(x_51); +if (x_52 == 0) { -lean_dec_ref(x_2); -lean_dec_ref(x_1); -lean_ctor_set_tag(x_41, 2); -return x_41; -} -} -else -{ -lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_49 = lean_ctor_get(x_41, 0); -lean_inc(x_49); -lean_dec(x_41); -x_50 = lean_string_utf8_byte_size(x_2); -x_51 = lean_nat_dec_eq(x_50, x_4); -lean_dec(x_50); -if (x_51 == 0) -{ -lean_object* x_52; uint8_t x_53; -x_52 = l_Lake_ToolchainVer_prOrigin___closed__0; -x_53 = lean_string_dec_eq(x_2, x_52); -lean_dec_ref(x_2); -if (x_53 == 0) -{ -lean_object* x_54; -lean_dec(x_49); -x_54 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_54, 0, x_1); -return x_54; -} -else +lean_object* x_53; uint8_t x_54; +x_53 = l_Lake_ToolchainVer_ofString___closed__7; +x_54 = l_Substring_beq(x_48, x_53); +if (x_54 == 0) { lean_object* x_55; -lean_dec_ref(x_1); -x_55 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_55, 0, x_49); +lean_dec(x_44); +lean_inc_ref(x_1); +x_55 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_55, 0, x_1); +lean_ctor_set(x_55, 1, x_1); return x_55; } -} else { lean_object* x_56; -lean_dec_ref(x_2); lean_dec_ref(x_1); -x_56 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_56, 0, x_49); +x_56 = l_Lake_ToolchainVer_nightly___override(x_44); return x_56; } } +else +{ +lean_object* x_57; +lean_dec(x_48); +lean_dec_ref(x_1); +x_57 = l_Lake_ToolchainVer_nightly___override(x_44); +return x_57; } } } else { -lean_object* x_57; lean_object* x_58; -lean_dec_ref(x_6); -x_57 = lean_string_utf8_extract(x_3, x_13, x_5); -lean_dec(x_5); -lean_dec(x_13); -lean_dec_ref(x_3); -x_58 = l_Lake_Date_ofString_x3f(x_57); -lean_dec_ref(x_57); -if (lean_obj_tag(x_58) == 0) -{ -lean_object* x_59; +lean_object* x_58; lean_object* x_59; lean_dec_ref(x_2); -x_59 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_59, 0, x_1); +lean_dec_ref(x_1); +x_58 = lean_ctor_get(x_42, 0); +lean_inc(x_58); +lean_dec_ref(x_42); +x_59 = l_Lake_ToolchainVer_nightly___override(x_58); return x_59; } +} +} +} else { -uint8_t x_60; -x_60 = !lean_is_exclusive(x_58); -if (x_60 == 0) +lean_object* x_60; lean_object* x_61; +x_60 = lean_string_utf8_extract(x_3, x_10, x_7); +lean_dec(x_7); +lean_dec(x_10); +lean_dec_ref(x_3); +x_61 = l_Lake_StdVer_parse(x_60); +lean_dec_ref(x_60); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_61 = lean_ctor_get(x_58, 0); -x_62 = lean_string_utf8_byte_size(x_2); -x_63 = lean_nat_dec_eq(x_62, x_4); -lean_dec(x_62); -if (x_63 == 0) +lean_object* x_62; +lean_dec_ref(x_61); +lean_dec_ref(x_2); +lean_inc_ref(x_1); +x_62 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_62, 0, x_1); +lean_ctor_set(x_62, 1, x_1); +return x_62; +} +else { -lean_object* x_64; uint8_t x_65; +if (x_6 == 0) +{ +lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_63 = lean_ctor_get(x_61, 0); +lean_inc(x_63); +lean_dec_ref(x_61); x_64 = l_Lake_ToolchainVer_defaultOrigin___closed__0; x_65 = lean_string_dec_eq(x_2, x_64); lean_dec_ref(x_2); if (x_65 == 0) { -lean_dec(x_61); -lean_ctor_set_tag(x_58, 3); -lean_ctor_set(x_58, 0, x_1); -return x_58; +lean_object* x_66; +lean_dec(x_63); +lean_inc_ref(x_1); +x_66 = lean_alloc_ctor(3, 2, 0); +lean_ctor_set(x_66, 0, x_1); +lean_ctor_set(x_66, 1, x_1); +return x_66; } else { +lean_object* x_67; lean_dec_ref(x_1); -return x_58; +x_67 = l_Lake_ToolchainVer_release___override(x_63); +return x_67; } } else { +lean_object* x_68; lean_object* x_69; lean_dec_ref(x_2); lean_dec_ref(x_1); -return x_58; -} -} -else -{ -lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_66 = lean_ctor_get(x_58, 0); -lean_inc(x_66); -lean_dec(x_58); -x_67 = lean_string_utf8_byte_size(x_2); -x_68 = lean_nat_dec_eq(x_67, x_4); -lean_dec(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; -x_69 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -x_70 = lean_string_dec_eq(x_2, x_69); -lean_dec_ref(x_2); -if (x_70 == 0) -{ -lean_object* x_71; -lean_dec(x_66); -x_71 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_71, 0, x_1); -return x_71; -} -else -{ -lean_object* x_72; -lean_dec_ref(x_1); -x_72 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_72, 0, x_66); -return x_72; -} -} -else -{ -lean_object* x_73; -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_73 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_73, 0, x_66); -return x_73; -} -} -} -} -} -else -{ -lean_object* x_74; lean_object* x_75; -lean_dec_ref(x_6); -x_74 = lean_string_utf8_extract(x_3, x_8, x_5); -lean_dec(x_5); -lean_dec(x_8); -lean_dec_ref(x_3); -x_75 = l_Lake_StdVer_parse(x_74); -lean_dec_ref(x_74); -if (lean_obj_tag(x_75) == 0) -{ -uint8_t x_76; -lean_dec_ref(x_2); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) -{ -lean_object* x_77; -x_77 = lean_ctor_get(x_75, 0); -lean_dec(x_77); -lean_ctor_set_tag(x_75, 3); -lean_ctor_set(x_75, 0, x_1); -return x_75; -} -else -{ -lean_object* x_78; -lean_dec(x_75); -x_78 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_78, 0, x_1); -return x_78; -} -} -else -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_75); -if (x_79 == 0) -{ -lean_object* x_80; lean_object* x_81; uint8_t x_82; -x_80 = lean_ctor_get(x_75, 0); -x_81 = lean_string_utf8_byte_size(x_2); -x_82 = lean_nat_dec_eq(x_81, x_4); -lean_dec(x_81); -if (x_82 == 0) -{ -lean_object* x_83; uint8_t x_84; -x_83 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -x_84 = lean_string_dec_eq(x_2, x_83); -lean_dec_ref(x_2); -if (x_84 == 0) -{ -lean_dec(x_80); -lean_ctor_set_tag(x_75, 3); -lean_ctor_set(x_75, 0, x_1); -return x_75; -} -else -{ -lean_dec_ref(x_1); -lean_ctor_set_tag(x_75, 0); -return x_75; -} -} -else -{ -lean_dec_ref(x_2); -lean_dec_ref(x_1); -lean_ctor_set_tag(x_75, 0); -return x_75; -} -} -else -{ -lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_85 = lean_ctor_get(x_75, 0); -lean_inc(x_85); -lean_dec(x_75); -x_86 = lean_string_utf8_byte_size(x_2); -x_87 = lean_nat_dec_eq(x_86, x_4); -lean_dec(x_86); -if (x_87 == 0) -{ -lean_object* x_88; uint8_t x_89; -x_88 = l_Lake_ToolchainVer_defaultOrigin___closed__0; -x_89 = lean_string_dec_eq(x_2, x_88); -lean_dec_ref(x_2); -if (x_89 == 0) -{ -lean_object* x_90; -lean_dec(x_85); -x_90 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_90, 0, x_1); -return x_90; -} -else -{ -lean_object* x_91; -lean_dec_ref(x_1); -x_91 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_91, 0, x_85); -return x_91; -} -} -else -{ -lean_object* x_92; -lean_dec_ref(x_2); -lean_dec_ref(x_1); -x_92 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_92, 0, x_85); -return x_92; -} +x_68 = lean_ctor_get(x_61, 0); +lean_inc(x_68); +lean_dec_ref(x_61); +x_69 = l_Lake_ToolchainVer_release___override(x_68); +return x_69; } } } @@ -3803,22 +3894,6 @@ lean_dec_ref(x_1); return x_3; } } -static lean_object* _init_l_Lake_toolchainFileName___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("lean-toolchain", 14, 14); -return x_1; -} -} -static lean_object* _init_l_Lake_toolchainFileName() { -_start: -{ -lean_object* x_1; -x_1 = l_Lake_toolchainFileName___closed__0; -return x_1; -} -} LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ofDir_x3f(lean_object* x_1, lean_object* x_2) { _start: { @@ -3830,116 +3905,51 @@ lean_dec_ref(x_4); return x_5; } } -static lean_object* _init_l_Lake_ToolchainVer_toString___closed__0() { +static lean_object* _init_l_Lake_ToolchainVer_instToString___closed__0() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("leanprover/lean4:v", 18, 18); +x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_toString___override___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lake_ToolchainVer_toString___closed__1() { +static lean_object* _init_l_Lake_ToolchainVer_instToString() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("leanprover/lean4:nightly-", 25, 25); +x_1 = l_Lake_ToolchainVer_instToString___closed__0; return x_1; } } -static lean_object* _init_l_Lake_ToolchainVer_toString___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("leanprover/lean4-pr-releases:pr-release-", 40, 40); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_ToolchainVer_toString(lean_object* x_1) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_2); -lean_dec_ref(x_1); -x_3 = l_Lake_ToolchainVer_toString___closed__0; -x_4 = l_Lake_StdVer_toString(x_2); -x_5 = lean_string_append(x_3, x_4); -lean_dec_ref(x_4); -return x_5; -} -case 1: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_6); -lean_dec_ref(x_1); -x_7 = l_Lake_ToolchainVer_toString___closed__1; -x_8 = l_Lake_Date_toString(x_6); -x_9 = lean_string_append(x_7, x_8); -lean_dec_ref(x_8); -return x_9; -} -case 2: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_1, 0); -lean_inc(x_10); -lean_dec_ref(x_1); -x_11 = l_Lake_ToolchainVer_toString___closed__2; -x_12 = l_Nat_reprFast(x_10); -x_13 = lean_string_append(x_11, x_12); -lean_dec_ref(x_12); -return x_13; -} -default: -{ -lean_object* x_14; -x_14 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_14); -lean_dec_ref(x_1); -return x_14; -} -} -} -} -static lean_object* _init_l_Lake_instToStringToolchainVer___closed__0() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_toString), 1, 0); -return x_1; -} -} -static lean_object* _init_l_Lake_instToStringToolchainVer() { -_start: -{ -lean_object* x_1; -x_1 = l_Lake_instToStringToolchainVer___closed__0; -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lake_instToJsonToolchainVer___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lake_ToolchainVer_toString(x_1); +x_2 = lean_ctor_get(x_1, 0); +lean_inc_ref(x_2); x_3 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_3, 0, x_2); return x_3; } } -static lean_object* _init_l_Lake_instToJsonToolchainVer() { +static lean_object* _init_l_Lake_ToolchainVer_instToJson() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instToJsonToolchainVer___lam__0), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_instToJson___lam__0___boxed), 1, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_instFromJsonToolchainVer___lam__0(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instToJson___lam__0___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lake_ToolchainVer_instToJson___lam__0(x_1); +lean_dec_ref(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_instFromJson___lam__0(lean_object* x_1) { _start: { lean_object* x_2; @@ -3989,94 +3999,15 @@ return x_11; } } } -static lean_object* _init_l_Lake_instFromJsonToolchainVer() { +static lean_object* _init_l_Lake_ToolchainVer_instFromJson() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lake_instFromJsonToolchainVer___lam__0), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lake_ToolchainVer_instFromJson___lam__0), 1, 0); return x_1; } } -static lean_object* _init_l_Lake_instLTToolchainVer() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_lt_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -lean_dec(x_5); -x_6 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_6); -lean_dec_ref(x_1); -x_7 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_7); -lean_dec_ref(x_2); -x_8 = lean_apply_2(x_3, x_6, x_7); -return x_8; -} -else -{ -lean_object* x_9; -lean_dec(x_3); -x_9 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_9; -} -} -case 1: -{ -lean_dec(x_3); -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -lean_dec(x_5); -x_10 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_10); -lean_dec_ref(x_1); -x_11 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_11); -lean_dec_ref(x_2); -x_12 = lean_apply_2(x_4, x_10, x_11); -return x_12; -} -else -{ -lean_object* x_13; -lean_dec(x_4); -x_13 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_13; -} -} -default: -{ -lean_object* x_14; -lean_dec(x_4); -lean_dec(x_3); -x_14 = lean_apply_4(x_5, x_1, x_2, lean_box(0), lean_box(0)); -return x_14; -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_lt_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Lake_Util_Version_0__Lake_ToolchainVer_lt_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6); -return x_7; -} -} -LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLt(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_blt(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -4085,8 +4016,8 @@ case 0: if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_2, 0); +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_2, 1); x_5 = l_Lake_StdVer_compare(x_3, x_4); if (x_5 == 0) { @@ -4113,8 +4044,8 @@ case 1: if (lean_obj_tag(x_2) == 1) { lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_1, 1); +x_10 = lean_ctor_get(x_2, 1); x_11 = l_Lake_instOrdDate_ord(x_9, x_10); if (x_11 == 0) { @@ -4145,6 +4076,33 @@ return x_15; } } } +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_blt___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lake_ToolchainVer_blt(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_ToolchainVer_instLT() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLt(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lake_ToolchainVer_blt(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLt___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -4156,134 +4114,7 @@ x_4 = lean_box(x_3); return x_4; } } -static lean_object* _init_l_Lake_instLEToolchainVer() { -_start: -{ -lean_object* x_1; -x_1 = lean_box(0); -return x_1; -} -} -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_le_match__1_splitter___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -switch (lean_obj_tag(x_1)) { -case 0: -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -lean_dec(x_7); -x_8 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_8); -lean_dec_ref(x_1); -x_9 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_9); -lean_dec_ref(x_2); -x_10 = lean_apply_2(x_3, x_8, x_9); -return x_10; -} -else -{ -lean_object* x_11; -lean_dec(x_3); -x_11 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_11; -} -} -case 1: -{ -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 1) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_7); -x_12 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_12); -lean_dec_ref(x_1); -x_13 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_13); -lean_dec_ref(x_2); -x_14 = lean_apply_2(x_4, x_12, x_13); -return x_14; -} -else -{ -lean_object* x_15; -lean_dec(x_4); -x_15 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_15; -} -} -case 2: -{ -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 2) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_7); -x_16 = lean_ctor_get(x_1, 0); -lean_inc(x_16); -lean_dec_ref(x_1); -x_17 = lean_ctor_get(x_2, 0); -lean_inc(x_17); -lean_dec_ref(x_2); -x_18 = lean_apply_2(x_5, x_16, x_17); -return x_18; -} -else -{ -lean_object* x_19; -lean_dec(x_5); -x_19 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_19; -} -} -default: -{ -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -if (lean_obj_tag(x_2) == 3) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_dec(x_7); -x_20 = lean_ctor_get(x_1, 0); -lean_inc_ref(x_20); -lean_dec_ref(x_1); -x_21 = lean_ctor_get(x_2, 0); -lean_inc_ref(x_21); -lean_dec_ref(x_2); -x_22 = lean_apply_2(x_6, x_20, x_21); -return x_22; -} -else -{ -lean_object* x_23; -lean_dec(x_6); -x_23 = lean_apply_6(x_7, x_1, x_2, lean_box(0), lean_box(0), lean_box(0), lean_box(0)); -return x_23; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lake_Util_Version_0__Lake_ToolchainVer_le_match__1_splitter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l___private_Lake_Util_Version_0__Lake_ToolchainVer_le_match__1_splitter___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_8); -return x_9; -} -} -LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLe(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_ble(lean_object* x_1, lean_object* x_2) { _start: { switch (lean_obj_tag(x_1)) { @@ -4292,8 +4123,8 @@ case 0: if (lean_obj_tag(x_2) == 0) { lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_2, 0); +x_3 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_2, 1); x_5 = l_Lake_StdVer_compare(x_3, x_4); if (x_5 == 2) { @@ -4320,8 +4151,8 @@ case 1: if (lean_obj_tag(x_2) == 1) { lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_1, 0); -x_10 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_1, 1); +x_10 = lean_ctor_get(x_2, 1); x_11 = l_Lake_instOrdDate_ord(x_9, x_10); if (x_11 == 2) { @@ -4348,8 +4179,8 @@ case 2: if (lean_obj_tag(x_2) == 2) { lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_15 = lean_ctor_get(x_1, 0); -x_16 = lean_ctor_get(x_2, 0); +x_15 = lean_ctor_get(x_1, 1); +x_16 = lean_ctor_get(x_2, 1); x_17 = lean_nat_dec_eq(x_15, x_16); return x_17; } @@ -4365,8 +4196,8 @@ default: if (lean_obj_tag(x_2) == 3) { lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_19 = lean_ctor_get(x_1, 0); -x_20 = lean_ctor_get(x_2, 0); +x_19 = lean_ctor_get(x_1, 1); +x_20 = lean_ctor_get(x_2, 1); x_21 = lean_string_dec_eq(x_19, x_20); return x_21; } @@ -4380,6 +4211,33 @@ return x_22; } } } +LEAN_EXPORT lean_object* l_Lake_ToolchainVer_ble___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_Lake_ToolchainVer_ble(x_1, x_2); +lean_dec_ref(x_2); +lean_dec_ref(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +static lean_object* _init_l_Lake_ToolchainVer_instLE() { +_start: +{ +lean_object* x_1; +x_1 = lean_box(0); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lake_ToolchainVer_decLe(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; +x_3 = l_Lake_ToolchainVer_ble(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lake_ToolchainVer_decLe___boxed(lean_object* x_1, lean_object* x_2) { _start: { @@ -4391,6 +4249,17 @@ x_4 = lean_box(x_3); return x_4; } } +LEAN_EXPORT lean_object* l_Lake_normalizeToolchain(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lake_ToolchainVer_ofString(x_1); +x_3 = lean_ctor_get(x_2, 0); +lean_inc_ref(x_3); +lean_dec_ref(x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lake_DecodeVersion_ctorIdx(lean_object* x_1, lean_object* x_2) { _start: { @@ -4611,6 +4480,24 @@ l_Lake_instToJsonStdVer = _init_l_Lake_instToJsonStdVer(); lean_mark_persistent(l_Lake_instToJsonStdVer); l_Lake_instFromJsonStdVer = _init_l_Lake_instFromJsonStdVer(); lean_mark_persistent(l_Lake_instFromJsonStdVer); +l_Lake_toolchainFileName___closed__0 = _init_l_Lake_toolchainFileName___closed__0(); +lean_mark_persistent(l_Lake_toolchainFileName___closed__0); +l_Lake_toolchainFileName = _init_l_Lake_toolchainFileName(); +lean_mark_persistent(l_Lake_toolchainFileName); +l_Lake_ToolchainVer_defaultOrigin___closed__0 = _init_l_Lake_ToolchainVer_defaultOrigin___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin___closed__0); +l_Lake_ToolchainVer_defaultOrigin = _init_l_Lake_ToolchainVer_defaultOrigin(); +lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin); +l_Lake_ToolchainVer_prOrigin___closed__0 = _init_l_Lake_ToolchainVer_prOrigin___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_prOrigin___closed__0); +l_Lake_ToolchainVer_prOrigin = _init_l_Lake_ToolchainVer_prOrigin(); +lean_mark_persistent(l_Lake_ToolchainVer_prOrigin); +l_Lake_ToolchainVer_release___override___closed__0 = _init_l_Lake_ToolchainVer_release___override___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_release___override___closed__0); +l_Lake_ToolchainVer_nightly___override___closed__0 = _init_l_Lake_ToolchainVer_nightly___override___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_nightly___override___closed__0); +l_Lake_ToolchainVer_pr___override___closed__0 = _init_l_Lake_ToolchainVer_pr___override___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_pr___override___closed__0); l_Lake_instReprToolchainVer_repr___closed__0 = _init_l_Lake_instReprToolchainVer_repr___closed__0(); lean_mark_persistent(l_Lake_instReprToolchainVer_repr___closed__0); l_Lake_instReprToolchainVer_repr___closed__1 = _init_l_Lake_instReprToolchainVer_repr___closed__1(); @@ -4643,16 +4530,8 @@ l_Lake_instReprToolchainVer___closed__0 = _init_l_Lake_instReprToolchainVer___cl lean_mark_persistent(l_Lake_instReprToolchainVer___closed__0); l_Lake_instReprToolchainVer = _init_l_Lake_instReprToolchainVer(); lean_mark_persistent(l_Lake_instReprToolchainVer); -l_Lake_instCoeLeanVerToolchainVer = _init_l_Lake_instCoeLeanVerToolchainVer(); -lean_mark_persistent(l_Lake_instCoeLeanVerToolchainVer); -l_Lake_ToolchainVer_defaultOrigin___closed__0 = _init_l_Lake_ToolchainVer_defaultOrigin___closed__0(); -lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin___closed__0); -l_Lake_ToolchainVer_defaultOrigin = _init_l_Lake_ToolchainVer_defaultOrigin(); -lean_mark_persistent(l_Lake_ToolchainVer_defaultOrigin); -l_Lake_ToolchainVer_prOrigin___closed__0 = _init_l_Lake_ToolchainVer_prOrigin___closed__0(); -lean_mark_persistent(l_Lake_ToolchainVer_prOrigin___closed__0); -l_Lake_ToolchainVer_prOrigin = _init_l_Lake_ToolchainVer_prOrigin(); -lean_mark_persistent(l_Lake_ToolchainVer_prOrigin); +l_Lake_ToolchainVer_instCoeLeanVer = _init_l_Lake_ToolchainVer_instCoeLeanVer(); +lean_mark_persistent(l_Lake_ToolchainVer_instCoeLeanVer); l_Lake_ToolchainVer_ofString___closed__0 = _init_l_Lake_ToolchainVer_ofString___closed__0(); lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__0); l_Lake_ToolchainVer_ofString___closed__1 = _init_l_Lake_ToolchainVer_ofString___closed__1(); @@ -4669,30 +4548,18 @@ l_Lake_ToolchainVer_ofString___closed__6 = _init_l_Lake_ToolchainVer_ofString___ lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__6); l_Lake_ToolchainVer_ofString___closed__7 = _init_l_Lake_ToolchainVer_ofString___closed__7(); lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__7); -l_Lake_ToolchainVer_ofString___closed__8 = _init_l_Lake_ToolchainVer_ofString___closed__8(); -lean_mark_persistent(l_Lake_ToolchainVer_ofString___closed__8); -l_Lake_toolchainFileName___closed__0 = _init_l_Lake_toolchainFileName___closed__0(); -lean_mark_persistent(l_Lake_toolchainFileName___closed__0); -l_Lake_toolchainFileName = _init_l_Lake_toolchainFileName(); -lean_mark_persistent(l_Lake_toolchainFileName); -l_Lake_ToolchainVer_toString___closed__0 = _init_l_Lake_ToolchainVer_toString___closed__0(); -lean_mark_persistent(l_Lake_ToolchainVer_toString___closed__0); -l_Lake_ToolchainVer_toString___closed__1 = _init_l_Lake_ToolchainVer_toString___closed__1(); -lean_mark_persistent(l_Lake_ToolchainVer_toString___closed__1); -l_Lake_ToolchainVer_toString___closed__2 = _init_l_Lake_ToolchainVer_toString___closed__2(); -lean_mark_persistent(l_Lake_ToolchainVer_toString___closed__2); -l_Lake_instToStringToolchainVer___closed__0 = _init_l_Lake_instToStringToolchainVer___closed__0(); -lean_mark_persistent(l_Lake_instToStringToolchainVer___closed__0); -l_Lake_instToStringToolchainVer = _init_l_Lake_instToStringToolchainVer(); -lean_mark_persistent(l_Lake_instToStringToolchainVer); -l_Lake_instToJsonToolchainVer = _init_l_Lake_instToJsonToolchainVer(); -lean_mark_persistent(l_Lake_instToJsonToolchainVer); -l_Lake_instFromJsonToolchainVer = _init_l_Lake_instFromJsonToolchainVer(); -lean_mark_persistent(l_Lake_instFromJsonToolchainVer); -l_Lake_instLTToolchainVer = _init_l_Lake_instLTToolchainVer(); -lean_mark_persistent(l_Lake_instLTToolchainVer); -l_Lake_instLEToolchainVer = _init_l_Lake_instLEToolchainVer(); -lean_mark_persistent(l_Lake_instLEToolchainVer); +l_Lake_ToolchainVer_instToString___closed__0 = _init_l_Lake_ToolchainVer_instToString___closed__0(); +lean_mark_persistent(l_Lake_ToolchainVer_instToString___closed__0); +l_Lake_ToolchainVer_instToString = _init_l_Lake_ToolchainVer_instToString(); +lean_mark_persistent(l_Lake_ToolchainVer_instToString); +l_Lake_ToolchainVer_instToJson = _init_l_Lake_ToolchainVer_instToJson(); +lean_mark_persistent(l_Lake_ToolchainVer_instToJson); +l_Lake_ToolchainVer_instFromJson = _init_l_Lake_ToolchainVer_instFromJson(); +lean_mark_persistent(l_Lake_ToolchainVer_instFromJson); +l_Lake_ToolchainVer_instLT = _init_l_Lake_ToolchainVer_instLT(); +lean_mark_persistent(l_Lake_ToolchainVer_instLT); +l_Lake_ToolchainVer_instLE = _init_l_Lake_ToolchainVer_instLE(); +lean_mark_persistent(l_Lake_ToolchainVer_instLE); l_Lake_instDecodeVersionSemVerCore___closed__0 = _init_l_Lake_instDecodeVersionSemVerCore___closed__0(); lean_mark_persistent(l_Lake_instDecodeVersionSemVerCore___closed__0); l_Lake_instDecodeVersionSemVerCore = _init_l_Lake_instDecodeVersionSemVerCore();