diff --git a/stage0/src/Init/Data/Hashable.lean b/stage0/src/Init/Data/Hashable.lean index d58d30ddb3..00dfdc5c1d 100644 --- a/stage0/src/Init/Data/Hashable.lean +++ b/stage0/src/Init/Data/Hashable.lean @@ -25,3 +25,12 @@ instance [Hashable α] : Hashable (Option α) where instance [Hashable α] : Hashable (List α) where hash as := as.foldl (fun r a => mixHash r (hash a)) 7 + +instance : Hashable UInt32 where + hash n := n.toUSize + +instance : Hashable UInt64 where + hash n := n.toUSize + +instance : Hashable USize where + hash n := n diff --git a/stage0/src/Lean/Elab/App.lean b/stage0/src/Lean/Elab/App.lean index 5921f77649..b39dee70e8 100644 --- a/stage0/src/Lean/Elab/App.lean +++ b/stage0/src/Lean/Elab/App.lean @@ -770,8 +770,7 @@ private partial def elabAppFnId (fIdent : Syntax) (fExplicitUnivs : List Level) -- Set `errToSorry` to `false` if `funLVals` > 1. See comment above about the interaction between `errToSorry` and `observing`. withReader (fun ctx => { ctx with errToSorry := funLVals.length == 1 && ctx.errToSorry }) do funLVals.foldlM (init := acc) fun acc (f, fIdent, fields) => do - unless lvals.isEmpty && args.isEmpty && namedArgs.isEmpty && fields.isEmpty do - addTermInfo fIdent f + addTermInfo fIdent f let lvals' := fields.map fun field => LVal.fieldName field field.getId.toString let s ← observing do let e ← elabAppLVals f (lvals' ++ lvals) namedArgs args expectedType? explicit ellipsis diff --git a/stage0/src/Lean/Meta/SizeOf.lean b/stage0/src/Lean/Meta/SizeOf.lean index 3da48b2130..7a48512c4a 100644 --- a/stage0/src/Lean/Meta/SizeOf.lean +++ b/stage0/src/Lean/Meta/SizeOf.lean @@ -32,18 +32,33 @@ where loop (i+1) (insts.push inst) else k insts + +/-- + Return `some x` if `fvar` has type of the form `... -> motive ... fvar` where `motive` in `motiveFVars`. + That is, `x` "produces" one of the recursor motives. +-/ +private def isInductiveHypothesis? (motiveFVars : Array Expr) (fvar : Expr) : MetaM (Option Expr) := do + forallTelescopeReducing (← inferType fvar) fun _ type => + if type.isApp && motiveFVars.contains type.getAppFn then + return some type.appArg! + else + return none + +private def isInductiveHypothesis (motiveFVars : Array Expr) (fvar : Expr) : MetaM Bool := + return (← isInductiveHypothesis? motiveFVars fvar).isSome + /-- Let `motiveFVars` be free variables for each motive in a kernel recursor, and `minorFVars` the free variables for a minor premise. - Then, return `true` is `fvar` (an element of `minorFVars`) corresponds to a recursive field. - That is, there is a free variable `minorFVar` in `minorFVars` with type `... -> motive ... fvar` where `motive` is an element of `motiveFVars`. + Then, return `some idx` if `minorFVars[idx]` has a type of the form `... -> motive ... fvar` for some `motive` in `motiveFVars`. -/ -private def isRecField (motiveFVars : Array Expr) (minorFVars : Array Expr) (fvar : Expr) : MetaM Bool := do +private def isRecField? (motiveFVars : Array Expr) (minorFVars : Array Expr) (fvar : Expr) : MetaM (Option Nat) := do + let mut idx := 0 for minorFVar in minorFVars do - let found ← forallTelescopeReducing (← inferType minorFVar) fun _ type => - return motiveFVars.contains type.getAppFn && type.appArg! == fvar - if found then - return true - return false + if let some fvar' ← isInductiveHypothesis? motiveFVars minorFVar then + if fvar == fvar' then + return some idx + idx := idx + 1 + return none private partial def mkSizeOfMotives {α} (motiveFVars : Array Expr) (k : Array Expr → MetaM α) : MetaM α := loop 0 #[] @@ -68,22 +83,11 @@ where forallBoundedTelescope (← inferType minorFVars'[i]) xs.size fun xs' _ => do let mut minor ← mkNumeral (mkConst ``Nat) 1 for x in xs, x' in xs' do - -- If `x` is a recursive field, we skip it since we use the inductive hypothesis occurring later - unless (← isRecField motiveFVars xs x) do - let xType ← inferType x - minor ← forallTelescopeReducing xType fun ys xTypeResult => do - if motiveFVars.contains xTypeResult.getAppFn then - -- `x` is an inductive hypothesis - if ys.size > 0 then - -- ignore `x` because it is a function - return minor - else - mkAdd minor x' - else - try - mkAdd minor (← mkAppM ``SizeOf.sizeOf #[x']) - catch _ => - return minor + unless (← isInductiveHypothesis motiveFVars x) do + unless (← whnf (← inferType x)).isForall do -- we suppress higher-order fields + match (← isRecField? motiveFVars xs x) with + | some idx => minor ← mkAdd minor xs'[idx] + | none => minor ← mkAdd minor (← mkAppM ``SizeOf.sizeOf #[x']) minor ← mkLambdaFVars xs' minor trace[Meta.sizeOf]! "minor: {minor}" loop (i+1) (minors.push minor) @@ -150,12 +154,53 @@ def mkSizeOfFns (typeName : Name) : MetaM (Array Name) := do i := i + 1 return result +private def mkSizeOfSpecTheorem (indInfo : InductiveVal) (sizeOfFns : Array Name) (ctorName : Name) : MetaM Unit := do + let ctorInfo ← getConstInfoCtor ctorName + let us := ctorInfo.levelParams.map mkLevelParam + forallTelescopeReducing ctorInfo.type fun xs _ => do + let params := xs[:ctorInfo.numParams] + let fields := xs[ctorInfo.numParams:] + let ctorApp := mkAppN (mkConst ctorName us) xs + mkLocalInstances params fun localInsts => do + let lhs ← mkAppM ``SizeOf.sizeOf #[ctorApp] + let mut rhs ← mkNumeral (mkConst ``Nat) 1 + for field in fields do + unless (← whnf (← inferType field)).isForall do + rhs ← mkAdd rhs (← mkAppM ``SizeOf.sizeOf #[field]) + let target ← mkEq lhs rhs + let thmName := ctorName ++ `sizeOf_spec + let thmParams := params ++ localInsts ++ fields + let thmType ← mkForallFVars thmParams target + let thmValue ← + if indInfo.isNested then + return () -- TODO + else + mkEqRefl rhs + let thmValue ← mkLambdaFVars thmParams thmValue + addDecl <| Declaration.thmDecl { + name := thmName + levelParams := ctorInfo.levelParams + type := thmType + value := thmValue + } + +private def mkSizeOfSpecTheorems (indTypeNames : Array Name) (sizeOfFns : Array Name) : MetaM Unit := do + for indTypeName in indTypeNames do + let indInfo ← getConstInfoInduct indTypeName + for ctorName in indInfo.ctors do + mkSizeOfSpecTheorem indInfo sizeOfFns ctorName + return () + builtin_initialize registerOption `genSizeOf { defValue := true, group := "", descr := "generate `SizeOf` instance for inductive types and structures" } + registerOption `genSizeOfSpec { defValue := true, group := "", descr := "generate `SizeOf` specificiation theorems for automatically generated instances" } def generateSizeOfInstance (opts : Options) : Bool := opts.get `genSizeOf true +def generateSizeOfSpec (opts : Options) : Bool := + opts.get `genSizeOfSpec true + def mkSizeOfInstances (typeName : Name) : MetaM Unit := do if (← getEnv).contains ``SizeOf && generateSizeOfInstance (← getOptions) && !(← isInductivePredicate typeName) then let indInfo ← getConstInfoInduct typeName @@ -185,6 +230,8 @@ def mkSizeOfInstances (typeName : Name) : MetaM Unit := do hints := ReducibilityHints.abbrev } addInstance instDeclName AttributeKind.global (evalPrio! default) + if generateSizeOfSpec (← getOptions) then + mkSizeOfSpecTheorems indInfo.all.toArray fns builtin_initialize registerTraceClass `Meta.sizeOf diff --git a/stage0/src/Lean/Server/FileWorker.lean b/stage0/src/Lean/Server/FileWorker.lean index 8f1f87a304..0635a7880a 100644 --- a/stage0/src/Lean/Server/FileWorker.lean +++ b/stage0/src/Lean/Server/FileWorker.lean @@ -204,9 +204,9 @@ section Initialization let leanpkgPath ← match ← IO.getEnv "LEAN_SYSROOT" with | some path => s!"{path}/bin/leanpkg{System.FilePath.exeSuffix}" | _ => s!"{← appDir}/leanpkg{System.FilePath.exeSuffix}" - let mut srcSearchPath := match (← IO.getEnv "LEAN_SRC_PATH") with - | some p => parseSearchPath p - | none => [] + let mut srcSearchPath := [s!"{← appDir}/../lib/lean/src"] + if let some p := (← IO.getEnv "LEAN_SRC_PATH") then + srcSearchPath := srcSearchPath ++ parseSearchPath p -- NOTE: leanpkg does not exist in stage 0 (yet?) if (← fileExists leanpkgPath) then let pkgSearchPath ← leanpkgSetupSearchPath leanpkgPath m (Lean.Elab.headerToImports headerStx).toArray hOut @@ -405,15 +405,14 @@ section RequestHandling (notFoundX := pure #[]) fun snap => do for t in snap.toCmdState.infoState.trees do if let some (ci, i) := t.hoverableTermAt? hoverPos then - let expr := if goToType? then ← ci.runMetaM i.lctx <| Meta.inferType i.expr - else i.expr + let expr ← if goToType? then ci.runMetaM i.lctx <| Meta.inferType i.expr else i.expr if let some n := expr.constName? then let mod? ← ci.runMetaM i.lctx <| findModuleOf? n let modUri? ← match mod? with - | some modName => - let modFname? ← st.srcSearchPath.findWithExt ".lean" modName - pure <| modFname?.map ("file://" ++ ·) - | none => pure <| some doc.meta.uri + | some modName => + let modFname? ← st.srcSearchPath.findWithExt ".lean" modName + pure <| modFname?.map ("file://" ++ ·) + | none => pure <| some doc.meta.uri let ranges? ← ci.runMetaM i.lctx <| findDeclarationRanges? n diff --git a/stage0/src/Lean/Server/Watchdog.lean b/stage0/src/Lean/Server/Watchdog.lean index 6f6c8b3c61..ff5c13850f 100644 --- a/stage0/src/Lean/Server/Watchdog.lean +++ b/stage0/src/Lean/Server/Watchdog.lean @@ -213,8 +213,7 @@ section ServerM let workerProc ← Process.spawn { toStdioConfig := workerCfg cmd := st.workerPath - -- append file and imports for Nix support; ignored otherwise - args := #["--worker"] ++ (Lean.Elab.headerToImports headerAst).toArray.map (toString ·.module) ++ st.args.toArray + args := #["--worker"] ++ st.args.toArray } let pendingRequestsRef ← IO.mkRef (RBMap.empty : PendingRequestMap) -- The task will never access itself, so this is fine diff --git a/stage0/stdlib/Init/Data/Hashable.c b/stage0/stdlib/Init/Data/Hashable.c index ff38d20aa4..06a287b4af 100644 --- a/stage0/stdlib/Init/Data/Hashable.c +++ b/stage0/stdlib/Init/Data/Hashable.c @@ -14,18 +14,25 @@ extern "C" { #endif lean_object* l_instHashableProd_match__1(lean_object*, lean_object*, lean_object*); +size_t l_UInt32_toUSize(uint32_t); size_t l_instHashableProd___rarg(lean_object*, lean_object*, lean_object*); +size_t l_instHashableUSize(size_t); lean_object* l_instHashableList(lean_object*); +lean_object* l_instHashableUSize___boxed(lean_object*); lean_object* l_List_foldl___at_instHashableList___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); size_t l_Option_hash___rarg(lean_object*, lean_object*); lean_object* l_instHashableOption(lean_object*); lean_object* l_Option_hash_match__1(lean_object*, lean_object*); +size_t l_UInt64_toUSize(uint64_t); lean_object* l_List_foldl___at_instHashableList___spec__1(lean_object*); +lean_object* l_instHashableUInt64___boxed(lean_object*); lean_object* l_instHashableProd(lean_object*, lean_object*); lean_object* l_Option_hash___rarg___boxed(lean_object*, lean_object*); lean_object* l_instHashableOption_match__1(lean_object*, lean_object*); +size_t l_instHashableUInt64(uint64_t); lean_object* l_instHashableList___rarg___boxed(lean_object*, lean_object*); lean_object* l_Option_hash_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_instHashableUInt32___boxed(lean_object*); size_t lean_usize_of_nat(lean_object*); size_t l_instHashableNat(lean_object*); size_t l_instHashableList___rarg(lean_object*, lean_object*); @@ -36,6 +43,7 @@ lean_object* l_instHashableNat___boxed(lean_object*); size_t lean_usize_mix_hash(size_t, size_t); size_t l_instHashableOption___rarg(lean_object*, lean_object*); lean_object* l_instHashableProd_match__1___rarg(lean_object*, lean_object*); +size_t l_instHashableUInt32(uint32_t); lean_object* l_Option_hash(lean_object*); size_t l_List_foldl___at_instHashableList___spec__1___rarg(lean_object*, size_t, lean_object*); size_t l_instHashableNat(lean_object* x_1) { @@ -331,6 +339,61 @@ x_4 = lean_box_usize(x_3); return x_4; } } +size_t l_instHashableUInt32(uint32_t x_1) { +_start: +{ +size_t x_2; +x_2 = x_1; +return x_2; +} +} +lean_object* l_instHashableUInt32___boxed(lean_object* x_1) { +_start: +{ +uint32_t x_2; size_t x_3; lean_object* x_4; +x_2 = lean_unbox_uint32(x_1); +lean_dec(x_1); +x_3 = l_instHashableUInt32(x_2); +x_4 = lean_box_usize(x_3); +return x_4; +} +} +size_t l_instHashableUInt64(uint64_t x_1) { +_start: +{ +size_t x_2; +x_2 = ((size_t)x_1); +return x_2; +} +} +lean_object* l_instHashableUInt64___boxed(lean_object* x_1) { +_start: +{ +uint64_t x_2; size_t x_3; lean_object* x_4; +x_2 = lean_unbox_uint64(x_1); +lean_dec(x_1); +x_3 = l_instHashableUInt64(x_2); +x_4 = lean_box_usize(x_3); +return x_4; +} +} +size_t l_instHashableUSize(size_t x_1) { +_start: +{ +return x_1; +} +} +lean_object* l_instHashableUSize___boxed(lean_object* x_1) { +_start: +{ +size_t x_2; size_t x_3; lean_object* x_4; +x_2 = lean_unbox_usize(x_1); +lean_dec(x_1); +x_3 = l_instHashableUSize(x_2); +x_4 = lean_box_usize(x_3); +return x_4; +} +} lean_object* initialize_Init_Data_UInt(lean_object*); lean_object* initialize_Init_Data_String(lean_object*); static bool _G_initialized = false; diff --git a/stage0/stdlib/Lean/Elab/App.c b/stage0/stdlib/Lean/Elab/App.c index 77366fdd3c..31d8ba3a94 100644 --- a/stage0/stdlib/Lean/Elab/App.c +++ b/stage0/stdlib/Lean/Elab/App.c @@ -284,7 +284,6 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___lambda__1___closed__2; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFn___closed__3; -lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1___boxed(lean_object**); lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_processExplictArg___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -610,7 +609,7 @@ lean_object* l_Lean_Elab_getRefPos___at___private_Lean_Elab_App_0__Lean_Elab_Ter lean_object* l___regBuiltin_Lean_Elab_Term_elabChoice___closed__1; lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_finalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_getForallBody___lambda__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9009_(lean_object*); +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_8972_(lean_object*); lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_4_(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux(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_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_propagateExpectedTypeFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -636,7 +635,6 @@ lean_object* l_Lean_Elab_Term_instInhabitedNamedArg; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__3; lean_object* l_Lean_Elab_Term_ElabAppArgs_synthesizeAppInstMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at___private_Lean_Elab_App_0__Lean_Elab_Term_ElabAppArgs_synthesizePendingAndNormalizeFunType___spec__9___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_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); lean_object* l___private_Lean_Elab_App_0__Lean_Elab_Term_resolveLValAux___closed__9; lean_object* l_Lean_Elab_Term_addNamedArg___closed__1; @@ -24095,417 +24093,6 @@ return x_18; } } } -lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__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, uint8_t x_8, uint8_t x_9, uint8_t 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) { -_start: -{ -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_57; -x_19 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_1); -x_20 = l_List_append___rarg(x_19, x_2); -x_21 = l_Lean_Elab_Term_saveAllState___rarg(x_13, x_14, x_15, x_16, x_17, x_18); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -if (lean_is_exclusive(x_21)) { - lean_ctor_release(x_21, 0); - lean_ctor_release(x_21, 1); - x_24 = x_21; -} else { - lean_dec_ref(x_21); - x_24 = lean_box(0); -} -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_7); -x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_4, x_20, x_5, x_6, x_7, x_8, x_9, x_12, x_13, x_14, x_15, x_16, x_17, x_23); -if (lean_obj_tag(x_57) == 0) -{ -if (x_10 == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_dec(x_24); -lean_dec(x_7); -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -x_60 = l_Lean_Elab_Term_saveAllState___rarg(x_13, x_14, x_15, x_16, x_17, x_59); -x_61 = !lean_is_exclusive(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; -x_62 = lean_ctor_get(x_60, 0); -x_63 = lean_ctor_get(x_60, 1); -x_64 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_63); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_65 = !lean_is_exclusive(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_66 = lean_ctor_get(x_64, 1); -x_67 = lean_ctor_get(x_64, 0); -lean_dec(x_67); -lean_ctor_set(x_64, 1, x_62); -lean_ctor_set(x_64, 0, x_58); -x_68 = lean_array_push(x_3, x_64); -lean_ctor_set(x_60, 1, x_66); -lean_ctor_set(x_60, 0, x_68); -return x_60; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_64, 1); -lean_inc(x_69); -lean_dec(x_64); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_58); -lean_ctor_set(x_70, 1, x_62); -x_71 = lean_array_push(x_3, x_70); -lean_ctor_set(x_60, 1, x_69); -lean_ctor_set(x_60, 0, x_71); -return x_60; -} -} -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; -x_72 = lean_ctor_get(x_60, 0); -x_73 = lean_ctor_get(x_60, 1); -lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_60); -x_74 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_73); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_75 = lean_ctor_get(x_74, 1); -lean_inc(x_75); -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_74); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(0, 2, 0); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_58); -lean_ctor_set(x_77, 1, x_72); -x_78 = lean_array_push(x_3, 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_75); -return x_79; -} -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_80 = lean_ctor_get(x_57, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_57, 1); -lean_inc(x_81); -lean_dec(x_57); -x_82 = lean_box(0); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -x_83 = l_Lean_Elab_Term_ensureHasType(x_7, x_80, x_82, x_12, x_13, x_14, x_15, x_16, x_17, x_81); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -lean_dec(x_24); -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(x_83); -x_86 = l_Lean_Elab_Term_saveAllState___rarg(x_13, x_14, x_15, x_16, x_17, x_85); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -x_90 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_89); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_91 = !lean_is_exclusive(x_90); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_90, 1); -x_93 = lean_ctor_get(x_90, 0); -lean_dec(x_93); -lean_ctor_set(x_90, 1, x_88); -lean_ctor_set(x_90, 0, x_84); -x_94 = lean_array_push(x_3, x_90); -lean_ctor_set(x_86, 1, x_92); -lean_ctor_set(x_86, 0, x_94); -return x_86; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_90, 1); -lean_inc(x_95); -lean_dec(x_90); -x_96 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_96, 0, x_84); -lean_ctor_set(x_96, 1, x_88); -x_97 = lean_array_push(x_3, x_96); -lean_ctor_set(x_86, 1, x_95); -lean_ctor_set(x_86, 0, x_97); -return x_86; -} -} -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_object* x_105; -x_98 = lean_ctor_get(x_86, 0); -x_99 = lean_ctor_get(x_86, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_86); -x_100 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_99); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_102 = x_100; -} else { - lean_dec_ref(x_100); - x_102 = lean_box(0); -} -if (lean_is_scalar(x_102)) { - x_103 = lean_alloc_ctor(0, 2, 0); -} else { - x_103 = x_102; -} -lean_ctor_set(x_103, 0, x_84); -lean_ctor_set(x_103, 1, x_98); -x_104 = lean_array_push(x_3, x_103); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_101); -return x_105; -} -} -else -{ -lean_object* x_106; lean_object* x_107; -x_106 = lean_ctor_get(x_83, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_83, 1); -lean_inc(x_107); -lean_dec(x_83); -x_25 = x_106; -x_26 = x_107; -goto block_56; -} -} -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_7); -x_108 = lean_ctor_get(x_57, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_57, 1); -lean_inc(x_109); -lean_dec(x_57); -x_25 = x_108; -x_26 = x_109; -goto block_56; -} -block_56: -{ -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_27; uint8_t x_28; -lean_dec(x_24); -x_27 = l_Lean_Elab_Term_saveAllState___rarg(x_13, x_14, x_15, x_16, x_17, x_26); -x_28 = !lean_is_exclusive(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = lean_ctor_get(x_27, 0); -x_30 = lean_ctor_get(x_27, 1); -x_31 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_30); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_32 = !lean_is_exclusive(x_31); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_31, 1); -x_34 = lean_ctor_get(x_31, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_31, 1); -lean_ctor_set(x_31, 1, x_29); -lean_ctor_set(x_31, 0, x_25); -x_35 = lean_array_push(x_3, x_31); -lean_ctor_set(x_27, 1, x_33); -lean_ctor_set(x_27, 0, x_35); -return x_27; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_31, 1); -lean_inc(x_36); -lean_dec(x_31); -x_37 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_37, 0, x_25); -lean_ctor_set(x_37, 1, x_29); -x_38 = lean_array_push(x_3, x_37); -lean_ctor_set(x_27, 1, x_36); -lean_ctor_set(x_27, 0, x_38); -return x_27; -} -} -else -{ -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; -x_39 = lean_ctor_get(x_27, 0); -x_40 = lean_ctor_get(x_27, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_27); -x_41 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_40); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_42 = lean_ctor_get(x_41, 1); -lean_inc(x_42); -if (lean_is_exclusive(x_41)) { - lean_ctor_release(x_41, 0); - lean_ctor_release(x_41, 1); - x_43 = x_41; -} else { - lean_dec_ref(x_41); - x_43 = lean_box(0); -} -if (lean_is_scalar(x_43)) { - x_44 = lean_alloc_ctor(1, 2, 0); -} else { - x_44 = x_43; - lean_ctor_set_tag(x_44, 1); -} -lean_ctor_set(x_44, 0, x_25); -lean_ctor_set(x_44, 1, x_39); -x_45 = lean_array_push(x_3, x_44); -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; uint8_t x_49; -lean_dec(x_3); -x_47 = lean_ctor_get(x_25, 0); -lean_inc(x_47); -x_48 = l_Lean_Elab_postponeExceptionId; -x_49 = lean_nat_dec_eq(x_47, x_48); -lean_dec(x_47); -if (x_49 == 0) -{ -lean_object* x_50; -lean_dec(x_22); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -if (lean_is_scalar(x_24)) { - x_50 = lean_alloc_ctor(1, 2, 0); -} else { - x_50 = x_24; - lean_ctor_set_tag(x_50, 1); -} -lean_ctor_set(x_50, 0, x_25); -lean_ctor_set(x_50, 1, x_26); -return x_50; -} -else -{ -lean_object* x_51; uint8_t x_52; -lean_dec(x_24); -x_51 = l_Lean_Elab_Term_SavedState_restore(x_22, x_12, x_13, x_14, x_15, x_16, x_17, x_26); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -x_52 = !lean_is_exclusive(x_51); -if (x_52 == 0) -{ -lean_object* x_53; -x_53 = lean_ctor_get(x_51, 0); -lean_dec(x_53); -lean_ctor_set_tag(x_51, 1); -lean_ctor_set(x_51, 0, x_25); -return x_51; -} -else -{ -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_51, 1); -lean_inc(x_54); -lean_dec(x_51); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_25); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -} -} lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t 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, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) { _start: { @@ -24529,7 +24116,7 @@ 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; uint8_t x_24; +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_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_57; x_18 = lean_ctor_get(x_9, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_18, 1); @@ -24545,90 +24132,27 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_19, 1); lean_inc(x_23); lean_dec(x_19); -x_24 = l_List_isEmpty___rarg(x_1); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_inc(x_21); -x_25 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); +x_24 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_23); lean_inc(x_1); -x_28 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_10, x_11, x_12, x_13, x_14, x_15, x_27); -lean_dec(x_26); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; +x_27 = l_List_append___rarg(x_26, x_1); +x_28 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_25); 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(x_28); -x_8 = x_29; -x_9 = x_20; -x_16 = x_30; -goto _start; +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_31 = x_28; +} else { + lean_dec_ref(x_28); + x_31 = lean_box(0); } -else -{ -uint8_t x_32; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) -{ -return x_28; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 0); -x_34 = lean_ctor_get(x_28, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_28); -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; -} -} -} -else -{ -uint8_t x_36; -x_36 = l_Array_isEmpty___rarg(x_3); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_inc(x_21); -x_37 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -24638,207 +24162,65 @@ lean_inc(x_10); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_1); -x_40 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_10, x_11, x_12, x_13, x_14, x_15, x_39); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_21, x_27, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_12, x_13, x_14, x_15, x_30); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_8 = x_41; -x_9 = x_20; -x_16 = x_42; -goto _start; -} -else +if (x_7 == 0) { -uint8_t x_44; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) -{ -return x_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_40, 0); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_40); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; -x_48 = l_Array_isEmpty___rarg(x_2); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_inc(x_21); -x_49 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -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(x_49); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_52 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_50, x_10, x_11, x_12, x_13, x_14, x_15, x_51); -lean_dec(x_50); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_8 = x_53; -x_9 = x_20; -x_16 = x_54; -goto _start; -} -else -{ -uint8_t x_56; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) -{ -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_31); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -uint8_t x_60; -x_60 = l_List_isEmpty___rarg(x_23); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_inc(x_21); -x_61 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_62 = lean_ctor_get(x_61, 0); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_64 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_62, x_10, x_11, x_12, x_13, x_14, x_15, x_63); -lean_dec(x_62); -if (lean_obj_tag(x_64) == 0) +lean_dec(x_60); +x_63 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +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_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_8 = x_65; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 1); +x_66 = lean_ctor_get(x_63, 0); +lean_dec(x_66); +lean_ctor_set(x_63, 1, x_61); +lean_ctor_set(x_63, 0, x_58); +x_67 = lean_array_push(x_8, x_63); +x_8 = x_67; x_9 = x_20; -x_16 = x_66; +x_16 = x_65; goto _start; } else { -uint8_t x_68; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_68 = !lean_is_exclusive(x_64); -if (x_68 == 0) -{ -return x_64; -} -else -{ lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_64, 0); -x_70 = lean_ctor_get(x_64, 1); -lean_inc(x_70); +x_69 = lean_ctor_get(x_63, 1); lean_inc(x_69); -lean_dec(x_64); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} +lean_dec(x_63); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_61); +x_71 = lean_array_push(x_8, x_70); +x_8 = x_71; +x_9 = x_20; +x_16 = x_69; +goto _start; } } else { -lean_object* x_72; lean_object* x_73; -lean_dec(x_22); -x_72 = lean_box(0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_57, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_57, 1); +lean_inc(x_74); +lean_dec(x_57); +x_75 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -24846,56 +24228,190 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_73 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_73) == 0) +x_76 = l_Lean_Elab_Term_ensureHasType(x_4, x_73, x_75, x_10, x_11, x_12, x_13, x_14, x_15, x_74); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_8 = x_74; +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; +lean_dec(x_31); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_78); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_81); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 1); +x_85 = lean_ctor_get(x_82, 0); +lean_dec(x_85); +lean_ctor_set(x_82, 1, x_80); +lean_ctor_set(x_82, 0, x_77); +x_86 = lean_array_push(x_8, x_82); +x_8 = x_86; x_9 = x_20; -x_16 = x_75; +x_16 = x_84; goto _start; } else { -uint8_t x_77; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_dec(x_82); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_77); +lean_ctor_set(x_89, 1, x_80); +x_90 = lean_array_push(x_8, x_89); +x_8 = x_90; +x_9 = x_20; +x_16 = x_88; +goto _start; +} +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_76, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_76, 1); +lean_inc(x_93); +lean_dec(x_76); +x_32 = x_92; +x_33 = x_93; +goto block_56; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_57, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_57, 1); +lean_inc(x_95); +lean_dec(x_57); +x_32 = x_94; +x_33 = x_95; +goto block_56; +} +block_56: +{ +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_36); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 1); +x_40 = lean_ctor_get(x_37, 0); +lean_dec(x_40); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_37, 0, x_32); +x_41 = lean_array_push(x_8, x_37); +x_8 = x_41; +x_9 = x_20; +x_16 = x_39; +goto _start; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +lean_dec(x_37); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_32); +lean_ctor_set(x_44, 1, x_35); +x_45 = lean_array_push(x_8, x_44); +x_8 = x_45; +x_9 = x_20; +x_16 = x_43; +goto _start; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_dec(x_20); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_47 = lean_ctor_get(x_32, 0); +lean_inc(x_47); +x_48 = l_Lean_Elab_postponeExceptionId; +x_49 = lean_nat_dec_eq(x_47, x_48); +lean_dec(x_47); +if (x_49 == 0) +{ +lean_object* x_50; +lean_dec(x_29); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_77 = !lean_is_exclusive(x_73); -if (x_77 == 0) -{ -return x_73; +if (lean_is_scalar(x_31)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_31; + lean_ctor_set_tag(x_50, 1); +} +lean_ctor_set(x_50, 0, x_32); +lean_ctor_set(x_50, 1, x_33); +return x_50; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_73, 0); -x_79 = lean_ctor_get(x_73, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_73); -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; -} +lean_object* x_51; uint8_t x_52; +lean_dec(x_31); +x_51 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_33); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set_tag(x_51, 1); +lean_ctor_set(x_51, 0, x_32); +return x_51; } +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_32); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } @@ -24926,7 +24442,7 @@ 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; uint8_t x_24; +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_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_57; x_18 = lean_ctor_get(x_9, 0); lean_inc(x_18); x_19 = lean_ctor_get(x_18, 1); @@ -24942,90 +24458,27 @@ lean_inc(x_22); x_23 = lean_ctor_get(x_19, 1); lean_inc(x_23); lean_dec(x_19); -x_24 = l_List_isEmpty___rarg(x_1); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_inc(x_21); -x_25 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); +x_24 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); +x_26 = l_List_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__1(x_23); lean_inc(x_1); -x_28 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_26, x_10, x_11, x_12, x_13, x_14, x_15, x_27); -lean_dec(x_26); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; +x_27 = l_List_append___rarg(x_26, x_1); +x_28 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_25); 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(x_28); -x_8 = x_29; -x_9 = x_20; -x_16 = x_30; -goto _start; +if (lean_is_exclusive(x_28)) { + lean_ctor_release(x_28, 0); + lean_ctor_release(x_28, 1); + x_31 = x_28; +} else { + lean_dec_ref(x_28); + x_31 = lean_box(0); } -else -{ -uint8_t x_32; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_32 = !lean_is_exclusive(x_28); -if (x_32 == 0) -{ -return x_28; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_28, 0); -x_34 = lean_ctor_get(x_28, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_28); -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; -} -} -} -else -{ -uint8_t x_36; -x_36 = l_Array_isEmpty___rarg(x_3); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_inc(x_21); -x_37 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -25035,207 +24488,65 @@ lean_inc(x_10); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -lean_inc(x_1); -x_40 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_38, x_10, x_11, x_12, x_13, x_14, x_15, x_39); -lean_dec(x_38); -if (lean_obj_tag(x_40) == 0) +x_57 = l___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppLVals(x_21, x_27, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_12, x_13, x_14, x_15, x_30); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_41; lean_object* x_42; -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -x_8 = x_41; -x_9 = x_20; -x_16 = x_42; -goto _start; -} -else +if (x_7 == 0) { -uint8_t x_44; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_44 = !lean_is_exclusive(x_40); -if (x_44 == 0) -{ -return x_40; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_40, 0); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_40); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; -x_48 = l_Array_isEmpty___rarg(x_2); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_inc(x_21); -x_49 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -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(x_49); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_52 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_50, x_10, x_11, x_12, x_13, x_14, x_15, x_51); -lean_dec(x_50); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -lean_dec(x_52); -x_8 = x_53; -x_9 = x_20; -x_16 = x_54; -goto _start; -} -else -{ -uint8_t x_56; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_56 = !lean_is_exclusive(x_52); -if (x_56 == 0) -{ -return x_52; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_52, 0); -x_58 = lean_ctor_get(x_52, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +lean_dec(x_31); +x_58 = lean_ctor_get(x_57, 0); lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_52); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -uint8_t x_60; -x_60 = l_List_isEmpty___rarg(x_23); -if (x_60 == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; -lean_inc(x_21); -x_61 = l_Lean_Elab_Term_addTermInfo(x_22, x_21, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -x_62 = lean_ctor_get(x_61, 0); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); -lean_inc(x_63); -lean_dec(x_61); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_64 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_62, x_10, x_11, x_12, x_13, x_14, x_15, x_63); -lean_dec(x_62); -if (lean_obj_tag(x_64) == 0) +lean_dec(x_60); +x_63 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_62); +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_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -x_8 = x_65; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_63, 1); +x_66 = lean_ctor_get(x_63, 0); +lean_dec(x_66); +lean_ctor_set(x_63, 1, x_61); +lean_ctor_set(x_63, 0, x_58); +x_67 = lean_array_push(x_8, x_63); +x_8 = x_67; x_9 = x_20; -x_16 = x_66; +x_16 = x_65; goto _start; } else { -uint8_t x_68; -lean_dec(x_20); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_68 = !lean_is_exclusive(x_64); -if (x_68 == 0) -{ -return x_64; -} -else -{ lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_64, 0); -x_70 = lean_ctor_get(x_64, 1); -lean_inc(x_70); +x_69 = lean_ctor_get(x_63, 1); lean_inc(x_69); -lean_dec(x_64); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} +lean_dec(x_63); +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_58); +lean_ctor_set(x_70, 1, x_61); +x_71 = lean_array_push(x_8, x_70); +x_8 = x_71; +x_9 = x_20; +x_16 = x_69; +goto _start; } } else { -lean_object* x_72; lean_object* x_73; -lean_dec(x_22); -x_72 = lean_box(0); +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_73 = lean_ctor_get(x_57, 0); +lean_inc(x_73); +x_74 = lean_ctor_get(x_57, 1); +lean_inc(x_74); +lean_dec(x_57); +x_75 = lean_box(0); lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); @@ -25243,56 +24554,190 @@ lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_73 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_23, x_1, x_8, x_21, x_2, x_3, x_4, x_5, x_6, x_7, x_72, x_10, x_11, x_12, x_13, x_14, x_15, x_16); -if (lean_obj_tag(x_73) == 0) +x_76 = l_Lean_Elab_Term_ensureHasType(x_4, x_73, x_75, x_10, x_11, x_12, x_13, x_14, x_15, x_74); +if (lean_obj_tag(x_76) == 0) { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_8 = x_74; +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; +lean_dec(x_31); +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +x_79 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_78); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_82 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_81); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 1); +x_85 = lean_ctor_get(x_82, 0); +lean_dec(x_85); +lean_ctor_set(x_82, 1, x_80); +lean_ctor_set(x_82, 0, x_77); +x_86 = lean_array_push(x_8, x_82); +x_8 = x_86; x_9 = x_20; -x_16 = x_75; +x_16 = x_84; goto _start; } else { -uint8_t x_77; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 1); +lean_inc(x_88); +lean_dec(x_82); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_77); +lean_ctor_set(x_89, 1, x_80); +x_90 = lean_array_push(x_8, x_89); +x_8 = x_90; +x_9 = x_20; +x_16 = x_88; +goto _start; +} +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_76, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_76, 1); +lean_inc(x_93); +lean_dec(x_76); +x_32 = x_92; +x_33 = x_93; +goto block_56; +} +} +} +else +{ +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_57, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_57, 1); +lean_inc(x_95); +lean_dec(x_57); +x_32 = x_94; +x_33 = x_95; +goto block_56; +} +block_56: +{ +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_saveAllState___rarg(x_11, x_12, x_13, x_14, x_15, x_33); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_36); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_37, 1); +x_40 = lean_ctor_get(x_37, 0); +lean_dec(x_40); +lean_ctor_set_tag(x_37, 1); +lean_ctor_set(x_37, 1, x_35); +lean_ctor_set(x_37, 0, x_32); +x_41 = lean_array_push(x_8, x_37); +x_8 = x_41; +x_9 = x_20; +x_16 = x_39; +goto _start; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_37, 1); +lean_inc(x_43); +lean_dec(x_37); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_32); +lean_ctor_set(x_44, 1, x_35); +x_45 = lean_array_push(x_8, x_44); +x_8 = x_45; +x_9 = x_20; +x_16 = x_43; +goto _start; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; lean_dec(x_20); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_47 = lean_ctor_get(x_32, 0); +lean_inc(x_47); +x_48 = l_Lean_Elab_postponeExceptionId; +x_49 = lean_nat_dec_eq(x_47, x_48); +lean_dec(x_47); +if (x_49 == 0) +{ +lean_object* x_50; +lean_dec(x_29); lean_dec(x_15); lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_77 = !lean_is_exclusive(x_73); -if (x_77 == 0) -{ -return x_73; +if (lean_is_scalar(x_31)) { + x_50 = lean_alloc_ctor(1, 2, 0); +} else { + x_50 = x_31; + lean_ctor_set_tag(x_50, 1); +} +lean_ctor_set(x_50, 0, x_32); +lean_ctor_set(x_50, 1, x_33); +return x_50; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_73, 0); -x_79 = lean_ctor_get(x_73, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_73); -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; -} +lean_object* x_51; uint8_t x_52; +lean_dec(x_31); +x_51 = l_Lean_Elab_Term_SavedState_restore(x_29, x_10, x_11, x_12, x_13, x_14, x_15, x_33); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +x_52 = !lean_is_exclusive(x_51); +if (x_52 == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_51, 0); +lean_dec(x_53); +lean_ctor_set_tag(x_51, 1); +lean_ctor_set(x_51, 0, x_32); +return x_51; } +else +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_51, 1); +lean_inc(x_54); +lean_dec(x_51); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_32); +lean_ctor_set(x_55, 1, x_54); +return x_55; } } } @@ -25493,39 +24938,6 @@ return x_71; } } } -lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1___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]; -lean_object* x_18 = _args[17]; -_start: -{ -uint8_t x_19; uint8_t x_20; uint8_t x_21; lean_object* x_22; -x_19 = lean_unbox(x_8); -lean_dec(x_8); -x_20 = lean_unbox(x_9); -lean_dec(x_9); -x_21 = lean_unbox(x_10); -lean_dec(x_10); -x_22 = l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_19, x_20, x_21, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_11); -return x_22; -} -} lean_object* l_List_foldlM___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppFnId___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_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) { _start: { @@ -33186,7 +32598,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__2; -x_3 = lean_unsigned_to_nat(858u); +x_3 = lean_unsigned_to_nat(857u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -33543,7 +32955,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_mergeFailures___spec__1___closed__1; x_2 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_App_0__Lean_Elab_Term_elabAppAux___spec__1___closed__1; -x_3 = lean_unsigned_to_nat(876u); +x_3 = lean_unsigned_to_nat(875u); x_4 = lean_unsigned_to_nat(35u); x_5 = l_Lean_Name_getString_x21___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -37126,7 +36538,7 @@ x_5 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9009_(lean_object* x_1) { +lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_8972_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -37458,7 +36870,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_elabBinRel___closed__1); res = l___regBuiltin_Lean_Elab_Term_elabBinRel(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_9009_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_App___hyg_8972_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Meta/SizeOf.c b/stage0/stdlib/Lean/Meta/SizeOf.c index 0865cbe91d..e34a3b9ae7 100644 --- a/stage0/stdlib/Lean/Meta/SizeOf.c +++ b/stage0/stdlib/Lean/Meta/SizeOf.c @@ -19,237 +19,271 @@ lean_object* l_List_tail_x21___rarg(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__2___boxed(lean_object**); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkForallFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___at_Lean_Meta_addInstance___spec__1(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_RecursorVal_getFirstIndexIdx(lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfFns___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___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*); lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_USize_decEq(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___closed__2; -lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__3___rarg(lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_getConstInfoInduct___rarg___lambda__1___closed__2; +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfInstances_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__5; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg(lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__2(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2___boxed(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfFns___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at_Lean_Meta_isLevelDefEqAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__1___closed__2; +uint8_t l_Lean_Meta_generateSizeOfSpec(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg(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_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__3; lean_object* lean_st_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedParserDescr___closed__1; +uint8_t l_Lean_Expr_isApp(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__2___rarg(lean_object*, lean_object*); +uint8_t l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop(lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop_match__1(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Literal_type___closed__3; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1; -lean_object* l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__2; -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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*); uint8_t l_USize_decLt(size_t, size_t); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1; +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkSizeOfFns___spec__5(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_Lean_throwKernelException___at_Lean_Meta_mkSizeOfFn___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop_match__1___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___boxed(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*); -uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_RecursorVal_getFirstMinorIdx(lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns___closed__2; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__5(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_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3; lean_object* l_Lean_Meta_mkSizeOfFn___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2; lean_object* l_Lean_mkAppN(lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfFns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__1; lean_object* l_Lean_getConstInfoInduct___at_Lean_Meta_mkSizeOfFns___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__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___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__3; lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); lean_object* l_Lean_Meta_mkSizeOfInstances(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns___closed__3; lean_object* l_Lean_Meta_mkSizeOfFn___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1; -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2; lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives(lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_isLevelDefEqAux___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Lean_Meta_LevelDefEq_0__Lean_Meta_solveSelfMax___closed__1; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__1___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t); -lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instQuoteProd___rarg___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1; +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1; +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfFn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___boxed(lean_object**); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_appendIndexAfter(lean_object*, lean_object*); -lean_object* l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_generateSizeOfSpec___boxed(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2; extern lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_Basic___hyg_562____closed__2; -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1; -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3; +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2; +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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*); uint8_t l_Lean_Meta_generateSizeOfInstance(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__6(lean_object*); extern lean_object* l_Lean_initFn____x40_Lean_Data_Options___hyg_528____closed__3; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__6___rarg(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__3(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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* l_Lean_Meta_addInstance(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__4___rarg(lean_object*, lean_object*); lean_object* l_List_head_x21___at_Lean_Meta_mkSizeOfFns___spec__3___boxed(lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2; uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___closed__2; lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__2___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedExpr; +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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* l_Lean_Meta_mkSizeOfFn___lambda__1___closed__1; lean_object* l_Lean_Meta_mkSizeOfFn___lambda__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_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2; +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___boxed(lean_object**); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1___closed__1; uint8_t l_Lean_isInductivePredicate_visit(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop(lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__15; +lean_object* l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__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* l_Lean_Meta_mkSizeOfFns_match__3(lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__1___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg(lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1; +uint8_t l_Lean_Expr_isForall(lean_object*); +lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1___closed__2; lean_object* l_Lean_Meta_mkSizeOfFn___closed__1; +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_KernelException_toMessageData___closed__3; size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_setInlineAttribute___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop(lean_object*); lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__2(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1___rarg(lean_object*); lean_object* l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__2; lean_object* l_Lean_getConstInfoRec___at_Lean_Meta_mkSizeOfFn___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfFn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__3___boxed(lean_object**); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(lean_object*, lean_object*); +lean_object* l_List_redLength___rarg(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__2___rarg(lean_object*, lean_object*); -lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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* l_Lean_isInductivePredicate___at_Lean_Meta_mkSizeOfInstances___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfFn___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__5; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__1(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__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_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1; uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3___rarg(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___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*); lean_object* l_Lean_Meta_mkSizeOfFn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__5(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__3(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfFn___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_setEnv___at_Lean_Meta_orelse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfFn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__2(lean_object*); lean_object* l_List_head_x21___at_Lean_Meta_mkSizeOfFns___spec__3(lean_object*); lean_object* lean_register_option(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns___closed__1; extern lean_object* l_List_head_x21___rarg___closed__3; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__5___rarg(lean_object*, lean_object*); lean_object* l_Array_ofSubarray___rarg(lean_object*); lean_object* l_Lean_Meta_mkSizeOfInstances_match__1(lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__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_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2(lean_object*, lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_instInhabitedName; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__4; +extern lean_object* l_Lean_getConstInfoCtor___rarg___lambda__1___closed__2; +lean_object* l_List_toArrayAux___rarg(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__2; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___closed__1; -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__1; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFn___lambda__4___boxed(lean_object**); lean_object* l_Lean_Meta_mkSizeOfFns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances(lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_getConstInfoRec___rarg___lambda__1___closed__2; lean_object* l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422_(lean_object*); -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1807_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_2362_(lean_object*); +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937_(lean_object*); +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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* l_Lean_isInductivePredicate___at_Lean_Meta_mkSizeOfInstances___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_generateSizeOfInstance___boxed(lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__1(lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__1(lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; lean_object* l_Lean_Meta_mkSizeOfFn___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__4(lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); extern lean_object* l_Lean_Expr_instantiateBetaRevRange___closed__1; lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__1; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3___boxed(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___rarg(lean_object*, lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___boxed(lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_levelOne; +lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__4; -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l_Lean_Meta_forallBoundedTelescope___at___private_Lean_Meta_FunInfo_0__Lean_Meta_getFunInfoAux___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3(lean_object*); -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Array_findSomeM_x3f___rarg___closed__1; +lean_object* l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoRec___at_Lean_Meta_mkSizeOfFn___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_mkSizeOfFns___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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2___rarg(lean_object*); +extern lean_object* l_Array_findIdxM_x3f___rarg___closed__1; +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4; lean_object* l_Lean_Meta_mkAdd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___lambda__1___closed__3; -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8; lean_object* l_Lean_Meta_mkNumeral(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getConstInfoInduct___at_Lean_Meta_mkSizeOfFns___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkSizeOfFns_match__2(lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -770,83 +804,7 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLoc return x_2; } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__1___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -lean_dec(x_1); -x_4 = lean_apply_1(x_2, x_3); -return x_4; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__1(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__1___rarg), 2, 0); -return x_2; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_4; lean_object* x_5; -lean_dec(x_3); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_2, x_4); -return x_5; -} -else -{ -lean_object* x_6; lean_object* x_7; -lean_dec(x_2); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); -lean_dec(x_1); -x_7 = lean_apply_1(x_3, x_6); -return x_7; -} -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__2___rarg), 3, 0); -return x_2; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = lean_box(0); -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3___rarg), 1, 0); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_match__3(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { +uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { _start: { uint8_t x_5; @@ -880,7 +838,7 @@ return x_12; } } } -uint8_t l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1(lean_object* x_1, lean_object* x_2) { +uint8_t l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -911,110 +869,211 @@ size_t x_9; size_t x_10; uint8_t x_11; x_9 = 0; x_10 = lean_usize_of_nat(x_3); lean_dec(x_3); -x_11 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2(x_2, x_1, x_9, x_10); +x_11 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2(x_2, x_1, x_9, x_10); return x_11; } } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__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) { +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__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) { _start: { -lean_object* x_10; uint8_t x_11; -x_10 = l_Lean_Expr_getAppFn(x_4); -x_11 = l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1(x_1, x_10); -lean_dec(x_10); -if (x_11 == 0) +uint8_t x_9; +x_9 = l_Lean_Expr_isApp(x_3); +if (x_9 == 0) { -uint8_t x_12; lean_object* x_13; lean_object* x_14; -x_12 = 0; -x_13 = lean_box(x_12); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_9); -return x_14; +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_8); +return x_11; } else { -lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_15 = l_Lean_Expr_appArg_x21(x_4); -x_16 = lean_expr_eqv(x_15, x_2); -lean_dec(x_15); -x_17 = lean_box(x_16); +lean_object* x_12; uint8_t x_13; +x_12 = l_Lean_Expr_getAppFn(x_3); +x_13 = l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1(x_1, x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +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_8); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = l_Lean_Expr_appArg_x21(x_3); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, 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_9); +lean_ctor_set(x_18, 1, x_8); return x_18; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__2(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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_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) { _start: { -lean_object* x_10; lean_object* x_11; -x_10 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__1___boxed), 9, 2); -lean_closure_set(x_10, 0, x_1); -lean_closure_set(x_10, 1, x_2); -x_11 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1___rarg(x_4, x_10, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_11) == 0) +lean_object* x_8; +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_8 = l_Lean_Meta_inferType(x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_unbox(x_12); -lean_dec(x_12); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__1___boxed), 8, 1); +lean_closure_set(x_11, 0, x_1); +x_12 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__4___rarg(x_9, x_11, x_3, x_4, x_5, x_6, x_10); +return x_12; +} +else +{ +uint8_t x_13; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = !lean_is_exclusive(x_8); if (x_13 == 0) { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_11); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_11, 0); -lean_dec(x_15); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_3); -lean_ctor_set(x_11, 0, x_16); -return x_11; +return x_8; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 1); -lean_inc(x_17); -lean_dec(x_11); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_3); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -return x_19; +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_8); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_16, 1, x_15); +return x_16; } } -else +} +} +lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -uint8_t x_20; +size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; +x_5 = lean_unbox_usize(x_3); lean_dec(x_3); -x_20 = !lean_is_exclusive(x_11); -if (x_20 == 0) +x_6 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__2(x_1, x_2, x_5, x_6); +lean_dec(x_2); +lean_dec(x_1); +x_8 = lean_box(x_7); +return x_8; +} +} +lean_object* l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_11, 0); -lean_dec(x_21); -x_22 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___lambda__1___closed__3; -lean_ctor_set(x_11, 0, x_22); -return x_11; +uint8_t x_3; lean_object* x_4; +x_3 = l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__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) { +_start: +{ +lean_object* x_9; +x_9 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(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_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; uint8_t x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_8, 0); +lean_dec(x_11); +x_12 = 0; +x_13 = lean_box(x_12); +lean_ctor_set(x_8, 0, x_13); +return x_8; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_11, 1); -lean_inc(x_23); -lean_dec(x_11); -x_24 = l_Std_Range_forIn_loop___at_Lean_Meta_addPPExplicitToExposeDiff_hasExplicitDiff___spec__1___lambda__1___closed__3; +lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_8, 1); +lean_inc(x_14); +lean_dec(x_8); +x_15 = 0; +x_16 = lean_box(x_15); +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; +} +} +else +{ +uint8_t x_18; +lean_dec(x_9); +x_18 = !lean_is_exclusive(x_8); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_8, 0); +lean_dec(x_19); +x_20 = 1; +x_21 = lean_box(x_20); +lean_ctor_set(x_8, 0, x_21); +return x_8; +} +else +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_8, 1); +lean_inc(x_22); +lean_dec(x_8); +x_23 = 1; +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_23); +lean_ctor_set(x_25, 1, x_22); return x_25; } } @@ -1022,20 +1081,19 @@ return x_25; else { uint8_t x_26; -lean_dec(x_3); -x_26 = !lean_is_exclusive(x_11); +x_26 = !lean_is_exclusive(x_8); if (x_26 == 0) { -return x_11; +return x_8; } else { lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_11, 0); -x_28 = lean_ctor_get(x_11, 1); +x_27 = lean_ctor_get(x_8, 0); +x_28 = lean_ctor_get(x_8, 1); lean_inc(x_28); lean_inc(x_27); -lean_dec(x_11); +lean_dec(x_8); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -1044,7 +1102,89 @@ return x_29; } } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3(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_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; +lean_dec(x_2); +x_4 = lean_apply_1(x_3, x_1); +return x_4; +} +else +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_3); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); +lean_dec(x_1); +x_6 = lean_apply_1(x_2, x_5); +return x_6; +} +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__1___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__2___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__2___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +lean_object* x_4; lean_object* x_5; +lean_dec(x_3); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_2, x_4); +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_2); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_dec(x_1); +x_7 = lean_apply_1(x_3, x_6); +return x_7; +} +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f_match__3___rarg), 3, 0); +return x_2; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___spec__1(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_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { uint8_t x_13; @@ -1057,7 +1197,6 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); x_14 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_14, 0, x_7); @@ -1066,258 +1205,519 @@ return x_14; } else { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_7); +lean_object* x_15; uint8_t x_16; x_15 = lean_array_uget(x_4, x_6); -x_16 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_16, 0, x_15); -lean_inc(x_3); -lean_inc(x_2); -lean_inc(x_1); -x_17 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__2), 9, 3); -lean_closure_set(x_17, 0, x_1); -lean_closure_set(x_17, 1, x_2); -lean_closure_set(x_17, 2, x_3); +x_16 = !lean_is_exclusive(x_7); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_7, 1); +x_18 = lean_ctor_get(x_7, 0); +lean_dec(x_18); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_18 = l_ReaderT_bind___at_Lean_Meta_instMonadLCtxMetaM___spec__2___rarg(x_16, x_17, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); +lean_inc(x_1); +x_19 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f(x_1, x_15, x_8, x_9, x_10, x_11, x_12); if (lean_obj_tag(x_19) == 0) { -uint8_t x_20; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -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(x_19); -lean_ctor_set(x_18, 0, x_22); -return x_18; -} -else -{ -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(x_18); -x_24 = lean_ctor_get(x_19, 0); -lean_inc(x_24); -lean_dec(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(x_18); -x_27 = lean_ctor_get(x_19, 0); -lean_inc(x_27); -lean_dec(x_19); -x_28 = 1; -x_29 = x_6 + x_28; -x_6 = x_29; -x_7 = x_27; -x_12 = x_26; -goto _start; -} -} -else -{ -uint8_t x_31; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_31 = !lean_is_exclusive(x_18); -if (x_31 == 0) -{ -return x_18; -} -else -{ -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_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(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; size_t x_10; size_t x_11; lean_object* x_12; lean_object* x_13; -x_9 = lean_array_get_size(x_2); -x_10 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_11 = 0; -x_12 = l_Array_findSomeM_x3f___rarg___closed__1; -x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3(x_1, x_3, x_12, x_2, x_10, x_11, x_12, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_13) == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -lean_dec(x_14); -if (lean_obj_tag(x_15) == 0) -{ -uint8_t x_16; -x_16 = !lean_is_exclusive(x_13); -if (x_16 == 0) -{ -lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_13, 0); -lean_dec(x_17); -x_18 = 0; -x_19 = lean_box(x_18); -lean_ctor_set(x_13, 0, x_19); -return x_13; -} -else -{ -lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; -x_20 = lean_ctor_get(x_13, 1); +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_13); -x_21 = 0; -x_22 = lean_box(x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_20); -return x_23; -} -} -else +if (lean_obj_tag(x_20) == 0) { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_13); -if (x_24 == 0) -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_13, 0); -lean_dec(x_25); -x_26 = lean_ctor_get(x_15, 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; size_t x_27; size_t x_28; +lean_free_object(x_7); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = lean_box(0); +lean_inc(x_3); +x_23 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_17, x_22, x_8, x_9, x_10, x_11, x_21); +lean_dec(x_17); +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(x_23); +x_26 = lean_ctor_get(x_24, 0); lean_inc(x_26); -lean_dec(x_15); -lean_ctor_set(x_13, 0, x_26); -return x_13; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_13, 1); -lean_inc(x_27); -lean_dec(x_13); -x_28 = lean_ctor_get(x_15, 0); -lean_inc(x_28); -lean_dec(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_27); -return x_29; -} -} +lean_dec(x_24); +x_27 = 1; +x_28 = x_6 + x_27; +x_6 = x_28; +x_7 = x_26; +x_12 = x_25; +goto _start; } else { uint8_t x_30; -x_30 = !lean_is_exclusive(x_13); +x_30 = !lean_is_exclusive(x_19); if (x_30 == 0) { -return x_13; +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_19, 1); +x_32 = lean_ctor_get(x_19, 0); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_20); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_20, 0); +x_35 = lean_expr_eqv(x_2, x_34); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; size_t x_41; size_t x_42; +lean_free_object(x_20); +lean_free_object(x_19); +lean_free_object(x_7); +x_36 = lean_box(0); +lean_inc(x_3); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_17, x_36, x_8, x_9, x_10, x_11, x_31); +lean_dec(x_17); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = 1; +x_42 = x_6 + x_41; +x_6 = x_42; +x_7 = x_40; +x_12 = x_39; +goto _start; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_13, 0); -x_32 = lean_ctor_get(x_13, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_13); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -} -lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__2(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -uint8_t x_3; lean_object* x_4; -x_3 = l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -x_4 = lean_box(x_3); -return x_4; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__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) { -_start: -{ -lean_object* x_10; -x_10 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_object* x_44; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -return x_10; +lean_inc(x_17); +lean_ctor_set(x_20, 0, x_17); +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_20); +lean_ctor_set(x_7, 0, x_44); +lean_ctor_set(x_19, 0, x_7); +return x_19; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___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) { +else +{ +lean_object* x_45; uint8_t x_46; +x_45 = lean_ctor_get(x_20, 0); +lean_inc(x_45); +lean_dec(x_20); +x_46 = lean_expr_eqv(x_2, x_45); +lean_dec(x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; +lean_free_object(x_19); +lean_free_object(x_7); +x_47 = lean_box(0); +lean_inc(x_3); +x_48 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_17, x_47, x_8, x_9, x_10, x_11, x_31); +lean_dec(x_17); +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +x_52 = 1; +x_53 = x_6 + x_52; +x_6 = x_53; +x_7 = x_51; +x_12 = x_50; +goto _start; +} +else +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +lean_inc(x_17); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_17); +x_56 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_7, 0, x_56); +lean_ctor_set(x_19, 0, x_7); +return x_19; +} +} +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; +x_57 = lean_ctor_get(x_19, 1); +lean_inc(x_57); +lean_dec(x_19); +x_58 = lean_ctor_get(x_20, 0); +lean_inc(x_58); +if (lean_is_exclusive(x_20)) { + lean_ctor_release(x_20, 0); + x_59 = x_20; +} else { + lean_dec_ref(x_20); + x_59 = lean_box(0); +} +x_60 = lean_expr_eqv(x_2, x_58); +lean_dec(x_58); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; size_t x_66; size_t x_67; +lean_dec(x_59); +lean_free_object(x_7); +x_61 = lean_box(0); +lean_inc(x_3); +x_62 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_17, x_61, x_8, x_9, x_10, x_11, x_57); +lean_dec(x_17); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_ctor_get(x_63, 0); +lean_inc(x_65); +lean_dec(x_63); +x_66 = 1; +x_67 = x_6 + x_66; +x_6 = x_67; +x_7 = x_65; +x_12 = x_64; +goto _start; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +lean_inc(x_17); +if (lean_is_scalar(x_59)) { + x_69 = lean_alloc_ctor(1, 1, 0); +} else { + x_69 = x_59; +} +lean_ctor_set(x_69, 0, x_17); +x_70 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_7, 0, x_70); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_7); +lean_ctor_set(x_71, 1, x_57); +return x_71; +} +} +} +} +else +{ +uint8_t x_72; +lean_free_object(x_7); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_72 = !lean_is_exclusive(x_19); +if (x_72 == 0) +{ +return x_19; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_19, 0); +x_74 = lean_ctor_get(x_19, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_19); +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; lean_object* x_77; +x_76 = lean_ctor_get(x_7, 1); +lean_inc(x_76); +lean_dec(x_7); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_77 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis_x3f(x_1, x_15, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; +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; lean_object* x_83; lean_object* x_84; size_t x_85; size_t x_86; +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_80 = lean_box(0); +lean_inc(x_3); +x_81 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_76, x_80, x_8, x_9, x_10, x_11, x_79); +lean_dec(x_76); +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(x_81); +x_84 = lean_ctor_get(x_82, 0); +lean_inc(x_84); +lean_dec(x_82); +x_85 = 1; +x_86 = x_6 + x_85; +x_6 = x_86; +x_7 = x_84; +x_12 = x_83; +goto _start; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; uint8_t x_92; +x_88 = lean_ctor_get(x_77, 1); +lean_inc(x_88); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_89 = x_77; +} else { + lean_dec_ref(x_77); + x_89 = lean_box(0); +} +x_90 = lean_ctor_get(x_78, 0); +lean_inc(x_90); +if (lean_is_exclusive(x_78)) { + lean_ctor_release(x_78, 0); + x_91 = x_78; +} else { + lean_dec_ref(x_78); + x_91 = lean_box(0); +} +x_92 = lean_expr_eqv(x_2, x_90); +lean_dec(x_90); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; size_t x_98; size_t x_99; +lean_dec(x_91); +lean_dec(x_89); +x_93 = lean_box(0); +lean_inc(x_3); +x_94 = l_Array_forInUnsafe_loop___at_Lean_Meta_reduceMatcher_x3f___spec__1___lambda__1(x_3, x_76, x_93, x_8, x_9, x_10, x_11, x_88); +lean_dec(x_76); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_97); +lean_dec(x_95); +x_98 = 1; +x_99 = x_6 + x_98; +x_6 = x_99; +x_7 = x_97; +x_12 = x_96; +goto _start; +} +else +{ +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +lean_inc(x_76); +if (lean_is_scalar(x_91)) { + x_101 = lean_alloc_ctor(1, 1, 0); +} else { + x_101 = x_91; +} +lean_ctor_set(x_101, 0, x_76); +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_76); +if (lean_is_scalar(x_89)) { + x_104 = lean_alloc_ctor(0, 2, 0); +} else { + x_104 = x_89; +} +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_88); +return x_104; +} +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_76); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_3); +lean_dec(x_1); +x_105 = lean_ctor_get(x_77, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_77, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_107 = x_77; +} else { + lean_dec_ref(x_77); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +} +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_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) { +_start: +{ +lean_object* x_9; lean_object* x_10; size_t x_11; size_t x_12; lean_object* x_13; lean_object* x_14; +x_9 = lean_box(0); +x_10 = lean_array_get_size(x_2); +x_11 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_12 = 0; +x_13 = l_Array_findIdxM_x3f___rarg___closed__1; +x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___spec__1(x_1, x_3, x_9, x_2, x_11, x_12, x_13, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +lean_dec(x_15); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_14); +if (x_17 == 0) +{ +lean_object* x_18; +x_18 = lean_ctor_get(x_14, 0); +lean_dec(x_18); +lean_ctor_set(x_14, 0, x_9); +return x_14; +} +else +{ +lean_object* x_19; lean_object* x_20; +x_19 = lean_ctor_get(x_14, 1); +lean_inc(x_19); +lean_dec(x_14); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_9); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +else +{ +uint8_t x_21; +x_21 = !lean_is_exclusive(x_14); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; +x_22 = lean_ctor_get(x_14, 0); +lean_dec(x_22); +x_23 = lean_ctor_get(x_16, 0); +lean_inc(x_23); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_23); +return x_14; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_dec(x_14); +x_25 = lean_ctor_get(x_16, 0); +lean_inc(x_25); +lean_dec(x_16); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +return x_26; +} +} +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_14); +if (x_27 == 0) +{ +return x_14; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_14, 0); +x_29 = lean_ctor_get(x_14, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_14); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_28); +lean_ctor_set(x_30, 1, x_29); +return x_30; +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___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, lean_object* x_12) { _start: { size_t x_13; size_t x_14; lean_object* x_15; @@ -1325,16 +1725,18 @@ x_13 = lean_unbox_usize(x_5); lean_dec(x_5); x_14 = lean_unbox_usize(x_6); lean_dec(x_6); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__3(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f___spec__1(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_4); +lean_dec(x_2); return x_15; } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_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) { _start: { lean_object* x_9; -x_9 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); lean_dec(x_2); return x_9; } @@ -1637,96 +2039,38 @@ lean_dec(x_1); return x_8; } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = lean_box(0); -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg), 1, 0); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; -x_2 = lean_box(0); -x_3 = lean_apply_1(x_1, x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg), 1, 0); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_4; lean_object* x_5; lean_object* x_6; -lean_dec(x_3); -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -x_5 = lean_ctor_get(x_1, 1); -lean_inc(x_5); -lean_dec(x_1); -x_6 = lean_apply_2(x_2, x_4, x_5); -return x_6; +lean_object* x_4; lean_object* x_5; +lean_dec(x_2); +x_4 = lean_box(0); +x_5 = lean_apply_1(x_3, x_4); +return x_5; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_2); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_1, 1); -lean_inc(x_8); +lean_object* x_6; lean_object* x_7; +lean_dec(x_3); +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); lean_dec(x_1); -x_9 = lean_apply_2(x_3, x_7, x_8); -return x_9; +x_7 = lean_apply_1(x_2, x_6); +return x_7; } } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3(lean_object* x_1) { +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__1___rarg), 3, 0); return x_2; } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -1754,57 +2098,57 @@ return x_9; } } } +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__2___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__3___rarg), 2, 0); +return x_2; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_2, x_3, x_4); +return x_5; +} +} lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg), 3, 0); +x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__4___rarg), 2, 0); return x_2; } } -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__5___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__5(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__5___rarg), 2, 0); -return x_2; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__6___rarg(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_2(x_2, x_3, x_4); -return x_5; -} -} -lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__6(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop_match__6___rarg), 2, 0); -return x_2; -} -} -static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -1814,828 +2158,1374 @@ x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__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, lean_object* x_10) { +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(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_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; uint8_t x_12; -x_11 = l_Lean_Expr_getAppFn(x_5); -x_12 = l_Array_contains___at___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField___spec__1(x_1, x_11); +lean_object* x_13; lean_object* x_14; uint8_t x_22; +x_22 = x_6 < x_5; +if (x_22 == 0) +{ +lean_object* x_23; lean_dec(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = l_Lean_mkOptionalNode___closed__2; -x_14 = lean_array_push(x_13, x_2); -x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1; -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_16 = l_Lean_Meta_mkAppM(x_15, x_14, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_3); -x_19 = l_Lean_Meta_mkAdd(x_3, x_17, x_6, x_7, x_8, x_9, x_18); -if (lean_obj_tag(x_19) == 0) -{ -uint8_t x_20; -lean_dec(x_3); -x_20 = !lean_is_exclusive(x_19); -if (x_20 == 0) -{ -return x_19; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_19, 0); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_19); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -else -{ -uint8_t x_24; -x_24 = !lean_is_exclusive(x_19); -if (x_24 == 0) -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_19, 0); -lean_dec(x_25); -lean_ctor_set_tag(x_19, 0); -lean_ctor_set(x_19, 0, x_3); -return x_19; -} -else -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_19, 1); -lean_inc(x_26); -lean_dec(x_19); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_3); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -else -{ -uint8_t x_28; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_28 = !lean_is_exclusive(x_16); -if (x_28 == 0) -{ -lean_object* x_29; -x_29 = lean_ctor_get(x_16, 0); -lean_dec(x_29); -lean_ctor_set_tag(x_16, 0); -lean_ctor_set(x_16, 0, x_3); -return x_16; -} -else -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_16, 1); -lean_inc(x_30); -lean_dec(x_16); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_3); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_32 = lean_array_get_size(x_4); -x_33 = lean_unsigned_to_nat(0u); -x_34 = lean_nat_dec_lt(x_33, x_32); -lean_dec(x_32); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = l_Lean_Meta_mkAdd(x_3, x_2, x_6, x_7, x_8, x_9, x_10); -return x_35; -} -else -{ -lean_object* x_36; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_2); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_3); -lean_ctor_set(x_36, 1, x_10); -return x_36; -} -} -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(lean_object* x_1, lean_object* 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, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; uint8_t x_21; -x_21 = x_5 < x_4; -if (x_21 == 0) -{ -lean_object* x_22; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_1); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_6); -lean_ctor_set(x_22, 1, x_11); -return x_22; +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_7); +lean_ctor_set(x_23, 1, x_12); +return x_23; } else { -lean_object* x_23; uint8_t x_24; -x_23 = lean_array_uget(x_3, x_5); -x_24 = !lean_is_exclusive(x_6); -if (x_24 == 0) +lean_object* x_24; uint8_t x_25; +x_24 = lean_array_uget(x_4, x_6); +x_25 = !lean_is_exclusive(x_7); +if (x_25 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -x_25 = lean_ctor_get(x_6, 0); -x_26 = lean_ctor_get(x_6, 1); -x_27 = lean_ctor_get(x_25, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_25, 1); +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_26 = lean_ctor_get(x_7, 0); +x_27 = lean_ctor_get(x_7, 1); +x_28 = lean_ctor_get(x_26, 0); lean_inc(x_28); -x_29 = lean_ctor_get(x_25, 2); +x_29 = lean_ctor_get(x_26, 1); lean_inc(x_29); -x_30 = lean_nat_dec_lt(x_28, x_29); -if (x_30 == 0) +x_30 = lean_ctor_get(x_26, 2); +lean_inc(x_30); +x_31 = lean_nat_dec_lt(x_29, x_30); +if (x_31 == 0) { -lean_object* x_31; +lean_object* x_32; +lean_dec(x_30); lean_dec(x_29); lean_dec(x_28); -lean_dec(x_27); -lean_dec(x_23); -x_31 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_31, 0, x_6); -x_12 = x_31; -x_13 = x_11; -goto block_20; +lean_dec(x_24); +x_32 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_32, 0, x_7); +x_13 = x_32; +x_14 = x_12; +goto block_21; } else { -uint8_t x_32; -x_32 = !lean_is_exclusive(x_25); -if (x_32 == 0) +uint8_t x_33; +x_33 = !lean_is_exclusive(x_26); +if (x_33 == 0) { -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; -x_33 = lean_ctor_get(x_25, 2); -lean_dec(x_33); -x_34 = lean_ctor_get(x_25, 1); +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; +x_34 = lean_ctor_get(x_26, 2); lean_dec(x_34); -x_35 = lean_ctor_get(x_25, 0); +x_35 = lean_ctor_get(x_26, 1); lean_dec(x_35); -x_36 = lean_array_fget(x_27, x_28); -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_28, x_37); -lean_dec(x_28); -lean_ctor_set(x_25, 1, x_38); +x_36 = lean_ctor_get(x_26, 0); +lean_dec(x_36); +x_37 = lean_array_fget(x_28, x_29); +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_29, x_38); +lean_dec(x_29); +lean_ctor_set(x_26, 1, x_39); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_23); +lean_inc(x_24); lean_inc(x_1); -x_39 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(x_1, x_2, x_23, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_39) == 0) +x_40 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(x_1, x_24, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_40) == 0) { -lean_object* x_40; uint8_t x_41; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_unbox(x_40); +lean_object* x_41; uint8_t x_42; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_unbox(x_41); +lean_dec(x_41); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); lean_dec(x_40); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_43 = l_Lean_Meta_inferType(x_23, x_7, x_8, x_9, x_10, x_42); -if (lean_obj_tag(x_43) == 0) +lean_inc(x_24); +x_44 = l_Lean_Meta_inferType(x_24, x_8, x_9, x_10, x_11, x_43); +if (lean_obj_tag(x_44) == 0) { -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_43); -lean_inc(x_1); -x_46 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___boxed), 10, 3); -lean_closure_set(x_46, 0, x_1); -lean_closure_set(x_46, 1, x_36); -lean_closure_set(x_46, 2, x_26); +x_46 = lean_ctor_get(x_44, 1); +lean_inc(x_46); +lean_dec(x_44); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_47 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1___rarg(x_44, x_46, x_7, x_8, x_9, x_10, x_45); +x_47 = l_Lean_Meta_whnf(x_45, x_8, x_9, x_10, x_11, x_46); if (lean_obj_tag(x_47) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_object* x_48; lean_object* x_49; uint8_t x_50; 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(x_47); -lean_ctor_set(x_6, 1, x_48); -x_50 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_50, 0, x_6); -x_12 = x_50; -x_13 = x_49; -goto block_20; +x_50 = l_Lean_Expr_isForall(x_48); +lean_dec(x_48); +if (x_50 == 0) +{ +lean_object* x_51; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_51 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(x_1, x_2, x_24, x_8, x_9, x_10, x_11, x_49); +lean_dec(x_24); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +x_54 = l_Lean_mkOptionalNode___closed__2; +x_55 = lean_array_push(x_54, x_37); +x_56 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_57 = l_Lean_Meta_mkAppM(x_56, x_55, x_8, x_9, x_10, x_11, x_53); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_60 = l_Lean_Meta_mkAdd(x_27, x_58, x_8, x_9, x_10, x_11, x_59); +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_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +lean_ctor_set(x_7, 1, x_61); +x_63 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_63, 0, x_7); +x_13 = x_63; +x_14 = x_62; +goto block_21; } else { -uint8_t x_51; -lean_dec(x_25); -lean_free_object(x_6); +uint8_t x_64; +lean_dec(x_26); +lean_free_object(x_7); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_47); -if (x_51 == 0) +x_64 = !lean_is_exclusive(x_60); +if (x_64 == 0) +{ +return x_60; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_60, 0); +x_66 = lean_ctor_get(x_60, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_60); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_26); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_68 = !lean_is_exclusive(x_57); +if (x_68 == 0) +{ +return x_57; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_57, 0); +x_70 = lean_ctor_get(x_57, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_57); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; +lean_dec(x_37); +x_72 = lean_ctor_get(x_51, 1); +lean_inc(x_72); +lean_dec(x_51); +x_73 = lean_ctor_get(x_52, 0); +lean_inc(x_73); +lean_dec(x_52); +x_74 = l_Lean_instInhabitedExpr; +x_75 = lean_array_get(x_74, x_3, x_73); +lean_dec(x_73); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_76 = l_Lean_Meta_mkAdd(x_27, x_75, x_8, x_9, x_10, x_11, x_72); +if (lean_obj_tag(x_76) == 0) +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); +lean_inc(x_78); +lean_dec(x_76); +lean_ctor_set(x_7, 1, x_77); +x_79 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_79, 0, x_7); +x_13 = x_79; +x_14 = x_78; +goto block_21; +} +else +{ +uint8_t x_80; +lean_dec(x_26); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_80 = !lean_is_exclusive(x_76); +if (x_80 == 0) +{ +return x_76; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_76, 0); +x_82 = lean_ctor_get(x_76, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_76); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_26); +lean_dec(x_37); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_84 = !lean_is_exclusive(x_51); +if (x_84 == 0) +{ +return x_51; +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_51, 0); +x_86 = lean_ctor_get(x_51, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_51); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +return x_87; +} +} +} +else +{ +lean_object* x_88; +lean_dec(x_37); +lean_dec(x_24); +x_88 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_88, 0, x_7); +x_13 = x_88; +x_14 = x_49; +goto block_21; +} +} +else +{ +uint8_t x_89; +lean_dec(x_26); +lean_dec(x_37); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_89 = !lean_is_exclusive(x_47); +if (x_89 == 0) { return x_47; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_47, 0); -x_53 = lean_ctor_get(x_47, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_47); -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_55; -lean_dec(x_25); -lean_dec(x_36); -lean_free_object(x_6); -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_55 = !lean_is_exclusive(x_43); -if (x_55 == 0) -{ -return x_43; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_43, 0); -x_57 = lean_ctor_get(x_43, 1); -lean_inc(x_57); -lean_inc(x_56); -lean_dec(x_43); -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 -{ -lean_object* x_59; lean_object* x_60; -lean_dec(x_36); -lean_dec(x_23); -x_59 = lean_ctor_get(x_39, 1); -lean_inc(x_59); -lean_dec(x_39); -x_60 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_60, 0, x_6); -x_12 = x_60; -x_13 = x_59; -goto block_20; -} -} -else -{ -uint8_t x_61; -lean_dec(x_25); -lean_dec(x_36); -lean_free_object(x_6); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_61 = !lean_is_exclusive(x_39); -if (x_61 == 0) -{ -return x_39; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_39, 0); -x_63 = lean_ctor_get(x_39, 1); -lean_inc(x_63); -lean_inc(x_62); -lean_dec(x_39); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); -return x_64; -} -} -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; -lean_dec(x_25); -x_65 = lean_array_fget(x_27, x_28); -x_66 = lean_unsigned_to_nat(1u); -x_67 = lean_nat_add(x_28, x_66); -lean_dec(x_28); -x_68 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_68, 0, x_27); -lean_ctor_set(x_68, 1, x_67); -lean_ctor_set(x_68, 2, x_29); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_23); -lean_inc(x_1); -x_69 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(x_1, x_2, x_23, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; uint8_t x_71; -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -x_71 = lean_unbox(x_70); -lean_dec(x_70); -if (x_71 == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -lean_dec(x_69); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_73 = l_Lean_Meta_inferType(x_23, x_7, x_8, x_9, x_10, x_72); -if (lean_obj_tag(x_73) == 0) -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -lean_inc(x_1); -x_76 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___boxed), 10, 3); -lean_closure_set(x_76, 0, x_1); -lean_closure_set(x_76, 1, x_65); -lean_closure_set(x_76, 2, x_26); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_77 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1___rarg(x_74, x_76, x_7, x_8, x_9, x_10, x_75); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -lean_ctor_set(x_6, 1, x_78); -lean_ctor_set(x_6, 0, x_68); -x_80 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_80, 0, x_6); -x_12 = x_80; -x_13 = x_79; -goto block_20; -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -lean_dec(x_68); -lean_free_object(x_6); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_81 = lean_ctor_get(x_77, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_77, 1); -lean_inc(x_82); -if (lean_is_exclusive(x_77)) { - lean_ctor_release(x_77, 0); - lean_ctor_release(x_77, 1); - x_83 = x_77; -} else { - lean_dec_ref(x_77); - x_83 = lean_box(0); -} -if (lean_is_scalar(x_83)) { - x_84 = lean_alloc_ctor(1, 2, 0); -} else { - x_84 = x_83; -} -lean_ctor_set(x_84, 0, x_81); -lean_ctor_set(x_84, 1, x_82); -return x_84; -} -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -lean_dec(x_68); -lean_dec(x_65); -lean_free_object(x_6); -lean_dec(x_26); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_85 = lean_ctor_get(x_73, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_73, 1); -lean_inc(x_86); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_87 = x_73; -} else { - lean_dec_ref(x_73); - x_87 = lean_box(0); -} -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_87; -} -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_86); -return x_88; -} -} -else -{ -lean_object* x_89; lean_object* x_90; -lean_dec(x_65); -lean_dec(x_23); -x_89 = lean_ctor_get(x_69, 1); -lean_inc(x_89); -lean_dec(x_69); -lean_ctor_set(x_6, 0, x_68); -x_90 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_90, 0, x_6); -x_12 = x_90; -x_13 = x_89; -goto block_20; -} -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_68); -lean_dec(x_65); -lean_free_object(x_6); -lean_dec(x_26); -lean_dec(x_23); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_91 = lean_ctor_get(x_69, 0); +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_47, 0); +x_91 = lean_ctor_get(x_47, 1); lean_inc(x_91); -x_92 = lean_ctor_get(x_69, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_93 = x_69; -} else { - lean_dec_ref(x_69); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(1, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_91); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} +lean_inc(x_90); +lean_dec(x_47); +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; } } } 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; -x_95 = lean_ctor_get(x_6, 0); -x_96 = lean_ctor_get(x_6, 1); -lean_inc(x_96); +uint8_t x_93; +lean_dec(x_26); +lean_dec(x_37); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_93 = !lean_is_exclusive(x_44); +if (x_93 == 0) +{ +return x_44; +} +else +{ +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_44, 0); +x_95 = lean_ctor_get(x_44, 1); lean_inc(x_95); -lean_dec(x_6); -x_97 = lean_ctor_get(x_95, 0); +lean_inc(x_94); +lean_dec(x_44); +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; +} +} +} +else +{ +lean_object* x_97; lean_object* x_98; +lean_dec(x_37); +lean_dec(x_24); +x_97 = lean_ctor_get(x_40, 1); lean_inc(x_97); -x_98 = lean_ctor_get(x_95, 1); -lean_inc(x_98); -x_99 = lean_ctor_get(x_95, 2); -lean_inc(x_99); -x_100 = lean_nat_dec_lt(x_98, x_99); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; -lean_dec(x_99); -lean_dec(x_98); -lean_dec(x_97); -lean_dec(x_23); -x_101 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_96); -x_102 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_102, 0, x_101); -x_12 = x_102; -x_13 = x_11; -goto block_20; +lean_dec(x_40); +x_98 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_98, 0, x_7); +x_13 = x_98; +x_14 = x_97; +goto block_21; +} } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - lean_ctor_release(x_95, 2); - x_103 = x_95; -} else { - lean_dec_ref(x_95); - x_103 = lean_box(0); +uint8_t x_99; +lean_dec(x_26); +lean_dec(x_37); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_99 = !lean_is_exclusive(x_40); +if (x_99 == 0) +{ +return x_40; } -x_104 = lean_array_fget(x_97, x_98); -x_105 = lean_unsigned_to_nat(1u); -x_106 = lean_nat_add(x_98, x_105); -lean_dec(x_98); -if (lean_is_scalar(x_103)) { - x_107 = lean_alloc_ctor(0, 3, 0); -} else { - x_107 = x_103; +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = lean_ctor_get(x_40, 0); +x_101 = lean_ctor_get(x_40, 1); +lean_inc(x_101); +lean_inc(x_100); +lean_dec(x_40); +x_102 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +return x_102; } -lean_ctor_set(x_107, 0, x_97); -lean_ctor_set(x_107, 1, x_106); -lean_ctor_set(x_107, 2, x_99); +} +} +else +{ +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_26); +x_103 = lean_array_fget(x_28, x_29); +x_104 = lean_unsigned_to_nat(1u); +x_105 = lean_nat_add(x_29, x_104); +lean_dec(x_29); +x_106 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_106, 0, x_28); +lean_ctor_set(x_106, 1, x_105); +lean_ctor_set(x_106, 2, x_30); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_23); +lean_inc(x_24); lean_inc(x_1); -x_108 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField(x_1, x_2, x_23, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_108) == 0) +x_107 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(x_1, x_24, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_107) == 0) { -lean_object* x_109; uint8_t x_110; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_unbox(x_109); -lean_dec(x_109); -if (x_110 == 0) -{ -lean_object* x_111; lean_object* x_112; -x_111 = lean_ctor_get(x_108, 1); -lean_inc(x_111); +lean_object* x_108; uint8_t x_109; +x_108 = lean_ctor_get(x_107, 0); +lean_inc(x_108); +x_109 = lean_unbox(x_108); lean_dec(x_108); +if (x_109 == 0) +{ +lean_object* x_110; lean_object* x_111; +x_110 = lean_ctor_get(x_107, 1); +lean_inc(x_110); +lean_dec(x_107); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_112 = l_Lean_Meta_inferType(x_23, x_7, x_8, x_9, x_10, x_111); -if (lean_obj_tag(x_112) == 0) +lean_inc(x_24); +x_111 = l_Lean_Meta_inferType(x_24, x_8, x_9, x_10, x_11, x_110); +if (lean_obj_tag(x_111) == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; -x_113 = lean_ctor_get(x_112, 0); +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -lean_dec(x_112); -lean_inc(x_1); -x_115 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___boxed), 10, 3); -lean_closure_set(x_115, 0, x_1); -lean_closure_set(x_115, 1, x_104); -lean_closure_set(x_115, 2, x_96); +lean_dec(x_111); +lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -x_116 = l_Lean_Meta_forallTelescopeReducing___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__1___rarg(x_113, x_115, x_7, x_8, x_9, x_10, x_114); -if (lean_obj_tag(x_116) == 0) +x_114 = l_Lean_Meta_whnf(x_112, x_8, x_9, x_10, x_11, x_113); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_107); -lean_ctor_set(x_119, 1, x_117); -x_120 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_120, 0, x_119); -x_12 = x_120; -x_13 = x_118; -goto block_20; -} -else +lean_object* x_115; lean_object* x_116; uint8_t x_117; +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(x_114); +x_117 = l_Lean_Expr_isForall(x_115); +lean_dec(x_115); +if (x_117 == 0) { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -lean_dec(x_107); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_121 = lean_ctor_get(x_116, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_116, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_116)) { - lean_ctor_release(x_116, 0); - lean_ctor_release(x_116, 1); - x_123 = x_116; -} else { - lean_dec_ref(x_116); - x_123 = lean_box(0); -} -if (lean_is_scalar(x_123)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_123; -} -lean_ctor_set(x_124, 0, x_121); -lean_ctor_set(x_124, 1, x_122); -return x_124; -} -} -else +lean_object* x_118; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_118 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(x_1, x_2, x_24, x_8, x_9, x_10, x_11, x_116); +lean_dec(x_24); +if (lean_obj_tag(x_118) == 0) { -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -lean_dec(x_107); -lean_dec(x_104); -lean_dec(x_96); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_125 = lean_ctor_get(x_112, 0); +lean_object* x_119; +x_119 = lean_ctor_get(x_118, 0); +lean_inc(x_119); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_120 = lean_ctor_get(x_118, 1); +lean_inc(x_120); +lean_dec(x_118); +x_121 = l_Lean_mkOptionalNode___closed__2; +x_122 = lean_array_push(x_121, x_103); +x_123 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_124 = l_Lean_Meta_mkAppM(x_123, x_122, x_8, x_9, x_10, x_11, x_120); +if (lean_obj_tag(x_124) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; +x_125 = lean_ctor_get(x_124, 0); lean_inc(x_125); -x_126 = lean_ctor_get(x_112, 1); +x_126 = lean_ctor_get(x_124, 1); lean_inc(x_126); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_127 = x_112; -} else { - lean_dec_ref(x_112); - x_127 = lean_box(0); -} -if (lean_is_scalar(x_127)) { - x_128 = lean_alloc_ctor(1, 2, 0); -} else { - x_128 = x_127; -} -lean_ctor_set(x_128, 0, x_125); -lean_ctor_set(x_128, 1, x_126); -return x_128; -} -} -else +lean_dec(x_124); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_127 = l_Lean_Meta_mkAdd(x_27, x_125, x_8, x_9, x_10, x_11, x_126); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; -lean_dec(x_104); -lean_dec(x_23); -x_129 = lean_ctor_get(x_108, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_127, 1); lean_inc(x_129); -lean_dec(x_108); -x_130 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_130, 0, x_107); -lean_ctor_set(x_130, 1, x_96); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_130); -x_12 = x_131; -x_13 = x_129; -goto block_20; -} +lean_dec(x_127); +lean_ctor_set(x_7, 1, x_128); +lean_ctor_set(x_7, 0, x_106); +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_7); +x_13 = x_130; +x_14 = x_129; +goto block_21; } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -lean_dec(x_107); -lean_dec(x_104); -lean_dec(x_96); -lean_dec(x_23); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_106); +lean_free_object(x_7); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_1); -x_132 = lean_ctor_get(x_108, 0); +x_131 = lean_ctor_get(x_127, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_127, 1); lean_inc(x_132); -x_133 = lean_ctor_get(x_108, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_134 = x_108; +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_133 = x_127; } else { - lean_dec_ref(x_108); - x_134 = lean_box(0); + lean_dec_ref(x_127); + x_133 = lean_box(0); } -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(1, 2, 0); } else { - x_135 = x_134; + x_134 = x_133; } -lean_ctor_set(x_135, 0, x_132); -lean_ctor_set(x_135, 1, x_133); -return x_135; +lean_ctor_set(x_134, 0, x_131); +lean_ctor_set(x_134, 1, x_132); +return x_134; } } -} -} -block_20: -{ -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_14 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(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; -} else { -lean_object* x_16; size_t x_17; size_t x_18; -x_16 = lean_ctor_get(x_12, 0); -lean_inc(x_16); -lean_dec(x_12); -x_17 = 1; -x_18 = x_5 + x_17; -x_5 = x_18; -x_6 = x_16; -x_11 = x_13; +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +lean_dec(x_106); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_135 = lean_ctor_get(x_124, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_124, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + x_137 = x_124; +} else { + lean_dec_ref(x_124); + x_137 = lean_box(0); +} +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); +} else { + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; +} +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +lean_dec(x_103); +x_139 = lean_ctor_get(x_118, 1); +lean_inc(x_139); +lean_dec(x_118); +x_140 = lean_ctor_get(x_119, 0); +lean_inc(x_140); +lean_dec(x_119); +x_141 = l_Lean_instInhabitedExpr; +x_142 = lean_array_get(x_141, x_3, x_140); +lean_dec(x_140); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_143 = l_Lean_Meta_mkAdd(x_27, x_142, x_8, x_9, x_10, x_11, x_139); +if (lean_obj_tag(x_143) == 0) +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_143, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_143, 1); +lean_inc(x_145); +lean_dec(x_143); +lean_ctor_set(x_7, 1, x_144); +lean_ctor_set(x_7, 0, x_106); +x_146 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_146, 0, x_7); +x_13 = x_146; +x_14 = x_145; +goto block_21; +} +else +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_106); +lean_free_object(x_7); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_147 = lean_ctor_get(x_143, 0); +lean_inc(x_147); +x_148 = lean_ctor_get(x_143, 1); +lean_inc(x_148); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + x_149 = x_143; +} else { + lean_dec_ref(x_143); + x_149 = lean_box(0); +} +if (lean_is_scalar(x_149)) { + x_150 = lean_alloc_ctor(1, 2, 0); +} else { + x_150 = x_149; +} +lean_ctor_set(x_150, 0, x_147); +lean_ctor_set(x_150, 1, x_148); +return x_150; +} +} +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_106); +lean_dec(x_103); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_151 = lean_ctor_get(x_118, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_118, 1); +lean_inc(x_152); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_153 = x_118; +} else { + lean_dec_ref(x_118); + x_153 = lean_box(0); +} +if (lean_is_scalar(x_153)) { + x_154 = lean_alloc_ctor(1, 2, 0); +} else { + x_154 = x_153; +} +lean_ctor_set(x_154, 0, x_151); +lean_ctor_set(x_154, 1, x_152); +return x_154; +} +} +else +{ +lean_object* x_155; +lean_dec(x_103); +lean_dec(x_24); +lean_ctor_set(x_7, 0, x_106); +x_155 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_155, 0, x_7); +x_13 = x_155; +x_14 = x_116; +goto block_21; +} +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; +lean_dec(x_106); +lean_dec(x_103); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_156 = lean_ctor_get(x_114, 0); +lean_inc(x_156); +x_157 = lean_ctor_get(x_114, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_158 = x_114; +} else { + lean_dec_ref(x_114); + x_158 = lean_box(0); +} +if (lean_is_scalar(x_158)) { + x_159 = lean_alloc_ctor(1, 2, 0); +} else { + x_159 = x_158; +} +lean_ctor_set(x_159, 0, x_156); +lean_ctor_set(x_159, 1, x_157); +return x_159; +} +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_106); +lean_dec(x_103); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_160 = lean_ctor_get(x_111, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_111, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_162 = x_111; +} else { + lean_dec_ref(x_111); + x_162 = lean_box(0); +} +if (lean_is_scalar(x_162)) { + x_163 = lean_alloc_ctor(1, 2, 0); +} else { + x_163 = x_162; +} +lean_ctor_set(x_163, 0, x_160); +lean_ctor_set(x_163, 1, x_161); +return x_163; +} +} +else +{ +lean_object* x_164; lean_object* x_165; +lean_dec(x_103); +lean_dec(x_24); +x_164 = lean_ctor_get(x_107, 1); +lean_inc(x_164); +lean_dec(x_107); +lean_ctor_set(x_7, 0, x_106); +x_165 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_165, 0, x_7); +x_13 = x_165; +x_14 = x_164; +goto block_21; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; +lean_dec(x_106); +lean_dec(x_103); +lean_free_object(x_7); +lean_dec(x_27); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_166 = lean_ctor_get(x_107, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_107, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_107)) { + lean_ctor_release(x_107, 0); + lean_ctor_release(x_107, 1); + x_168 = x_107; +} else { + lean_dec_ref(x_107); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +return x_169; +} +} +} +} +else +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; uint8_t x_175; +x_170 = lean_ctor_get(x_7, 0); +x_171 = lean_ctor_get(x_7, 1); +lean_inc(x_171); +lean_inc(x_170); +lean_dec(x_7); +x_172 = lean_ctor_get(x_170, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_170, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_170, 2); +lean_inc(x_174); +x_175 = lean_nat_dec_lt(x_173, x_174); +if (x_175 == 0) +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_174); +lean_dec(x_173); +lean_dec(x_172); +lean_dec(x_24); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_170); +lean_ctor_set(x_176, 1, x_171); +x_177 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_177, 0, x_176); +x_13 = x_177; +x_14 = x_12; +goto block_21; +} +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; +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + lean_ctor_release(x_170, 2); + x_178 = x_170; +} else { + lean_dec_ref(x_170); + x_178 = lean_box(0); +} +x_179 = lean_array_fget(x_172, x_173); +x_180 = lean_unsigned_to_nat(1u); +x_181 = lean_nat_add(x_173, x_180); +lean_dec(x_173); +if (lean_is_scalar(x_178)) { + x_182 = lean_alloc_ctor(0, 3, 0); +} else { + x_182 = x_178; +} +lean_ctor_set(x_182, 0, x_172); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_182, 2, x_174); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_24); +lean_inc(x_1); +x_183 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isInductiveHypothesis(x_1, x_24, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; uint8_t x_185; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_unbox(x_184); +lean_dec(x_184); +if (x_185 == 0) +{ +lean_object* x_186; lean_object* x_187; +x_186 = lean_ctor_get(x_183, 1); +lean_inc(x_186); +lean_dec(x_183); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_24); +x_187 = l_Lean_Meta_inferType(x_24, x_8, x_9, x_10, x_11, x_186); +if (lean_obj_tag(x_187) == 0) +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +lean_dec(x_187); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_190 = l_Lean_Meta_whnf(x_188, x_8, x_9, x_10, x_11, x_189); +if (lean_obj_tag(x_190) == 0) +{ +lean_object* x_191; lean_object* x_192; uint8_t 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(x_190); +x_193 = l_Lean_Expr_isForall(x_191); +lean_dec(x_191); +if (x_193 == 0) +{ +lean_object* x_194; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_1); +x_194 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_isRecField_x3f(x_1, x_2, x_24, x_8, x_9, x_10, x_11, x_192); +lean_dec(x_24); +if (lean_obj_tag(x_194) == 0) +{ +lean_object* x_195; +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +if (lean_obj_tag(x_195) == 0) +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; +x_196 = lean_ctor_get(x_194, 1); +lean_inc(x_196); +lean_dec(x_194); +x_197 = l_Lean_mkOptionalNode___closed__2; +x_198 = lean_array_push(x_197, x_179); +x_199 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_200 = l_Lean_Meta_mkAppM(x_199, x_198, x_8, x_9, x_10, x_11, x_196); +if (lean_obj_tag(x_200) == 0) +{ +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_200, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_200, 1); +lean_inc(x_202); +lean_dec(x_200); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_203 = l_Lean_Meta_mkAdd(x_171, x_201, x_8, x_9, x_10, x_11, x_202); +if (lean_obj_tag(x_203) == 0) +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_206, 0, x_182); +lean_ctor_set(x_206, 1, x_204); +x_207 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_207, 0, x_206); +x_13 = x_207; +x_14 = x_205; +goto block_21; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_182); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_208 = lean_ctor_get(x_203, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_203, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + x_210 = x_203; +} else { + lean_dec_ref(x_203); + x_210 = lean_box(0); +} +if (lean_is_scalar(x_210)) { + x_211 = lean_alloc_ctor(1, 2, 0); +} else { + x_211 = x_210; +} +lean_ctor_set(x_211, 0, x_208); +lean_ctor_set(x_211, 1, x_209); +return x_211; +} +} +else +{ +lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; +lean_dec(x_182); +lean_dec(x_171); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_212 = lean_ctor_get(x_200, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_200, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + lean_ctor_release(x_200, 1); + x_214 = x_200; +} else { + lean_dec_ref(x_200); + x_214 = lean_box(0); +} +if (lean_is_scalar(x_214)) { + x_215 = lean_alloc_ctor(1, 2, 0); +} else { + x_215 = x_214; +} +lean_ctor_set(x_215, 0, x_212); +lean_ctor_set(x_215, 1, x_213); +return x_215; +} +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +lean_dec(x_179); +x_216 = lean_ctor_get(x_194, 1); +lean_inc(x_216); +lean_dec(x_194); +x_217 = lean_ctor_get(x_195, 0); +lean_inc(x_217); +lean_dec(x_195); +x_218 = l_Lean_instInhabitedExpr; +x_219 = lean_array_get(x_218, x_3, x_217); +lean_dec(x_217); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_220 = l_Lean_Meta_mkAdd(x_171, x_219, x_8, x_9, x_10, x_11, x_216); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_223, 0, x_182); +lean_ctor_set(x_223, 1, x_221); +x_224 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_224, 0, x_223); +x_13 = x_224; +x_14 = x_222; +goto block_21; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +lean_dec(x_182); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_225 = lean_ctor_get(x_220, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_227 = x_220; +} else { + lean_dec_ref(x_220); + x_227 = lean_box(0); +} +if (lean_is_scalar(x_227)) { + x_228 = lean_alloc_ctor(1, 2, 0); +} else { + x_228 = x_227; +} +lean_ctor_set(x_228, 0, x_225); +lean_ctor_set(x_228, 1, x_226); +return x_228; +} +} +} +else +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; +lean_dec(x_182); +lean_dec(x_179); +lean_dec(x_171); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_229 = lean_ctor_get(x_194, 0); +lean_inc(x_229); +x_230 = lean_ctor_get(x_194, 1); +lean_inc(x_230); +if (lean_is_exclusive(x_194)) { + lean_ctor_release(x_194, 0); + lean_ctor_release(x_194, 1); + x_231 = x_194; +} else { + lean_dec_ref(x_194); + x_231 = lean_box(0); +} +if (lean_is_scalar(x_231)) { + x_232 = lean_alloc_ctor(1, 2, 0); +} else { + x_232 = x_231; +} +lean_ctor_set(x_232, 0, x_229); +lean_ctor_set(x_232, 1, x_230); +return x_232; +} +} +else +{ +lean_object* x_233; lean_object* x_234; +lean_dec(x_179); +lean_dec(x_24); +x_233 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_233, 0, x_182); +lean_ctor_set(x_233, 1, x_171); +x_234 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_234, 0, x_233); +x_13 = x_234; +x_14 = x_192; +goto block_21; +} +} +else +{ +lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_182); +lean_dec(x_179); +lean_dec(x_171); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_235 = lean_ctor_get(x_190, 0); +lean_inc(x_235); +x_236 = lean_ctor_get(x_190, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + x_237 = x_190; +} else { + lean_dec_ref(x_190); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(1, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_235); +lean_ctor_set(x_238, 1, x_236); +return x_238; +} +} +else +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +lean_dec(x_182); +lean_dec(x_179); +lean_dec(x_171); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_239 = lean_ctor_get(x_187, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_187, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_241 = x_187; +} else { + lean_dec_ref(x_187); + x_241 = lean_box(0); +} +if (lean_is_scalar(x_241)) { + x_242 = lean_alloc_ctor(1, 2, 0); +} else { + x_242 = x_241; +} +lean_ctor_set(x_242, 0, x_239); +lean_ctor_set(x_242, 1, x_240); +return x_242; +} +} +else +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; +lean_dec(x_179); +lean_dec(x_24); +x_243 = lean_ctor_get(x_183, 1); +lean_inc(x_243); +lean_dec(x_183); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_182); +lean_ctor_set(x_244, 1, x_171); +x_245 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_245, 0, x_244); +x_13 = x_245; +x_14 = x_243; +goto block_21; +} +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_182); +lean_dec(x_179); +lean_dec(x_171); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_246 = lean_ctor_get(x_183, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_183, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + lean_ctor_release(x_183, 1); + x_248 = x_183; +} else { + lean_dec_ref(x_183); + x_248 = lean_box(0); +} +if (lean_is_scalar(x_248)) { + x_249 = lean_alloc_ctor(1, 2, 0); +} else { + x_249 = x_248; +} +lean_ctor_set(x_249, 0, x_246); +lean_ctor_set(x_249, 1, x_247); +return x_249; +} +} +} +} +block_21: +{ +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_1); +x_15 = lean_ctor_get(x_13, 0); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; size_t x_18; size_t x_19; +x_17 = lean_ctor_get(x_13, 0); +lean_inc(x_17); +lean_dec(x_13); +x_18 = 1; +x_19 = x_6 + x_18; +x_6 = x_19; +x_7 = x_17; +x_12 = x_14; goto _start; } } @@ -2691,7 +3581,7 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_2); -x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(x_2, x_3, x_3, x_25, x_26, x_24, x_11, x_12, x_13, x_14, x_20); +x_27 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(x_2, x_3, x_9, x_3, x_25, x_26, x_24, x_11, x_12, x_13, x_14, x_20); if (lean_obj_tag(x_27) == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -3044,29 +3934,19 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSiz return x_2; } } -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__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* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___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, lean_object* x_12) { _start: { -lean_object* x_11; -x_11 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -return x_11; -} -} -lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___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_4); -lean_dec(x_4); +size_t x_13; size_t x_14; lean_object* x_15; x_13 = lean_unbox_usize(x_5); lean_dec(x_5); -x_14 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +x_14 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1(x_1, x_2, x_3, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -return x_14; +return x_15; } } lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__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) { @@ -3130,7 +4010,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__3; x_2 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__4; -x_3 = lean_unsigned_to_nat(62u); +x_3 = lean_unsigned_to_nat(77u); x_4 = lean_unsigned_to_nat(2u); x_5 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors___rarg___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4994,7 +5874,1386 @@ lean_dec(x_3); return x_12; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1() { +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2(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; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__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) { +_start: +{ +lean_object* x_7; +lean_inc(x_1); +x_7 = l_Lean_getConstInfo___at_Lean_Meta_getParamNames___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +if (lean_obj_tag(x_8) == 6) +{ +uint8_t x_9; +lean_dec(x_1); +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_7, 0); +lean_dec(x_10); +x_11 = lean_ctor_get(x_8, 0); +lean_inc(x_11); +lean_dec(x_8); +lean_ctor_set(x_7, 0, x_11); +return x_7; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_dec(x_7); +x_13 = lean_ctor_get(x_8, 0); +lean_inc(x_13); +lean_dec(x_8); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +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; +lean_dec(x_8); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_dec(x_7); +x_16 = lean_box(0); +x_17 = l_Lean_mkConst(x_1, x_16); +x_18 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_18, 0, x_17); +x_19 = l_Lean_KernelException_toMessageData___closed__3; +x_20 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_18); +x_21 = l_Lean_getConstInfoCtor___rarg___lambda__1___closed__2; +x_22 = lean_alloc_ctor(10, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +x_23 = l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2(x_22, x_2, x_3, x_4, x_5, x_15); +return x_23; +} +} +else +{ +uint8_t x_24; +lean_dec(x_1); +x_24 = !lean_is_exclusive(x_7); +if (x_24 == 0) +{ +return x_7; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_7); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__3(lean_object* x_1, lean_object* 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, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; uint8_t x_19; +x_19 = x_5 < x_4; +if (x_19 == 0) +{ +lean_object* x_20; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_20 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_20, 0, x_6); +lean_ctor_set(x_20, 1, x_11); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_array_uget(x_21, x_5); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_22); +x_23 = l_Lean_Meta_inferType(x_22, x_7, x_8, x_9, x_10, x_11); +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(x_23); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_26 = l_Lean_Meta_whnf(x_24, x_7, x_8, x_9, x_10, x_25); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_Expr_isForall(x_27); +lean_dec(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; +lean_inc(x_2); +x_30 = lean_array_push(x_2, x_22); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_1); +x_31 = l_Lean_Meta_mkAppM(x_1, x_30, x_7, x_8, x_9, x_10, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_34 = l_Lean_Meta_mkAdd(x_6, x_32, x_7, x_8, x_9, x_10, x_33); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_35); +x_12 = x_37; +x_13 = x_36; +goto block_18; +} +else +{ +uint8_t x_38; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_34); +if (x_38 == 0) +{ +return x_34; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_34, 0); +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_34); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_31); +if (x_42 == 0) +{ +return x_31; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_31, 0); +x_44 = lean_ctor_get(x_31, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_31); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} +} +} +else +{ +lean_object* x_46; +lean_dec(x_22); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_6); +x_12 = x_46; +x_13 = x_28; +goto block_18; +} +} +else +{ +uint8_t x_47; +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_26); +if (x_47 == 0) +{ +return x_26; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_26, 0); +x_49 = lean_ctor_get(x_26, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_26); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_2); +lean_dec(x_1); +x_51 = !lean_is_exclusive(x_23); +if (x_51 == 0) +{ +return x_23; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_23, 0); +x_53 = lean_ctor_get(x_23, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_23); +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; +} +} +} +block_18: +{ +lean_object* x_14; size_t x_15; size_t x_16; +x_14 = lean_ctor_get(x_12, 0); +lean_inc(x_14); +lean_dec(x_12); +x_15 = 1; +x_16 = x_5 + x_15; +x_5 = x_16; +x_6 = x_14; +x_11 = x_13; +goto _start; +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6(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; lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_4, 3); +x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_7); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_7); +lean_ctor_set(x_11, 1, x_10); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_11); +return x_8; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_12 = lean_ctor_get(x_8, 0); +x_13 = lean_ctor_get(x_8, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_8); +lean_inc(x_7); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_7); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +} +lean_object* l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_4, 0); +lean_inc(x_7); +x_8 = l_Lean_KernelException_toMessageData(x_1, x_7); +x_9 = l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6(x_8, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_4); +return x_9; +} +} +lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_7 = lean_st_ref_get(x_5, x_6); +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = lean_ctor_get(x_8, 0); +lean_inc(x_10); +lean_dec(x_8); +x_11 = lean_add_decl(x_10, x_1); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +lean_dec(x_11); +x_13 = l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__5(x_12, x_2, x_3, x_4, x_5, x_9); +return x_13; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_inc(x_14); +lean_dec(x_11); +x_15 = l_Lean_setEnv___at_Lean_Meta_orelse___spec__1(x_14, x_2, x_3, x_4, x_5, x_9); +lean_dec(x_4); +return x_15; +} +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_6); +x_11 = l_Lean_Meta_mkLambdaFVars(x_1, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +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_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(x_11); +x_14 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_14, 0, x_2); +lean_ctor_set(x_14, 1, x_3); +lean_ctor_set(x_14, 2, x_4); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +x_16 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_16, 0, x_15); +x_17 = l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4(x_16, x_6, x_7, x_8, x_9, x_13); +lean_dec(x_6); +lean_dec(x_16); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_18 = !lean_is_exclusive(x_11); +if (x_18 == 0) +{ +return x_11; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_11, 0); +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_11); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("sizeOf_spec"); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2(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: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = l_Lean_mkOptionalNode___closed__2; +x_14 = lean_array_push(x_13, x_1); +x_15 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_16 = l_Lean_Meta_mkAppM(x_15, x_14, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l_Lean_Literal_type___closed__3; +x_20 = lean_unsigned_to_nat(1u); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_21 = l_Lean_Meta_mkNumeral(x_19, x_20, x_8, x_9, x_10, x_11, x_18); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; lean_object* x_26; size_t x_27; lean_object* x_28; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_2, 2); +x_25 = lean_usize_of_nat(x_24); +x_26 = lean_ctor_get(x_2, 1); +x_27 = lean_usize_of_nat(x_26); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_28 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__3(x_15, x_13, x_2, x_25, x_27, x_22, x_8, x_9, x_10, x_11, x_23); +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(x_28); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_29); +x_31 = l_Lean_Meta_mkEq(x_17, x_29, x_8, x_9, x_10, x_11, x_30); +if (lean_obj_tag(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; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2; +x_35 = l_Lean_Name_append(x_3, x_34); +x_36 = l_Array_append___rarg(x_4, x_7); +x_37 = l_Array_ofSubarray___rarg(x_2); +x_38 = l_Array_append___rarg(x_36, x_37); +lean_dec(x_37); +lean_inc(x_8); +lean_inc(x_38); +x_39 = l_Lean_Meta_mkForallFVars(x_38, x_32, x_8, x_9, x_10, x_11, x_33); +if (lean_obj_tag(x_39) == 0) +{ +uint8_t x_40; +x_40 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 3); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_dec(x_39); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_43 = l_Lean_Meta_mkEqRefl(x_29, x_8, x_9, x_10, x_11, x_42); +if (lean_obj_tag(x_43) == 0) +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_43, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_43, 1); +lean_inc(x_45); +lean_dec(x_43); +x_46 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__1(x_38, x_35, x_6, x_41, x_44, x_8, x_9, x_10, x_11, x_45); +lean_dec(x_11); +lean_dec(x_9); +return x_46; +} +else +{ +uint8_t x_47; +lean_dec(x_41); +lean_dec(x_38); +lean_dec(x_35); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_47 = !lean_is_exclusive(x_43); +if (x_47 == 0) +{ +return x_43; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_43, 0); +x_49 = lean_ctor_get(x_43, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_43); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_38); +lean_dec(x_35); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_51 = !lean_is_exclusive(x_39); +if (x_51 == 0) +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_39, 0); +lean_dec(x_52); +x_53 = lean_box(0); +lean_ctor_set(x_39, 0, x_53); +return x_39; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_39, 1); +lean_inc(x_54); +lean_dec(x_39); +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_54); +return x_56; +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_38); +lean_dec(x_35); +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +x_57 = !lean_is_exclusive(x_39); +if (x_57 == 0) +{ +return x_39; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_39, 0); +x_59 = lean_ctor_get(x_39, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_39); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_29); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_61 = !lean_is_exclusive(x_31); +if (x_61 == 0) +{ +return x_31; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_31, 0); +x_63 = lean_ctor_get(x_31, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_31); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_65 = !lean_is_exclusive(x_28); +if (x_65 == 0) +{ +return x_28; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_28, 0); +x_67 = lean_ctor_get(x_28, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_28); +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 +{ +uint8_t x_69; +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_69 = !lean_is_exclusive(x_21); +if (x_69 == 0) +{ +return x_21; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_21, 0); +x_71 = lean_ctor_get(x_21, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_21); +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; +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_4); +x_73 = !lean_is_exclusive(x_16); +if (x_73 == 0) +{ +return x_16; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_16, 0); +x_75 = lean_ctor_get(x_16, 1); +lean_inc(x_75); +lean_inc(x_74); +lean_dec(x_16); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; +} +} +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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) { +_start: +{ +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; lean_object* x_21; lean_object* x_22; +x_13 = lean_ctor_get(x_1, 3); +lean_inc(x_13); +lean_dec(x_1); +x_14 = lean_unsigned_to_nat(0u); +lean_inc(x_13); +lean_inc(x_6); +x_15 = l_Array_toSubarray___rarg(x_6, x_14, x_13); +x_16 = lean_array_get_size(x_6); +lean_inc(x_6); +x_17 = l_Array_toSubarray___rarg(x_6, x_13, x_16); +lean_inc(x_2); +x_18 = l_Lean_mkConst(x_2, x_3); +x_19 = l_Lean_mkAppN(x_18, x_6); +lean_dec(x_6); +x_20 = l_Array_ofSubarray___rarg(x_15); +lean_dec(x_15); +lean_inc(x_20); +x_21 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___boxed), 12, 6); +lean_closure_set(x_21, 0, x_19); +lean_closure_set(x_21, 1, x_17); +lean_closure_set(x_21, 2, x_2); +lean_closure_set(x_21, 3, x_20); +lean_closure_set(x_21, 4, x_4); +lean_closure_set(x_21, 5, x_5); +x_22 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances___rarg(x_20, x_21, x_8, x_9, x_10, x_11, x_12); +return x_22; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem(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_inc(x_3); +x_9 = l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__1(x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +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_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +lean_dec(x_9); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_11, 2); +lean_inc(x_14); +lean_dec(x_11); +lean_inc(x_13); +x_15 = l_List_map___at_Lean_Meta_addInstance___spec__1(x_13); +x_16 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__3___boxed), 12, 5); +lean_closure_set(x_16, 0, x_10); +lean_closure_set(x_16, 1, x_3); +lean_closure_set(x_16, 2, x_15); +lean_closure_set(x_16, 3, x_1); +lean_closure_set(x_16, 4, x_13); +x_17 = l_Lean_Meta_forallTelescopeReducing___at_Lean_Meta_getParamNames___spec__4___rarg(x_14, x_16, x_4, x_5, x_6, x_7, x_12); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_9); +if (x_18 == 0) +{ +return x_9; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_9, 0); +x_20 = lean_ctor_get(x_9, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_9); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +} +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_getConstInfoCtor___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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) { +_start: +{ +size_t x_12; size_t x_13; lean_object* x_14; +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_14 = l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__3(x_1, x_2, x_3, x_12, x_13, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_3); +return x_14; +} +} +lean_object* l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6___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: +{ +lean_object* x_7; +x_7 = l_Lean_throwError___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__6(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_throwKernelException___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__5(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_7; +} +} +lean_object* l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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: +{ +lean_object* x_11; +x_11 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_7); +return x_11; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_13; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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) { +_start: +{ +lean_object* x_13; +x_13 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__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); +lean_dec(x_7); +return x_13; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___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_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_2); +return x_9; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1___rarg), 1, 0); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__1(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2___rarg), 1, 0); +return x_3; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems_match__2(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__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: +{ +if (lean_obj_tag(x_3) == 0) +{ +lean_object* x_10; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_4); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_4); +x_11 = lean_ctor_get(x_3, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_3, 1); +lean_inc(x_12); +lean_dec(x_3); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_2); +x_13 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem(x_2, x_1, x_11, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_box(0); +x_3 = x_12; +x_4 = x_15; +x_9 = x_14; +goto _start; +} +else +{ +uint8_t x_17; +lean_dec(x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +x_17 = !lean_is_exclusive(x_13); +if (x_17 == 0) +{ +return x_13; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_13, 0); +x_19 = lean_ctor_get(x_13, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_13); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__2(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, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +uint8_t x_11; +x_11 = x_4 < x_3; +if (x_11 == 0) +{ +lean_object* x_12; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; +lean_dec(x_5); +x_13 = lean_array_uget(x_2, x_4); +x_14 = l_Lean_getConstInfoInduct___at_Lean_Meta_mkSizeOfFns___spec__1(x_13, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 4); +lean_inc(x_17); +x_18 = lean_box(0); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_19 = l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__1(x_1, x_15, x_17, x_18, x_6, x_7, x_8, x_9, x_16); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; size_t x_21; size_t x_22; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = 1; +x_22 = x_4 + x_21; +x_4 = x_22; +x_5 = x_18; +x_10 = x_20; +goto _start; +} +else +{ +uint8_t x_24; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_24 = !lean_is_exclusive(x_19); +if (x_24 == 0) +{ +return x_19; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_19, 0); +x_26 = lean_ctor_get(x_19, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_19); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +else +{ +uint8_t x_28; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +x_28 = !lean_is_exclusive(x_14); +if (x_28 == 0) +{ +return x_14; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_14, 0); +x_30 = lean_ctor_get(x_14, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_14); +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* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(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; size_t x_9; size_t x_10; lean_object* x_11; lean_object* x_12; +x_8 = lean_array_get_size(x_1); +x_9 = lean_usize_of_nat(x_8); +lean_dec(x_8); +x_10 = 0; +x_11 = lean_box(0); +x_12 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__2(x_2, x_1, x_9, x_10, x_11, x_3, x_4, x_5, x_6, x_7); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) +{ +lean_object* x_14; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +lean_ctor_set(x_12, 0, x_11); +return x_12; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_11); +lean_ctor_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_12); +if (x_17 == 0) +{ +return x_12; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 0); +x_19 = lean_ctor_get(x_12, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_12); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +return x_20; +} +} +} +} +lean_object* l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___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) { +_start: +{ +lean_object* x_10; +x_10 = l_List_forIn_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +return x_10; +} +} +lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___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_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +size_t x_11; size_t x_12; lean_object* x_13; +x_11 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_12 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_13 = l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___spec__2(x_1, x_2, x_11, x_12, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +lean_object* l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems___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_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_2); +lean_dec(x_1); +return x_8; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1() { _start: { lean_object* x_1; @@ -5002,17 +7261,17 @@ x_1 = lean_mk_string("genSizeOf"); return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3() { _start: { lean_object* x_1; @@ -5020,13 +7279,13 @@ x_1 = lean_mk_string("generate `SizeOf` instance for inductive types and structu return x_1; } } -static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4() { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_initFn____x40_Lean_Data_Options___hyg_528____closed__3; x_2 = l_Lean_instInhabitedParserDescr___closed__1; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5034,21 +7293,93 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422_(lean_object* x_1) { +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("genSizeOfSpec"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("generate `SizeOf` specificiation theorems for automatically generated instances"); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_initFn____x40_Lean_Data_Options___hyg_528____closed__3; +x_2 = l_Lean_instInhabitedParserDescr___closed__1; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2; -x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2; +x_3 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4; x_4 = lean_register_option(x_2, x_3, x_1); +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = lean_ctor_get(x_4, 1); +lean_inc(x_5); +lean_dec(x_4); +x_6 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6; +x_7 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8; +x_8 = lean_register_option(x_6, x_7, x_5); +return x_8; +} +else +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_4); +if (x_9 == 0) +{ return x_4; } +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_4, 0); +x_11 = lean_ctor_get(x_4, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_4); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} } uint8_t l_Lean_Meta_generateSizeOfInstance(lean_object* x_1) { _start: { lean_object* x_2; uint8_t x_3; uint8_t x_4; -x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2; x_3 = 1; x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3); return x_4; @@ -5064,6 +7395,26 @@ x_3 = lean_box(x_2); return x_3; } } +uint8_t l_Lean_Meta_generateSizeOfSpec(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; uint8_t x_4; +x_2 = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6; +x_3 = 1; +x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3); +return x_4; +} +} +lean_object* l_Lean_Meta_generateSizeOfSpec___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Meta_generateSizeOfSpec(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} lean_object* l_Lean_Meta_mkSizeOfInstances_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -5220,92 +7571,7 @@ return x_38; } } } -lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___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) { -_start: -{ -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_4, 3); -x_8 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_2, x_3, x_4, x_5, x_6); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_7); -x_11 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_11, 0, x_7); -lean_ctor_set(x_11, 1, x_10); -lean_ctor_set_tag(x_8, 1); -lean_ctor_set(x_8, 0, x_11); -return x_8; -} -else -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_12 = lean_ctor_get(x_8, 0); -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_inc(x_12); -lean_dec(x_8); -lean_inc(x_7); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_7); -lean_ctor_set(x_14, 1, x_12); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -} -lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___spec__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) { -_start: -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_4, 0); -lean_inc(x_7); -x_8 = l_Lean_KernelException_toMessageData(x_1, x_7); -x_9 = l_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___spec__4(x_8, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_4); -return x_9; -} -} -lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___spec__2(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_7 = lean_st_ref_get(x_5, x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = lean_ctor_get(x_8, 0); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_add_decl(x_10, x_1); -if (lean_obj_tag(x_11) == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -lean_dec(x_11); -x_13 = l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___spec__3(x_12, x_2, x_3, x_4, x_5, x_9); -return x_13; -} -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_14); -lean_dec(x_11); -x_15 = l_Lean_setEnv___at_Lean_Meta_orelse___spec__1(x_14, x_2, x_3, x_4, x_5, x_9); -lean_dec(x_4); -return x_15; -} -} -} -static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1() { +static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -5313,17 +7579,17 @@ x_1 = lean_mk_string("_sizeOf_inst"); return x_1; } } -static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2() { +static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1; +x_2 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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, 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* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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, 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_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; @@ -5363,7 +7629,7 @@ lean_inc(x_32); x_33 = lean_ctor_get(x_31, 1); lean_inc(x_33); lean_dec(x_31); -x_34 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2; +x_34 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2; x_35 = l_Lean_Name_append(x_8, x_34); x_36 = l_Array_append___rarg(x_9, x_5); lean_inc(x_13); @@ -5402,7 +7668,7 @@ lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_45); x_47 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_47, 0, x_46); lean_inc(x_15); -x_48 = l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___spec__2(x_47, x_13, x_14, x_15, x_16, x_42); +x_48 = l_Lean_addDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___spec__4(x_47, x_13, x_14, x_15, x_16, x_42); lean_dec(x_47); if (lean_obj_tag(x_48) == 0) { @@ -5567,7 +7833,7 @@ return x_72; } } } -static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1() { +static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -5575,17 +7841,17 @@ x_1 = lean_mk_string("m"); return x_1; } } -static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2() { +static lean_object* _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1; +x_2 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2(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* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2(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; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -5615,7 +7881,7 @@ lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___boxed), 17, 11); +x_23 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___boxed), 17, 11); lean_closure_set(x_23, 0, x_18); lean_closure_set(x_23, 1, x_5); lean_closure_set(x_23, 2, x_15); @@ -5627,7 +7893,7 @@ lean_closure_set(x_23, 7, x_2); lean_closure_set(x_23, 8, x_3); lean_closure_set(x_23, 9, x_21); lean_closure_set(x_23, 10, x_14); -x_24 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2; +x_24 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2; x_25 = 0; x_26 = l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___spec__2___rarg(x_24, x_25, x_17, x_23, x_9, x_10, x_11, x_12, x_22); return x_26; @@ -5670,7 +7936,7 @@ return x_30; } } } -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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) { _start: { 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; @@ -5687,7 +7953,7 @@ x_17 = l_Array_toSubarray___rarg(x_6, x_13, x_16); x_18 = l_Array_ofSubarray___rarg(x_15); lean_dec(x_15); lean_inc(x_18); -x_19 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2), 13, 7); +x_19 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2), 13, 7); lean_closure_set(x_19, 0, x_2); lean_closure_set(x_19, 1, x_3); lean_closure_set(x_19, 2, x_6); @@ -5699,7 +7965,7 @@ x_20 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances___rarg(x_18, x return x_20; } } -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__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* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2(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: { if (lean_obj_tag(x_2) == 0) @@ -5781,7 +8047,7 @@ lean_dec(x_24); x_28 = lean_ctor_get(x_26, 2); lean_inc(x_28); lean_inc(x_1); -x_29 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__3___boxed), 12, 5); +x_29 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__3___boxed), 12, 5); lean_closure_set(x_29, 0, x_25); lean_closure_set(x_29, 1, x_26); lean_closure_set(x_29, 2, x_10); @@ -5891,7 +8157,7 @@ lean_dec(x_45); x_49 = lean_ctor_get(x_47, 2); lean_inc(x_49); lean_inc(x_1); -x_50 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__3___boxed), 12, 5); +x_50 = lean_alloc_closure((void*)(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__3___boxed), 12, 5); lean_closure_set(x_50, 0, x_46); lean_closure_set(x_50, 1, x_47); lean_closure_set(x_50, 2, x_10); @@ -6026,11 +8292,11 @@ else { uint8_t x_19; x_19 = l_Lean_Meta_generateSizeOfInstance(x_11); -lean_dec(x_11); if (x_19 == 0) { lean_object* x_20; lean_dec(x_14); +lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); @@ -6078,159 +8344,226 @@ lean_inc(x_28); lean_dec(x_26); x_29 = lean_array_get_size(x_27); x_30 = lean_unsigned_to_nat(0u); +lean_inc(x_27); x_31 = l_Array_toSubarray___rarg(x_27, x_30, x_29); x_32 = lean_ctor_get(x_23, 3); lean_inc(x_32); lean_dec(x_23); -x_33 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5(x_16, x_32, x_31, x_2, x_3, x_4, x_5, x_28); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_32); +x_33 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2(x_16, x_32, x_31, x_2, x_3, x_4, x_5, x_28); if (lean_obj_tag(x_33) == 0) { uint8_t x_34; x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) { -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -x_36 = lean_box(0); -lean_ctor_set(x_33, 0, x_36); -return x_33; -} -else +lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_35 = lean_ctor_get(x_33, 1); +x_36 = lean_ctor_get(x_33, 0); +lean_dec(x_36); +x_37 = l_Lean_Meta_generateSizeOfSpec(x_11); +lean_dec(x_11); +if (x_37 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_33, 1); -lean_inc(x_37); -lean_dec(x_33); -x_38 = lean_box(0); -x_39 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -return x_39; -} -} -else -{ -uint8_t x_40; -x_40 = !lean_is_exclusive(x_33); -if (x_40 == 0) -{ -return x_33; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_41 = lean_ctor_get(x_33, 0); -x_42 = lean_ctor_get(x_33, 1); -lean_inc(x_42); -lean_inc(x_41); -lean_dec(x_33); -x_43 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -return x_43; -} -} -} -else -{ -uint8_t x_44; -lean_dec(x_23); +lean_object* x_38; +lean_dec(x_32); +lean_dec(x_27); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_44 = !lean_is_exclusive(x_26); +x_38 = lean_box(0); +lean_ctor_set(x_33, 0, x_38); +return x_33; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_free_object(x_33); +x_39 = l_List_redLength___rarg(x_32); +x_40 = lean_mk_empty_array_with_capacity(x_39); +lean_dec(x_39); +x_41 = l_List_toArrayAux___rarg(x_32, x_40); +x_42 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_41, x_27, x_2, x_3, x_4, x_5, x_35); +lean_dec(x_27); +lean_dec(x_41); +return x_42; +} +} +else +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_33, 1); +lean_inc(x_43); +lean_dec(x_33); +x_44 = l_Lean_Meta_generateSizeOfSpec(x_11); +lean_dec(x_11); if (x_44 == 0) { +lean_object* x_45; lean_object* x_46; +lean_dec(x_32); +lean_dec(x_27); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_45 = lean_box(0); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_47 = l_List_redLength___rarg(x_32); +x_48 = lean_mk_empty_array_with_capacity(x_47); +lean_dec(x_47); +x_49 = l_List_toArrayAux___rarg(x_32, x_48); +x_50 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_49, x_27, x_2, x_3, x_4, x_5, x_43); +lean_dec(x_27); +lean_dec(x_49); +return x_50; +} +} +} +else +{ +uint8_t x_51; +lean_dec(x_32); +lean_dec(x_27); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_51 = !lean_is_exclusive(x_33); +if (x_51 == 0) +{ +return x_33; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_33, 0); +x_53 = lean_ctor_get(x_33, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_33); +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_55; +lean_dec(x_23); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_55 = !lean_is_exclusive(x_26); +if (x_55 == 0) +{ return x_26; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_26, 0); -x_46 = lean_ctor_get(x_26, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_26); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_23); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_48 = !lean_is_exclusive(x_22); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; -x_49 = lean_ctor_get(x_22, 0); -lean_dec(x_49); -x_50 = lean_box(0); -lean_ctor_set(x_22, 0, x_50); -return x_22; -} -else -{ -lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_22, 1); -lean_inc(x_51); -lean_dec(x_22); -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 -{ -uint8_t x_54; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_54 = !lean_is_exclusive(x_22); -if (x_54 == 0) -{ -return x_22; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_22, 0); -x_56 = lean_ctor_get(x_22, 1); +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_26, 0); +x_57 = lean_ctor_get(x_26, 1); +lean_inc(x_57); lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_22); -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; +lean_dec(x_26); +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 { -lean_object* x_58; +uint8_t x_59; +lean_dec(x_23); +lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_58 = lean_box(0); -lean_ctor_set(x_12, 0, x_58); +x_59 = !lean_is_exclusive(x_22); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_22, 0); +lean_dec(x_60); +x_61 = lean_box(0); +lean_ctor_set(x_22, 0, x_61); +return x_22; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_22, 1); +lean_inc(x_62); +lean_dec(x_22); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_22); +if (x_65 == 0) +{ +return x_22; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_22, 0); +x_67 = lean_ctor_get(x_22, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_22); +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_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = lean_box(0); +lean_ctor_set(x_12, 0, x_69); return x_12; } } @@ -6238,243 +8571,285 @@ return x_12; } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_59 = lean_ctor_get(x_12, 0); -x_60 = lean_ctor_get(x_12, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_12); -x_61 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1___closed__2; -x_62 = l_Lean_Environment_contains(x_10, x_61); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; -lean_dec(x_59); -lean_dec(x_11); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_63 = lean_box(0); -x_64 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_60); -return x_64; -} -else -{ -uint8_t x_65; -x_65 = l_Lean_Meta_generateSizeOfInstance(x_11); -lean_dec(x_11); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_59); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_60); -return x_67; -} -else -{ -uint8_t x_68; -x_68 = lean_unbox(x_59); -lean_dec(x_59); -if (x_68 == 0) -{ -lean_object* x_69; -lean_inc(x_1); -x_69 = l_Lean_getConstInfoInduct___at_Lean_Meta_mkSizeOfFns___spec__1(x_1, x_2, x_3, x_4, x_5, x_60); -if (lean_obj_tag(x_69) == 0) -{ -lean_object* x_70; uint8_t x_71; -x_70 = lean_ctor_get(x_69, 0); +lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_70 = lean_ctor_get(x_12, 0); +x_71 = lean_ctor_get(x_12, 1); +lean_inc(x_71); lean_inc(x_70); -x_71 = lean_ctor_get_uint8(x_70, sizeof(void*)*5 + 1); -if (x_71 == 0) +lean_dec(x_12); +x_72 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkLocalInstances_loop___rarg___lambda__1___closed__2; +x_73 = l_Lean_Environment_contains(x_10, x_72); +if (x_73 == 0) { -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_69, 1); -lean_inc(x_72); -lean_dec(x_69); +lean_object* x_74; lean_object* x_75; +lean_dec(x_70); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_74 = lean_box(0); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_71); +return x_75; +} +else +{ +uint8_t x_76; +x_76 = l_Lean_Meta_generateSizeOfInstance(x_11); +if (x_76 == 0) +{ +lean_object* x_77; lean_object* x_78; +lean_dec(x_70); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_77 = lean_box(0); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_71); +return x_78; +} +else +{ +uint8_t x_79; +x_79 = lean_unbox(x_70); +lean_dec(x_70); +if (x_79 == 0) +{ +lean_object* x_80; +lean_inc(x_1); +x_80 = l_Lean_getConstInfoInduct___at_Lean_Meta_mkSizeOfFns___spec__1(x_1, x_2, x_3, x_4, x_5, x_71); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; uint8_t x_82; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get_uint8(x_81, sizeof(void*)*5 + 1); +if (x_82 == 0) +{ +lean_object* x_83; lean_object* x_84; +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +lean_dec(x_80); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_73 = l_Lean_Meta_mkSizeOfFns(x_1, x_2, x_3, x_4, x_5, x_72); -if (lean_obj_tag(x_73) == 0) +x_84 = l_Lean_Meta_mkSizeOfFns(x_1, x_2, x_3, x_4, x_5, x_83); +if (lean_obj_tag(x_84) == 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; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -x_76 = lean_array_get_size(x_74); -x_77 = lean_unsigned_to_nat(0u); -x_78 = l_Array_toSubarray___rarg(x_74, x_77, x_76); -x_79 = lean_ctor_get(x_70, 3); -lean_inc(x_79); -lean_dec(x_70); -x_80 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5(x_61, x_79, x_78, x_2, x_3, x_4, x_5, x_75); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_81 = lean_ctor_get(x_80, 1); -lean_inc(x_81); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_82 = x_80; -} else { - lean_dec_ref(x_80); - x_82 = lean_box(0); -} -x_83 = lean_box(0); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 2, 0); -} else { - x_84 = x_82; -} -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_81); -return x_84; -} -else -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_85 = lean_ctor_get(x_80, 0); +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; +x_85 = lean_ctor_get(x_84, 0); lean_inc(x_85); -x_86 = lean_ctor_get(x_80, 1); +x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); -if (lean_is_exclusive(x_80)) { - lean_ctor_release(x_80, 0); - lean_ctor_release(x_80, 1); - x_87 = x_80; -} else { - lean_dec_ref(x_80); - x_87 = lean_box(0); -} -if (lean_is_scalar(x_87)) { - x_88 = lean_alloc_ctor(1, 2, 0); -} else { - x_88 = x_87; -} -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_86); -return x_88; -} -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_70); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_89 = lean_ctor_get(x_73, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_73, 1); +lean_dec(x_84); +x_87 = lean_array_get_size(x_85); +x_88 = lean_unsigned_to_nat(0u); +lean_inc(x_85); +x_89 = l_Array_toSubarray___rarg(x_85, x_88, x_87); +x_90 = lean_ctor_get(x_81, 3); lean_inc(x_90); -if (lean_is_exclusive(x_73)) { - lean_ctor_release(x_73, 0); - lean_ctor_release(x_73, 1); - x_91 = x_73; -} else { - lean_dec_ref(x_73); - 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); -return x_92; -} -} -else +lean_dec(x_81); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +lean_inc(x_90); +x_91 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2(x_72, x_90, x_89, x_2, x_3, x_4, x_5, x_86); +if (lean_obj_tag(x_91) == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; -lean_dec(x_70); +lean_object* x_92; lean_object* x_93; uint8_t x_94; +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +x_94 = l_Lean_Meta_generateSizeOfSpec(x_11); +lean_dec(x_11); +if (x_94 == 0) +{ +lean_object* x_95; lean_object* x_96; +lean_dec(x_90); +lean_dec(x_85); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_93 = lean_ctor_get(x_69, 1); -lean_inc(x_93); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_94 = x_69; -} else { - lean_dec_ref(x_69); - x_94 = lean_box(0); -} x_95 = lean_box(0); -if (lean_is_scalar(x_94)) { +if (lean_is_scalar(x_93)) { x_96 = lean_alloc_ctor(0, 2, 0); } else { - x_96 = x_94; + x_96 = x_93; } lean_ctor_set(x_96, 0, x_95); -lean_ctor_set(x_96, 1, x_93); +lean_ctor_set(x_96, 1, x_92); return x_96; } -} else { lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_97 = lean_ctor_get(x_69, 0); -lean_inc(x_97); -x_98 = lean_ctor_get(x_69, 1); -lean_inc(x_98); -if (lean_is_exclusive(x_69)) { - lean_ctor_release(x_69, 0); - lean_ctor_release(x_69, 1); - x_99 = x_69; -} else { - lean_dec_ref(x_69); - x_99 = lean_box(0); -} -if (lean_is_scalar(x_99)) { - x_100 = lean_alloc_ctor(1, 2, 0); -} else { - x_100 = x_99; -} -lean_ctor_set(x_100, 0, x_97); -lean_ctor_set(x_100, 1, x_98); +lean_dec(x_93); +x_97 = l_List_redLength___rarg(x_90); +x_98 = lean_mk_empty_array_with_capacity(x_97); +lean_dec(x_97); +x_99 = l_List_toArrayAux___rarg(x_90, x_98); +x_100 = l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorems(x_99, x_85, x_2, x_3, x_4, x_5, x_92); +lean_dec(x_85); +lean_dec(x_99); return x_100; } } else { -lean_object* x_101; lean_object* x_102; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_90); +lean_dec(x_85); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_101 = lean_ctor_get(x_91, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_91, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_103 = x_91; +} else { + lean_dec_ref(x_91); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_81); +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_105 = lean_ctor_get(x_84, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_84, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + x_107 = x_84; +} else { + lean_dec_ref(x_84); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +else +{ +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +lean_dec(x_81); +lean_dec(x_11); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_101 = lean_box(0); -x_102 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_102, 0, x_101); -lean_ctor_set(x_102, 1, x_60); -return x_102; +x_109 = lean_ctor_get(x_80, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_110 = x_80; +} else { + lean_dec_ref(x_80); + x_110 = lean_box(0); +} +x_111 = lean_box(0); +if (lean_is_scalar(x_110)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_110; +} +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_109); +return x_112; +} +} +else +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_113 = lean_ctor_get(x_80, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_80, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_115 = x_80; +} else { + lean_dec_ref(x_80); + x_115 = lean_box(0); +} +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(1, 2, 0); +} else { + x_116 = x_115; +} +lean_ctor_set(x_116, 0, x_113); +lean_ctor_set(x_116, 1, x_114); +return x_116; +} +} +else +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_11); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_117 = lean_box(0); +x_118 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_71); +return x_118; } } } @@ -6493,42 +8868,7 @@ lean_dec(x_2); return x_7; } } -lean_object* l_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_throwError___at_Lean_Meta_mkSizeOfInstances___spec__4(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___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) { -_start: -{ -lean_object* x_7; -x_7 = l_Lean_throwKernelException___at_Lean_Meta_mkSizeOfInstances___spec__3(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___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: -{ -lean_object* x_7; -x_7 = l_Lean_addDecl___at_Lean_Meta_mkSizeOfInstances___spec__2(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_7; -} -} -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___boxed(lean_object** _args) { +lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___boxed(lean_object** _args) { lean_object* x_1 = _args[0]; lean_object* x_2 = _args[1]; lean_object* x_3 = _args[2]; @@ -6549,23 +8889,23 @@ lean_object* x_17 = _args[16]; _start: { lean_object* x_18; -x_18 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1(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, x_15, x_16, x_17); +x_18 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1(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, x_15, x_16, x_17); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); return x_18; } } -lean_object* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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* l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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) { _start: { lean_object* x_13; -x_13 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__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 = l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__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); lean_dec(x_7); return x_13; } } -lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1807_(lean_object* x_1) { +lean_object* l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_2362_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -6609,8 +8949,8 @@ l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__ lean_mark_persistent(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__4); l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__5 = _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__5(); lean_mark_persistent(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMotives_loop___rarg___closed__5); -l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___spec__1___closed__1); l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__1 = _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__1(); lean_mark_persistent(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__1); l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__2 = _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfMinors_loop___rarg___lambda__1___closed__2(); @@ -6639,26 +8979,38 @@ l_Lean_Meta_mkSizeOfFns___closed__2 = _init_l_Lean_Meta_mkSizeOfFns___closed__2( lean_mark_persistent(l_Lean_Meta_mkSizeOfFns___closed__2); l_Lean_Meta_mkSizeOfFns___closed__3 = _init_l_Lean_Meta_mkSizeOfFns___closed__3(); lean_mark_persistent(l_Lean_Meta_mkSizeOfFns___closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__1); -l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__2); -l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__3); -l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4(); -lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422____closed__4); -res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1422_(lean_io_mk_world()); +l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1 = _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__1); +l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2 = _init_l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_SizeOf_0__Lean_Meta_mkSizeOfSpecTheorem___lambda__2___closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__1); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__2); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__3); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__4); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__5); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__6); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__7); +l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8 = _init_l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8(); +lean_mark_persistent(l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937____closed__8); +res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1937_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1(); -lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__1); -l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2(); -lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__1___closed__2); -l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1(); -lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__1); -l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2(); -lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__5___lambda__2___closed__2); -res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_1807_(lean_io_mk_world()); +l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__1); +l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__1___closed__2); +l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__1); +l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2 = _init_l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Meta_mkSizeOfInstances___spec__2___lambda__2___closed__2); +res = l_Lean_Meta_initFn____x40_Lean_Meta_SizeOf___hyg_2362_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0)); diff --git a/stage0/stdlib/Lean/Server/FileWorker.c b/stage0/stdlib/Lean/Server/FileWorker.c index b31f81a1b9..df9a6f49b3 100644 --- a/stage0/stdlib/Lean/Server/FileWorker.c +++ b/stage0/stdlib/Lean/Server/FileWorker.c @@ -246,7 +246,6 @@ lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___boxed(lean_obje lean_object* l_Lean_Json_compress(lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_exit___elambda__1___closed__1; -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1___closed__1; lean_object* l_Lean_Server_FileWorker_updateDocument_match__2(lean_object*); lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); @@ -281,7 +280,7 @@ extern lean_object* l_IO_FS_Stream_readLspNotificationAs___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_FileWorker_handleRequest___spec__5___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Server_FileWorker_queueRequest___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__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* l_Lean_Server_FileWorker_withWaitFindSnap___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_logSnapContent(lean_object*, lean_object*, lean_object*); @@ -328,6 +327,7 @@ lean_object* l_IO_FS_Stream_readNotificationAs___at_Lean_Server_FileWorker_initA lean_object* l_Lean_Syntax_getId(lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics___rarg___lambda__1(lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_match__2(lean_object*); lean_object* lean_format_pretty(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_updateDocument___lambda__3___closed__1; @@ -355,6 +355,7 @@ lean_object* l_Lean_Server_FileWorker_mapTask___rarg___lambda__1(lean_object*, l lean_object* l_Lean_Server_FileWorker_handleDefinition___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_mapTask___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_instInhabitedEditableDocument___closed__5; +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover_match__5___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_IO_AsyncList_waitAll___at_Lean_Server_FileWorker_handleWaitForDiagnostics___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); @@ -487,7 +488,6 @@ lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__2; lean_object* l_Lean_getMaxRecDepth(lean_object*); lean_object* l_Lean_Server_FileWorker_workerMain_match__2___rarg(lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); -lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1; lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___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*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__32; lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*); @@ -544,6 +544,7 @@ lean_object* l_Lean_Server_FileWorker_compileHeader_match__3(lean_object*); lean_object* l_Lean_Server_FileWorker_initializeWorker_match__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_ins___at_Lean_Server_FileWorker_queueRequest___spec__2(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2; extern lean_object* l_Lean_instInhabitedName; extern lean_object* l_IO_FS_Stream_readRequestAs___closed__1; lean_object* l_Lean_Server_FileWorker_mainLoop_match__1(lean_object*); @@ -563,7 +564,7 @@ lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol(lean_object*, lean_ob lean_object* l_Lean_Server_FileWorker_mainLoop_match__1___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_String_trim(lean_object*); lean_object* l_List_dropLast___rarg(lean_object*); -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__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* l_IO_mkRef___at_Lean_Server_FileWorker_initializeWorker___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Environment_allImportedModuleNames(lean_object*); extern lean_object* l_IO_FS_Stream_readRequestAs___closed__4; @@ -572,7 +573,6 @@ uint8_t l_Lean_Server_FileWorker_updateDocument___lambda__1(lean_object*, lean_o lean_object* l_Lean_Server_FileWorker_compileHeader_match__3___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_foldDocumentChanges(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_rangeOfSyntax___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1; uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_withPrefix(lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_leanpkgSetupSearchPath_processStderr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -590,8 +590,10 @@ lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__5; lean_object* l_Lean_Server_FileWorker_handleWaitForDiagnostics(lean_object*, lean_object*); extern lean_object* l___private_Lean_Data_Lsp_InitShutdown_0__Lean_Lsp_toJsonInitializeParams____x40_Lean_Data_Lsp_InitShutdown___hyg_165____closed__1; lean_object* l_Lean_Server_FileWorker_updatePendingRequests(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1; lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol_sectionLikeToDocumentSymbols_match__3___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1128____closed__3; +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleHover_match__3(lean_object*); lean_object* l_Lean_Server_FileWorker_unfoldCmdSnaps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_PersistentArray_forInAux___at_Lean_Server_FileWorker_handleDefinition___spec__6(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -605,11 +607,13 @@ lean_object* l_Lean_Server_FileWorker_handleRequest_match__2___rarg___closed__3; lean_object* l_Lean_Server_maybeTee(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_compileHeader___closed__3; lean_object* l_Lean_Server_FileWorker_updateDocument___closed__1; +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_parseParams___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDocumentSymbol___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_TermInfo_tailPos_x3f(lean_object*); +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1; lean_object* l_Lean_Server_FileWorker_workerMain___closed__1; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__13; lean_object* l_Lean_Server_FileWorker_withWaitFindSnap_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -646,6 +650,7 @@ lean_object* l_Lean_Server_FileWorker_handleDefinition_match__7___boxed(lean_obj lean_object* lean_nat_to_int(lean_object*); lean_object* l_Lean_findDocString_x3f___at_Lean_Server_FileWorker_handleHover___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___closed__1; +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2; lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Server_FileWorker_0__Lean_Server_FileWorker_nextCmdSnap___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_FileWorker_handleDefinition_match__7___rarg(lean_object*); lean_object* l_Lean_Server_FileWorker_handleCancelRequest(lean_object*, lean_object*, lean_object*); @@ -5398,21 +5403,20 @@ _start: { if (lean_obj_tag(x_1) == 0) { -lean_object* x_4; lean_object* x_5; +lean_object* x_4; lean_dec(x_2); -x_4 = lean_box(0); -x_5 = lean_apply_1(x_3, x_4); -return x_5; +x_4 = lean_apply_1(x_3, x_1); +return x_4; } else { -lean_object* x_6; lean_object* x_7; +lean_object* x_5; lean_object* x_6; lean_dec(x_3); -x_6 = lean_ctor_get(x_1, 0); -lean_inc(x_6); +x_5 = lean_ctor_get(x_1, 0); +lean_inc(x_5); lean_dec(x_1); -x_7 = lean_apply_1(x_2, x_6); -return x_7; +x_6 = lean_apply_1(x_2, x_5); +return x_6; } } } @@ -5934,7 +5938,126 @@ return x_124; } } } -static lean_object* _init_l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1() { +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2(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 = lean_io_file_exists(x_1, x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; uint8_t x_14; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_box(0); +x_17 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_2, x_3, x_4, x_5, x_6, x_9, x_16, x_15); +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; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = l_Lean_Elab_headerToImports(x_2); +x_20 = l_List_redLength___rarg(x_19); +x_21 = lean_mk_empty_array_with_capacity(x_20); +lean_dec(x_20); +x_22 = l_List_toArrayAux___rarg(x_19, x_21); +x_23 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_1, x_7, x_22, x_8, x_18); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* 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(x_23); +x_26 = l_List_append___rarg(x_9, x_24); +x_27 = lean_box(0); +x_28 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_2, x_3, x_4, x_5, x_6, x_26, x_27, x_25); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_29 = !lean_is_exclusive(x_23); +if (x_29 == 0) +{ +return x_23; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_23, 0); +x_31 = lean_ctor_get(x_23, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_23); +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; +} +} +} +} +else +{ +uint8_t x_33; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_33 = !lean_is_exclusive(x_12); +if (x_33 == 0) +{ +return x_12; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_34 = lean_ctor_get(x_12, 0); +x_35 = lean_ctor_get(x_12, 1); +lean_inc(x_35); +lean_inc(x_34); +lean_dec(x_12); +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; +} +} +} +} +static lean_object* _init_l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("/../lib/lean/src"); +return x_1; +} +} +static lean_object* _init_l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2() { _start: { lean_object* x_1; @@ -5942,215 +6065,122 @@ x_1 = lean_mk_string("LEAN_SRC_PATH"); return x_1; } } -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__2(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* l_Lean_Server_FileWorker_compileHeader___lambda__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) { _start: { -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_30; lean_object* x_31; -x_30 = l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1; -x_31 = lean_io_getenv(x_30, x_9); -if (lean_obj_tag(x_31) == 0) +lean_object* x_10; +x_10 = l_IO_appDir___at_Lean_getBuiltinSearchPath___spec__1(x_9); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_io_file_exists(x_8, x_33); -if (lean_obj_tag(x_32) == 0) -{ -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_unbox(x_35); -lean_dec(x_35); -lean_inc(x_2); -x_10 = x_2; -x_11 = x_37; -x_12 = x_36; -goto block_29; -} -else -{ -uint8_t x_38; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_38 = !lean_is_exclusive(x_34); -if (x_38 == 0) -{ -return x_34; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_34, 0); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_34); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; -x_42 = lean_ctor_get(x_32, 0); -lean_inc(x_42); -lean_dec(x_32); -x_43 = lean_ctor_get(x_34, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_34, 1); -lean_inc(x_44); -lean_dec(x_34); -lean_inc(x_2); -x_45 = l_Lean_parseSearchPath(x_42, x_2); -lean_dec(x_42); -x_46 = lean_unbox(x_43); -lean_dec(x_43); -x_10 = x_45; -x_11 = x_46; -x_12 = x_44; -goto block_29; -} -else -{ -uint8_t x_47; -lean_dec(x_32); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_47 = !lean_is_exclusive(x_34); -if (x_47 == 0) -{ -return x_34; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_34, 0); -x_49 = lean_ctor_get(x_34, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_34); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -} -else -{ -uint8_t x_51; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_51 = !lean_is_exclusive(x_31); -if (x_51 == 0) -{ -return x_31; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_31, 0); -x_53 = lean_ctor_get(x_31, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_31); -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; -} -} -block_29: -{ -if (x_11 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -x_13 = lean_box(0); -x_14 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_10, x_13, x_12); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_15 = l_Lean_Elab_headerToImports(x_1); -x_16 = l_List_redLength___rarg(x_15); -x_17 = lean_mk_empty_array_with_capacity(x_16); -lean_dec(x_16); -x_18 = l_List_toArrayAux___rarg(x_15, x_17); -x_19 = l_Lean_Server_FileWorker_leanpkgSetupSearchPath(x_8, x_6, x_18, x_7, x_12); +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_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(x_10); +x_13 = l_Lean_instInhabitedParserDescr___closed__1; +x_14 = lean_string_append(x_13, x_11); +lean_dec(x_11); +x_15 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1; +x_16 = lean_string_append(x_14, x_15); +lean_inc(x_1); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_1); +x_18 = l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2; +x_19 = lean_io_getenv(x_18, x_12); 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; 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; x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); lean_dec(x_19); -x_22 = l_List_append___rarg(x_10, x_20); -x_23 = lean_box(0); -x_24 = l_Lean_Server_FileWorker_compileHeader___lambda__1(x_1, x_2, x_3, x_4, x_5, x_22, x_23, x_21); -return x_24; +x_22 = lean_box(0); +x_23 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_8, x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_17, x_22, x_21); +return x_23; } else { -uint8_t x_25; -lean_dec(x_10); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_24 = lean_ctor_get(x_19, 1); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_ctor_get(x_20, 0); +lean_inc(x_25); +lean_dec(x_20); +lean_inc(x_1); +x_26 = l_Lean_parseSearchPath(x_25, x_1); +lean_dec(x_25); +x_27 = l_List_append___rarg(x_17, x_26); +x_28 = lean_box(0); +x_29 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_8, x_2, x_1, x_3, x_4, x_5, x_6, x_7, x_27, x_28, x_24); +return x_29; +} +} +else +{ +uint8_t x_30; +lean_dec(x_17); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_25 = !lean_is_exclusive(x_19); -if (x_25 == 0) +x_30 = !lean_is_exclusive(x_19); +if (x_30 == 0) { return x_19; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_19, 0); -x_27 = lean_ctor_get(x_19, 1); -lean_inc(x_27); -lean_inc(x_26); +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_19, 0); +x_32 = lean_ctor_get(x_19, 1); +lean_inc(x_32); +lean_inc(x_31); lean_dec(x_19); -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_26); -lean_ctor_set(x_28, 1, x_27); -return x_28; +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_31); +lean_ctor_set(x_33, 1, x_32); +return x_33; } } } +else +{ +uint8_t x_34; +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_10); +if (x_34 == 0) +{ +return x_10; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_10, 0); +x_36 = lean_ctor_get(x_10, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_10); +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; +} } } } @@ -6240,7 +6270,7 @@ x_26 = lean_string_append(x_24, x_25); x_27 = l_System_FilePath_exeSuffix; x_28 = lean_string_append(x_26, x_27); x_29 = lean_string_append(x_28, x_23); -x_30 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_13, x_4, x_15, x_8, x_14, x_1, x_2, x_29, x_22); +x_30 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_4, x_13, x_15, x_8, x_14, x_1, x_2, x_29, x_22); lean_dec(x_8); return x_30; } @@ -6290,7 +6320,7 @@ x_40 = lean_string_append(x_38, x_39); x_41 = l_System_FilePath_exeSuffix; x_42 = lean_string_append(x_40, x_41); x_43 = lean_string_append(x_42, x_37); -x_44 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_13, x_4, x_15, x_8, x_14, x_1, x_2, x_43, x_35); +x_44 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_4, x_13, x_15, x_8, x_14, x_1, x_2, x_43, x_35); lean_dec(x_8); return x_44; } @@ -6361,11 +6391,21 @@ lean_dec(x_4); return x_9; } } -lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__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* l_Lean_Server_FileWorker_compileHeader___lambda__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) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_5); +return x_12; +} +} +lean_object* l_Lean_Server_FileWorker_compileHeader___lambda__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) { _start: { lean_object* x_10; -x_10 = l_Lean_Server_FileWorker_compileHeader___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l_Lean_Server_FileWorker_compileHeader___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); return x_10; } @@ -13288,7 +13328,7 @@ return x_113; } } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -13296,7 +13336,7 @@ x_1 = lean_mk_string(".lean"); return x_1; } } -static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2() { +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2() { _start: { lean_object* x_1; @@ -13304,6 +13344,331 @@ x_1 = lean_mk_string("file://"); return x_1; } } +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(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_Lean_Expr_constName_x3f(x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +lean_dec(x_2); +x_11 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_11, 0, x_1); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, 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_9); +return x_13; +} +else +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_2, 0); +lean_inc(x_16); +lean_inc(x_15); +x_17 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); +lean_closure_set(x_17, 0, x_15); +lean_inc(x_16); +x_18 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_3, x_16, x_17, x_9); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; +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; +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_5, 0); +lean_inc(x_21); +lean_ctor_set(x_10, 0, x_21); +x_22 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_15, x_3, x_16, x_1, x_2, x_4, x_10, x_8, x_20); +lean_dec(x_2); +return x_22; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_free_object(x_10); +x_23 = lean_ctor_get(x_18, 1); +lean_inc(x_23); +lean_dec(x_18); +x_24 = lean_ctor_get(x_19, 0); +lean_inc(x_24); +lean_dec(x_19); +x_25 = lean_ctor_get(x_6, 3); +x_26 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1; +x_27 = l_Lean_SearchPath_findWithExt(x_25, x_26, x_24, x_23); +lean_dec(x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +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_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_box(0); +x_31 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_15, x_3, x_16, x_1, x_2, x_4, x_30, x_8, x_29); +lean_dec(x_2); +return x_31; +} +else +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_27, 1); +lean_inc(x_32); +lean_dec(x_27); +x_33 = !lean_is_exclusive(x_28); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_34 = lean_ctor_get(x_28, 0); +x_35 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2; +x_36 = lean_string_append(x_35, x_34); +lean_dec(x_34); +lean_ctor_set(x_28, 0, x_36); +x_37 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_15, x_3, x_16, x_1, x_2, x_4, x_28, x_8, x_32); +lean_dec(x_2); +return x_37; +} +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_28, 0); +lean_inc(x_38); +lean_dec(x_28); +x_39 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2; +x_40 = lean_string_append(x_39, x_38); +lean_dec(x_38); +x_41 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_41, 0, x_40); +x_42 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_15, x_3, x_16, x_1, x_2, x_4, x_41, x_8, x_32); +lean_dec(x_2); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_2); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_27); +if (x_43 == 0) +{ +return x_27; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_27, 0); +x_45 = lean_ctor_get(x_27, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_27); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_16); +lean_free_object(x_10); +lean_dec(x_15); +lean_dec(x_2); +lean_dec(x_1); +x_47 = !lean_is_exclusive(x_18); +if (x_47 == 0) +{ +return x_18; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_18, 0); +x_49 = lean_ctor_get(x_18, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_18); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_51 = lean_ctor_get(x_10, 0); +lean_inc(x_51); +lean_dec(x_10); +x_52 = lean_ctor_get(x_2, 0); +lean_inc(x_52); +lean_inc(x_51); +x_53 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); +lean_closure_set(x_53, 0, x_51); +lean_inc(x_52); +x_54 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_3, x_52, x_53, x_9); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_54, 0); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +x_57 = lean_ctor_get(x_5, 0); +lean_inc(x_57); +x_58 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_58, 0, x_57); +x_59 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_51, x_3, x_52, x_1, x_2, x_4, x_58, x_8, x_56); +lean_dec(x_2); +return x_59; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_54, 1); +lean_inc(x_60); +lean_dec(x_54); +x_61 = lean_ctor_get(x_55, 0); +lean_inc(x_61); +lean_dec(x_55); +x_62 = lean_ctor_get(x_6, 3); +x_63 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1; +x_64 = l_Lean_SearchPath_findWithExt(x_62, x_63, x_61, x_60); +lean_dec(x_61); +if (lean_obj_tag(x_64) == 0) +{ +lean_object* x_65; +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +if (lean_obj_tag(x_65) == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +lean_dec(x_64); +x_67 = lean_box(0); +x_68 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_51, x_3, x_52, x_1, x_2, x_4, x_67, x_8, x_66); +lean_dec(x_2); +return x_68; +} +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; +x_69 = lean_ctor_get(x_64, 1); +lean_inc(x_69); +lean_dec(x_64); +x_70 = lean_ctor_get(x_65, 0); +lean_inc(x_70); +if (lean_is_exclusive(x_65)) { + lean_ctor_release(x_65, 0); + x_71 = x_65; +} else { + lean_dec_ref(x_65); + x_71 = lean_box(0); +} +x_72 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2; +x_73 = lean_string_append(x_72, x_70); +lean_dec(x_70); +if (lean_is_scalar(x_71)) { + x_74 = lean_alloc_ctor(1, 1, 0); +} else { + x_74 = x_71; +} +lean_ctor_set(x_74, 0, x_73); +x_75 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_51, x_3, x_52, x_1, x_2, x_4, x_74, x_8, x_69); +lean_dec(x_2); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_2); +lean_dec(x_1); +x_76 = lean_ctor_get(x_64, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_64, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_78 = x_64; +} else { + lean_dec_ref(x_64); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +return x_79; +} +} +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_52); +lean_dec(x_51); +lean_dec(x_2); +lean_dec(x_1); +x_80 = lean_ctor_get(x_54, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_54, 1); +lean_inc(x_81); +if (lean_is_exclusive(x_54)) { + lean_ctor_release(x_54, 0); + lean_ctor_release(x_54, 1); + x_82 = x_54; +} else { + lean_dec_ref(x_54); + x_82 = lean_box(0); +} +if (lean_is_scalar(x_82)) { + x_83 = lean_alloc_ctor(1, 2, 0); +} else { + x_83 = x_82; +} +lean_ctor_set(x_83, 0, x_80); +lean_ctor_set(x_83, 1, x_81); +return x_83; +} +} +} +} +} lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8(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, size_t x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { @@ -13343,682 +13708,155 @@ goto block_66; } else { -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_74; x_74 = lean_ctor_get(x_71, 0); lean_inc(x_74); lean_dec(x_71); +if (x_1 == 0) +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; x_75 = lean_ctor_get(x_74, 0); lean_inc(x_75); x_76 = lean_ctor_get(x_74, 1); lean_inc(x_76); lean_dec(x_74); -x_77 = lean_ctor_get(x_76, 0); +x_77 = lean_ctor_get(x_76, 1); lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); -lean_inc(x_78); -x_79 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_79, 0, x_78); -lean_inc(x_77); -x_80 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_75, x_77, x_79, x_13); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -if (x_1 == 0) -{ -lean_dec(x_81); -x_83 = x_78; -goto block_197; -} -else -{ -lean_dec(x_78); -x_83 = x_81; -goto block_197; -} -block_197: -{ -lean_object* x_84; -x_84 = l_Lean_Expr_constName_x3f(x_83); -lean_dec(x_83); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); lean_inc(x_6); -x_85 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_85, 0, x_6); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_38 = x_86; -x_39 = x_82; +x_78 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_76, x_75, x_4, x_3, x_2, x_77, x_12, x_13); +lean_dec(x_77); +lean_dec(x_75); +if (lean_obj_tag(x_78) == 0) +{ +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_78, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_38 = x_79; +x_39 = x_80; goto block_66; } else { -uint8_t x_87; -x_87 = !lean_is_exclusive(x_84); -if (x_87 == 0) +uint8_t x_81; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_81 = !lean_is_exclusive(x_78); +if (x_81 == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_84, 0); +return x_78; +} +else +{ +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_78, 0); +x_83 = lean_ctor_get(x_78, 1); +lean_inc(x_83); +lean_inc(x_82); +lean_dec(x_78); +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 +{ +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_74, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_74, 1); +lean_inc(x_86); +lean_dec(x_74); +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); lean_inc(x_88); -x_89 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); +x_89 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); lean_closure_set(x_89, 0, x_88); -lean_inc(x_77); -x_90 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_75, x_77, x_89, x_82); +x_90 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_85, x_87, x_89, x_13); if (lean_obj_tag(x_90) == 0) { -lean_object* x_91; +lean_object* x_91; lean_object* x_92; lean_object* x_93; 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; lean_object* x_94; x_92 = lean_ctor_get(x_90, 1); lean_inc(x_92); lean_dec(x_90); -x_93 = lean_ctor_get(x_3, 0); -lean_inc(x_93); -lean_ctor_set(x_84, 0, x_93); lean_inc(x_6); -x_94 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_88, x_75, x_77, x_6, x_76, x_4, x_84, x_12, x_92); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_94, 1); -lean_inc(x_96); -lean_dec(x_94); -x_38 = x_95; -x_39 = x_96; -goto block_66; -} -else -{ -uint8_t x_97; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_97 = !lean_is_exclusive(x_94); -if (x_97 == 0) -{ -return x_94; -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_94, 0); -x_99 = lean_ctor_get(x_94, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_94); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; -} -} -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_free_object(x_84); -x_101 = lean_ctor_get(x_90, 1); -lean_inc(x_101); -lean_dec(x_90); -x_102 = lean_ctor_get(x_91, 0); -lean_inc(x_102); +x_93 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_86, x_85, x_4, x_3, x_2, x_91, x_12, x_92); lean_dec(x_91); -x_103 = lean_ctor_get(x_2, 3); -x_104 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1; -x_105 = l_Lean_SearchPath_findWithExt(x_103, x_104, x_102, x_101); -lean_dec(x_102); -if (lean_obj_tag(x_105) == 0) +lean_dec(x_85); +if (lean_obj_tag(x_93) == 0) { -lean_object* x_106; -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -if (lean_obj_tag(x_106) == 0) -{ -lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_107 = lean_ctor_get(x_105, 1); -lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_box(0); -lean_inc(x_6); -x_109 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_88, x_75, x_77, x_6, x_76, x_4, x_108, x_12, x_107); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_38 = x_110; -x_39 = x_111; +lean_object* x_94; lean_object* x_95; +x_94 = lean_ctor_get(x_93, 0); +lean_inc(x_94); +x_95 = lean_ctor_get(x_93, 1); +lean_inc(x_95); +lean_dec(x_93); +x_38 = x_94; +x_39 = x_95; goto block_66; } else { -uint8_t x_112; +uint8_t x_96; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_112 = !lean_is_exclusive(x_109); -if (x_112 == 0) +x_96 = !lean_is_exclusive(x_93); +if (x_96 == 0) { -return x_109; +return x_93; } else { -lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_113 = lean_ctor_get(x_109, 0); -x_114 = lean_ctor_get(x_109, 1); -lean_inc(x_114); -lean_inc(x_113); -lean_dec(x_109); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -return x_115; +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_93, 0); +x_98 = lean_ctor_get(x_93, 1); +lean_inc(x_98); +lean_inc(x_97); +lean_dec(x_93); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +return x_99; } } } else { -lean_object* x_116; uint8_t x_117; -x_116 = lean_ctor_get(x_105, 1); -lean_inc(x_116); -lean_dec(x_105); -x_117 = !lean_is_exclusive(x_106); -if (x_117 == 0) -{ -lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_118 = lean_ctor_get(x_106, 0); -x_119 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_120 = lean_string_append(x_119, x_118); -lean_dec(x_118); -lean_ctor_set(x_106, 0, x_120); -lean_inc(x_6); -x_121 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_88, x_75, x_77, x_6, x_76, x_4, x_106, x_12, x_116); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_38 = x_122; -x_39 = x_123; -goto block_66; -} -else -{ -uint8_t x_124; +uint8_t x_100; +lean_dec(x_86); +lean_dec(x_85); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_124 = !lean_is_exclusive(x_121); -if (x_124 == 0) -{ -return x_121; -} -else -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_125 = lean_ctor_get(x_121, 0); -x_126 = lean_ctor_get(x_121, 1); -lean_inc(x_126); -lean_inc(x_125); -lean_dec(x_121); -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_125); -lean_ctor_set(x_127, 1, x_126); -return x_127; -} -} -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_128 = lean_ctor_get(x_106, 0); -lean_inc(x_128); -lean_dec(x_106); -x_129 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_130 = lean_string_append(x_129, x_128); -lean_dec(x_128); -x_131 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_131, 0, x_130); -lean_inc(x_6); -x_132 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_88, x_75, x_77, x_6, x_76, x_4, x_131, x_12, x_116); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_132) == 0) -{ -lean_object* x_133; lean_object* x_134; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); -x_38 = x_133; -x_39 = x_134; -goto block_66; -} -else -{ -lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_135 = lean_ctor_get(x_132, 0); -lean_inc(x_135); -x_136 = lean_ctor_get(x_132, 1); -lean_inc(x_136); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_137 = x_132; -} else { - lean_dec_ref(x_132); - x_137 = lean_box(0); -} -if (lean_is_scalar(x_137)) { - x_138 = lean_alloc_ctor(1, 2, 0); -} else { - x_138 = x_137; -} -lean_ctor_set(x_138, 0, x_135); -lean_ctor_set(x_138, 1, x_136); -return x_138; -} -} -} -} -else -{ -uint8_t x_139; -lean_dec(x_88); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_139 = !lean_is_exclusive(x_105); -if (x_139 == 0) -{ -return x_105; -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; -x_140 = lean_ctor_get(x_105, 0); -x_141 = lean_ctor_get(x_105, 1); -lean_inc(x_141); -lean_inc(x_140); -lean_dec(x_105); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_140); -lean_ctor_set(x_142, 1, x_141); -return x_142; -} -} -} -} -else -{ -uint8_t x_143; -lean_free_object(x_84); -lean_dec(x_88); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_143 = !lean_is_exclusive(x_90); -if (x_143 == 0) +x_100 = !lean_is_exclusive(x_90); +if (x_100 == 0) { return x_90; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -x_144 = lean_ctor_get(x_90, 0); -x_145 = lean_ctor_get(x_90, 1); -lean_inc(x_145); -lean_inc(x_144); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_101 = lean_ctor_get(x_90, 0); +x_102 = lean_ctor_get(x_90, 1); +lean_inc(x_102); +lean_inc(x_101); lean_dec(x_90); -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_144); -lean_ctor_set(x_146, 1, x_145); -return x_146; +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +return x_103; } } } -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_84, 0); -lean_inc(x_147); -lean_dec(x_84); -lean_inc(x_147); -x_148 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); -lean_closure_set(x_148, 0, x_147); -lean_inc(x_77); -x_149 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_75, x_77, x_148, x_82); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; -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; -x_151 = lean_ctor_get(x_149, 1); -lean_inc(x_151); -lean_dec(x_149); -x_152 = lean_ctor_get(x_3, 0); -lean_inc(x_152); -x_153 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_153, 0, x_152); -lean_inc(x_6); -x_154 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_147, x_75, x_77, x_6, x_76, x_4, x_153, x_12, x_151); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_154) == 0) -{ -lean_object* x_155; lean_object* x_156; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -lean_dec(x_154); -x_38 = x_155; -x_39 = x_156; -goto block_66; -} -else -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_157 = lean_ctor_get(x_154, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_154, 1); -lean_inc(x_158); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_159 = x_154; -} else { - lean_dec_ref(x_154); - x_159 = lean_box(0); -} -if (lean_is_scalar(x_159)) { - x_160 = lean_alloc_ctor(1, 2, 0); -} else { - x_160 = x_159; -} -lean_ctor_set(x_160, 0, x_157); -lean_ctor_set(x_160, 1, x_158); -return x_160; -} -} -else -{ -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_149, 1); -lean_inc(x_161); -lean_dec(x_149); -x_162 = lean_ctor_get(x_150, 0); -lean_inc(x_162); -lean_dec(x_150); -x_163 = lean_ctor_get(x_2, 3); -x_164 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1; -x_165 = l_Lean_SearchPath_findWithExt(x_163, x_164, x_162, x_161); -lean_dec(x_162); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; -x_166 = lean_ctor_get(x_165, 0); -lean_inc(x_166); -if (lean_obj_tag(x_166) == 0) -{ -lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_167 = lean_ctor_get(x_165, 1); -lean_inc(x_167); -lean_dec(x_165); -x_168 = lean_box(0); -lean_inc(x_6); -x_169 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_147, x_75, x_77, x_6, x_76, x_4, x_168, x_12, x_167); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_169) == 0) -{ -lean_object* x_170; lean_object* x_171; -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_38 = x_170; -x_39 = x_171; -goto block_66; -} -else -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_172 = lean_ctor_get(x_169, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_169, 1); -lean_inc(x_173); -if (lean_is_exclusive(x_169)) { - lean_ctor_release(x_169, 0); - lean_ctor_release(x_169, 1); - x_174 = x_169; -} else { - lean_dec_ref(x_169); - 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); -return x_175; -} -} -else -{ -lean_object* 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; -x_176 = lean_ctor_get(x_165, 1); -lean_inc(x_176); -lean_dec(x_165); -x_177 = lean_ctor_get(x_166, 0); -lean_inc(x_177); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - x_178 = x_166; -} else { - lean_dec_ref(x_166); - x_178 = lean_box(0); -} -x_179 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_180 = lean_string_append(x_179, x_177); -lean_dec(x_177); -if (lean_is_scalar(x_178)) { - x_181 = lean_alloc_ctor(1, 1, 0); -} else { - x_181 = x_178; -} -lean_ctor_set(x_181, 0, x_180); -lean_inc(x_6); -x_182 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_147, x_75, x_77, x_6, x_76, x_4, x_181, x_12, x_176); -lean_dec(x_76); -lean_dec(x_75); -if (lean_obj_tag(x_182) == 0) -{ -lean_object* x_183; lean_object* x_184; -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 1); -lean_inc(x_184); -lean_dec(x_182); -x_38 = x_183; -x_39 = x_184; -goto block_66; -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_185 = lean_ctor_get(x_182, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_182, 1); -lean_inc(x_186); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - x_187 = x_182; -} else { - lean_dec_ref(x_182); - x_187 = lean_box(0); -} -if (lean_is_scalar(x_187)) { - x_188 = lean_alloc_ctor(1, 2, 0); -} else { - x_188 = x_187; -} -lean_ctor_set(x_188, 0, x_185); -lean_ctor_set(x_188, 1, x_186); -return x_188; -} -} -} -else -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; -lean_dec(x_147); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_189 = lean_ctor_get(x_165, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_165, 1); -lean_inc(x_190); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - x_191 = x_165; -} else { - lean_dec_ref(x_165); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(1, 2, 0); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_189); -lean_ctor_set(x_192, 1, x_190); -return x_192; -} -} -} -else -{ -lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; -lean_dec(x_147); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_193 = lean_ctor_get(x_149, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_149, 1); -lean_inc(x_194); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_195 = x_149; -} else { - lean_dec_ref(x_149); - x_195 = lean_box(0); -} -if (lean_is_scalar(x_195)) { - x_196 = lean_alloc_ctor(1, 2, 0); -} else { - x_196 = x_195; -} -lean_ctor_set(x_196, 0, x_193); -lean_ctor_set(x_196, 1, x_194); -return x_196; -} -} -} -} -} -else -{ -uint8_t x_198; -lean_dec(x_78); -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_198 = !lean_is_exclusive(x_80); -if (x_198 == 0) -{ -return x_80; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_80, 0); -x_200 = lean_ctor_get(x_80, 1); -lean_inc(x_200); -lean_inc(x_199); -lean_dec(x_80); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_199); -lean_ctor_set(x_201, 1, x_200); -return x_201; -} -} } } block_37: @@ -14721,682 +14559,155 @@ goto block_71; } 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_79; x_79 = lean_ctor_get(x_76, 0); lean_inc(x_79); lean_dec(x_76); +if (x_1 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); x_81 = lean_ctor_get(x_79, 1); lean_inc(x_81); lean_dec(x_79); -x_82 = lean_ctor_get(x_81, 0); +x_82 = lean_ctor_get(x_81, 1); lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); -lean_inc(x_83); -lean_inc(x_83); -x_84 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); -lean_closure_set(x_84, 0, x_83); -lean_inc(x_82); -x_85 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_80, x_82, x_84, x_13); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -if (x_1 == 0) -{ -lean_dec(x_86); -x_88 = x_83; -goto block_202; -} -else -{ -lean_dec(x_83); -x_88 = x_86; -goto block_202; -} -block_202: -{ -lean_object* x_89; -x_89 = l_Lean_Expr_constName_x3f(x_88); -lean_dec(x_88); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); lean_inc(x_6); -x_90 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_90, 0, x_6); -x_91 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_91, 0, x_90); -x_38 = x_91; -x_39 = x_87; +x_83 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_81, x_80, x_4, x_3, x_2, x_82, x_12, x_13); +lean_dec(x_82); +lean_dec(x_80); +if (lean_obj_tag(x_83) == 0) +{ +lean_object* x_84; lean_object* x_85; +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(x_83); +x_38 = x_84; +x_39 = x_85; goto block_71; } else { -uint8_t x_92; -x_92 = !lean_is_exclusive(x_89); -if (x_92 == 0) +uint8_t x_86; +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_86 = !lean_is_exclusive(x_83); +if (x_86 == 0) { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_89, 0); +return x_83; +} +else +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_83, 0); +x_88 = lean_ctor_get(x_83, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_83); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +return x_89; +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_90 = lean_ctor_get(x_79, 0); +lean_inc(x_90); +x_91 = lean_ctor_get(x_79, 1); +lean_inc(x_91); +lean_dec(x_79); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); lean_inc(x_93); -x_94 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); +x_94 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 6, 1); lean_closure_set(x_94, 0, x_93); -lean_inc(x_82); -x_95 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_80, x_82, x_94, x_87); +x_95 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_90, x_92, x_94, x_13); if (lean_obj_tag(x_95) == 0) { -lean_object* x_96; +lean_object* x_96; lean_object* x_97; lean_object* x_98; 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; lean_object* x_99; x_97 = lean_ctor_get(x_95, 1); lean_inc(x_97); lean_dec(x_95); -x_98 = lean_ctor_get(x_3, 0); -lean_inc(x_98); -lean_ctor_set(x_89, 0, x_98); lean_inc(x_6); -x_99 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_93, x_80, x_82, x_6, x_81, x_4, x_89, x_12, x_97); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_99) == 0) -{ -lean_object* x_100; lean_object* x_101; -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(x_99); -x_38 = x_100; -x_39 = x_101; -goto block_71; -} -else -{ -uint8_t x_102; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_102 = !lean_is_exclusive(x_99); -if (x_102 == 0) -{ -return x_99; -} -else -{ -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_99, 0); -x_104 = lean_ctor_get(x_99, 1); -lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_99); -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; -} -} -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; -lean_free_object(x_89); -x_106 = lean_ctor_get(x_95, 1); -lean_inc(x_106); -lean_dec(x_95); -x_107 = lean_ctor_get(x_96, 0); -lean_inc(x_107); +x_98 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_6, x_91, x_90, x_4, x_3, x_2, x_96, x_12, x_97); lean_dec(x_96); -x_108 = lean_ctor_get(x_2, 3); -x_109 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1; -x_110 = l_Lean_SearchPath_findWithExt(x_108, x_109, x_107, x_106); -lean_dec(x_107); -if (lean_obj_tag(x_110) == 0) +lean_dec(x_90); +if (lean_obj_tag(x_98) == 0) { -lean_object* x_111; -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; -x_112 = lean_ctor_get(x_110, 1); -lean_inc(x_112); -lean_dec(x_110); -x_113 = lean_box(0); -lean_inc(x_6); -x_114 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_93, x_80, x_82, x_6, x_81, x_4, x_113, x_12, x_112); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; -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(x_114); -x_38 = x_115; -x_39 = x_116; +lean_object* x_99; lean_object* x_100; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +lean_dec(x_98); +x_38 = x_99; +x_39 = x_100; goto block_71; } else { -uint8_t x_117; +uint8_t x_101; lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_117 = !lean_is_exclusive(x_114); -if (x_117 == 0) +x_101 = !lean_is_exclusive(x_98); +if (x_101 == 0) { -return x_114; +return x_98; } else { -lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_118 = lean_ctor_get(x_114, 0); -x_119 = lean_ctor_get(x_114, 1); -lean_inc(x_119); -lean_inc(x_118); -lean_dec(x_114); -x_120 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_120, 0, x_118); -lean_ctor_set(x_120, 1, x_119); -return x_120; +lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_102 = lean_ctor_get(x_98, 0); +x_103 = lean_ctor_get(x_98, 1); +lean_inc(x_103); +lean_inc(x_102); +lean_dec(x_98); +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +return x_104; } } } else { -lean_object* x_121; uint8_t x_122; -x_121 = lean_ctor_get(x_110, 1); -lean_inc(x_121); -lean_dec(x_110); -x_122 = !lean_is_exclusive(x_111); -if (x_122 == 0) -{ -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_123 = lean_ctor_get(x_111, 0); -x_124 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_125 = lean_string_append(x_124, x_123); -lean_dec(x_123); -lean_ctor_set(x_111, 0, x_125); -lean_inc(x_6); -x_126 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_93, x_80, x_82, x_6, x_81, x_4, x_111, x_12, x_121); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_38 = x_127; -x_39 = x_128; -goto block_71; -} -else -{ -uint8_t x_129; +uint8_t x_105; +lean_dec(x_91); +lean_dec(x_90); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_129 = !lean_is_exclusive(x_126); -if (x_129 == 0) -{ -return x_126; -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_130 = lean_ctor_get(x_126, 0); -x_131 = lean_ctor_get(x_126, 1); -lean_inc(x_131); -lean_inc(x_130); -lean_dec(x_126); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set(x_132, 1, x_131); -return x_132; -} -} -} -else -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_133 = lean_ctor_get(x_111, 0); -lean_inc(x_133); -lean_dec(x_111); -x_134 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_135 = lean_string_append(x_134, x_133); -lean_dec(x_133); -x_136 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_136, 0, x_135); -lean_inc(x_6); -x_137 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_93, x_80, x_82, x_6, x_81, x_4, x_136, x_12, x_121); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_137) == 0) -{ -lean_object* x_138; lean_object* x_139; -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(x_137); -x_38 = x_138; -x_39 = x_139; -goto block_71; -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_140 = lean_ctor_get(x_137, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_137, 1); -lean_inc(x_141); -if (lean_is_exclusive(x_137)) { - lean_ctor_release(x_137, 0); - lean_ctor_release(x_137, 1); - x_142 = x_137; -} else { - lean_dec_ref(x_137); - x_142 = lean_box(0); -} -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); -} else { - x_143 = x_142; -} -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; -} -} -} -} -else -{ -uint8_t x_144; -lean_dec(x_93); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_144 = !lean_is_exclusive(x_110); -if (x_144 == 0) -{ -return x_110; -} -else -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_110, 0); -x_146 = lean_ctor_get(x_110, 1); -lean_inc(x_146); -lean_inc(x_145); -lean_dec(x_110); -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_145); -lean_ctor_set(x_147, 1, x_146); -return x_147; -} -} -} -} -else -{ -uint8_t x_148; -lean_free_object(x_89); -lean_dec(x_93); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_148 = !lean_is_exclusive(x_95); -if (x_148 == 0) +x_105 = !lean_is_exclusive(x_95); +if (x_105 == 0) { return x_95; } else { -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_95, 0); -x_150 = lean_ctor_get(x_95, 1); -lean_inc(x_150); -lean_inc(x_149); +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_95, 0); +x_107 = lean_ctor_get(x_95, 1); +lean_inc(x_107); +lean_inc(x_106); lean_dec(x_95); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; +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 -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; -x_152 = lean_ctor_get(x_89, 0); -lean_inc(x_152); -lean_dec(x_89); -lean_inc(x_152); -x_153 = lean_alloc_closure((void*)(l_Lean_findModuleOf_x3f___at_Lean_Server_FileWorker_handleDefinition___spec__1___boxed), 6, 1); -lean_closure_set(x_153, 0, x_152); -lean_inc(x_82); -x_154 = l_Lean_Elab_ContextInfo_runMetaM___rarg(x_80, x_82, x_153, x_87); -if (lean_obj_tag(x_154) == 0) -{ -lean_object* x_155; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -if (lean_obj_tag(x_155) == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -lean_dec(x_154); -x_157 = lean_ctor_get(x_3, 0); -lean_inc(x_157); -x_158 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_158, 0, x_157); -lean_inc(x_6); -x_159 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_152, x_80, x_82, x_6, x_81, x_4, x_158, x_12, x_156); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_159) == 0) -{ -lean_object* x_160; lean_object* x_161; -x_160 = lean_ctor_get(x_159, 0); -lean_inc(x_160); -x_161 = lean_ctor_get(x_159, 1); -lean_inc(x_161); -lean_dec(x_159); -x_38 = x_160; -x_39 = x_161; -goto block_71; -} -else -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_162 = lean_ctor_get(x_159, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_159, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_164 = x_159; -} else { - lean_dec_ref(x_159); - x_164 = lean_box(0); -} -if (lean_is_scalar(x_164)) { - x_165 = lean_alloc_ctor(1, 2, 0); -} else { - x_165 = x_164; -} -lean_ctor_set(x_165, 0, x_162); -lean_ctor_set(x_165, 1, x_163); -return x_165; -} -} -else -{ -lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_166 = lean_ctor_get(x_154, 1); -lean_inc(x_166); -lean_dec(x_154); -x_167 = lean_ctor_get(x_155, 0); -lean_inc(x_167); -lean_dec(x_155); -x_168 = lean_ctor_get(x_2, 3); -x_169 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1; -x_170 = l_Lean_SearchPath_findWithExt(x_168, x_169, x_167, x_166); -lean_dec(x_167); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; -x_171 = lean_ctor_get(x_170, 0); -lean_inc(x_171); -if (lean_obj_tag(x_171) == 0) -{ -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_170, 1); -lean_inc(x_172); -lean_dec(x_170); -x_173 = lean_box(0); -lean_inc(x_6); -x_174 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_152, x_80, x_82, x_6, x_81, x_4, x_173, x_12, x_172); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_174) == 0) -{ -lean_object* x_175; lean_object* x_176; -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(x_174); -x_38 = x_175; -x_39 = x_176; -goto block_71; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_177 = lean_ctor_get(x_174, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_174, 1); -lean_inc(x_178); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_179 = x_174; -} else { - lean_dec_ref(x_174); - x_179 = lean_box(0); -} -if (lean_is_scalar(x_179)) { - x_180 = lean_alloc_ctor(1, 2, 0); -} else { - x_180 = x_179; -} -lean_ctor_set(x_180, 0, x_177); -lean_ctor_set(x_180, 1, x_178); -return x_180; -} -} -else -{ -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_181 = lean_ctor_get(x_170, 1); -lean_inc(x_181); -lean_dec(x_170); -x_182 = lean_ctor_get(x_171, 0); -lean_inc(x_182); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - x_183 = x_171; -} else { - lean_dec_ref(x_171); - x_183 = lean_box(0); -} -x_184 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2; -x_185 = lean_string_append(x_184, x_182); -lean_dec(x_182); -if (lean_is_scalar(x_183)) { - x_186 = lean_alloc_ctor(1, 1, 0); -} else { - x_186 = x_183; -} -lean_ctor_set(x_186, 0, x_185); -lean_inc(x_6); -x_187 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__1(x_152, x_80, x_82, x_6, x_81, x_4, x_186, x_12, x_181); -lean_dec(x_81); -lean_dec(x_80); -if (lean_obj_tag(x_187) == 0) -{ -lean_object* x_188; lean_object* x_189; -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_38 = x_188; -x_39 = x_189; -goto block_71; -} -else -{ -lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_190 = lean_ctor_get(x_187, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_187, 1); -lean_inc(x_191); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_192 = x_187; -} else { - lean_dec_ref(x_187); - x_192 = lean_box(0); -} -if (lean_is_scalar(x_192)) { - x_193 = lean_alloc_ctor(1, 2, 0); -} else { - x_193 = x_192; -} -lean_ctor_set(x_193, 0, x_190); -lean_ctor_set(x_193, 1, x_191); -return x_193; -} -} -} -else -{ -lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; -lean_dec(x_152); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_194 = lean_ctor_get(x_170, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_170, 1); -lean_inc(x_195); -if (lean_is_exclusive(x_170)) { - lean_ctor_release(x_170, 0); - lean_ctor_release(x_170, 1); - x_196 = x_170; -} else { - lean_dec_ref(x_170); - 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); -return x_197; -} -} -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_152); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_198 = lean_ctor_get(x_154, 0); -lean_inc(x_198); -x_199 = lean_ctor_get(x_154, 1); -lean_inc(x_199); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_200 = x_154; -} else { - lean_dec_ref(x_154); - x_200 = lean_box(0); -} -if (lean_is_scalar(x_200)) { - x_201 = lean_alloc_ctor(1, 2, 0); -} else { - x_201 = x_200; -} -lean_ctor_set(x_201, 0, x_198); -lean_ctor_set(x_201, 1, x_199); -return x_201; -} -} -} -} -} -else -{ -uint8_t x_203; -lean_dec(x_83); -lean_dec(x_82); -lean_dec(x_81); -lean_dec(x_80); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_203 = !lean_is_exclusive(x_85); -if (x_203 == 0) -{ -return x_85; -} -else -{ -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_85, 0); -x_205 = lean_ctor_get(x_85, 1); -lean_inc(x_205); -lean_inc(x_204); -lean_dec(x_85); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; -} -} } } block_37: @@ -16585,6 +15896,20 @@ lean_dec(x_2); return x_10; } } +lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__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) { +_start: +{ +lean_object* x_10; +x_10 = l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +return x_10; +} +} lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___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: { @@ -29079,8 +28404,10 @@ l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__3 = _init_l_Lean_Se lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__3); l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__4 = _init_l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__4(); lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___lambda__1___closed__4); -l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1 = _init_l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___lambda__2___closed__1); +l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1 = _init_l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__1); +l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2 = _init_l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___lambda__3___closed__2); l_Lean_Server_FileWorker_compileHeader___closed__1 = _init_l_Lean_Server_FileWorker_compileHeader___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_compileHeader___closed__1); l_Lean_Server_FileWorker_compileHeader___closed__2 = _init_l_Lean_Server_FileWorker_compileHeader___closed__2(); @@ -29117,10 +28444,10 @@ l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___clo lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleHover___spec__6___closed__6); l_Lean_Server_FileWorker_handleHover___rarg___closed__1 = _init_l_Lean_Server_FileWorker_handleHover___rarg___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleHover___rarg___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__1); -l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2(); -lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___closed__2); +l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_Server_FileWorker_handleDefinition___spec__8___lambda__2___closed__2); l_Lean_Server_FileWorker_handleDefinition___closed__1 = _init_l_Lean_Server_FileWorker_handleDefinition___closed__1(); lean_mark_persistent(l_Lean_Server_FileWorker_handleDefinition___closed__1); l_Lean_Server_FileWorker_handleDefinition___closed__2 = _init_l_Lean_Server_FileWorker_handleDefinition___closed__2(); diff --git a/stage0/stdlib/Lean/Server/Watchdog.c b/stage0/stdlib/Lean/Server/Watchdog.c index 6b0f472e15..2a07057669 100644 --- a/stage0/stdlib/Lean/Server/Watchdog.c +++ b/stage0/stdlib/Lean/Server/Watchdog.c @@ -18,7 +18,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___sp lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__2___rarg(lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg___closed__3; lean_object* lean_string_push(lean_object*, uint32_t); -extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_tryWriteMessage___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -103,10 +102,8 @@ lean_object* l_Lean_Server_Watchdog_eraseFileWorker___boxed(lean_object*, lean_o lean_object* l_IO_getStdin___at_Lean_Server_Watchdog_watchdogMain___spec__1(lean_object*); lean_object* l_IO_FS_Stream_readLspMessage(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__2___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_runClientTask(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_watchdogMain___boxed__const__2; -lean_object* l_Lean_Elab_headerToImports(lean_object*); lean_object* l_Lean_Server_Watchdog_terminateFileWorker___closed__1; lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage_match__2___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); @@ -114,6 +111,7 @@ lean_object* l_Std_RBNode_del___at_Lean_Server_Watchdog_FileWorker_readMessage__ lean_object* l_IO_FS_Stream_readLspRequestAs___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_handleDidChange___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeRequest___at_Lean_Server_Watchdog_handleRequest___spec__9(lean_object*, lean_object*, lean_object*); @@ -127,12 +125,11 @@ lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__3(lean_object*, l lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__1___boxed(lean_object*, lean_object*); lean_object* l_IO_throwServerError___rarg(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleRequest___spec__22(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__3(lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop___closed__5; lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_parseHeaderAst_match__1(lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest___closed__7; lean_object* l_Lean_Server_Watchdog_FileWorker_readMessage___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_insert___at_Lean_Server_Watchdog_FileWorker_writeRequest___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readLspNotificationAs___at_Lean_Server_Watchdog_initAndRunWatchdogAux___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__33___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -152,7 +149,6 @@ lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handle extern lean_object* l_Lean_Elab_parseImports___closed__1; lean_object* l_Lean_Server_Watchdog_parseParams(lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange_match__1___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_mainLoop___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_handleCancelRequest___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -163,7 +159,6 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_writeMessage___boxed(lean_object* lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__10; lean_object* l_Lean_Server_Watchdog_workerCfg; -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__5___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__5; lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests_match__1___rarg(lean_object*, lean_object*); @@ -178,12 +173,14 @@ lean_object* lean_io_as_task(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_initAndRunWatchdog___lambda__1___closed__3; lean_object* l_Std_RBNode_erase___at_Lean_Server_Watchdog_eraseFileWorker___spec__1(lean_object*, lean_object*); lean_object* l_Std_RBNode_setBlack___rarg(lean_object*); +lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop___closed__1; lean_object* l_Lean_Server_Watchdog_terminateFileWorker(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages_loop_match__1___rarg(lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange_match__1(lean_object*); lean_object* l_Std_RBNode_find___at_Lean_Server_Watchdog_findFileWorker___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Std_RBNode_forIn_visit___at_Lean_Server_Watchdog_shutdown___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleCancelRequest___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__3(lean_object*, lean_object*, lean_object*); @@ -295,7 +292,6 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___sp lean_object* l_Lean_Server_Watchdog_FileWorker_stdout(lean_object*); lean_object* lean_server_watchdog_main(lean_object*, lean_object*); lean_object* l_Lean_Json_opt___at_Lean_JsonRpc_instToJsonMessage___spec__1(lean_object*, lean_object*); -lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1(lean_object*); lean_object* l___private_Lean_Data_Lsp_LanguageFeatures_0__Lean_Lsp_fromJsonDocumentSymbolParams____x40_Lean_Data_Lsp_LanguageFeatures___hyg_239_(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__26___closed__1; @@ -317,6 +313,7 @@ lean_object* l_Lean_Server_Watchdog_FileWorker_errorPendingRequests___boxed(lean lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_mainLoop(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__32(lean_object*); +lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__12___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Task_Priority_default; lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleDidChange___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -330,6 +327,7 @@ lean_object* l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMes lean_object* l_Lean_Server_Watchdog_tryWriteMessage(lean_object*); lean_object* l_Lean_Json_getObjValAs_x3f___at_Lean_Lsp_instFromJsonInitializeParams___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__3___boxed(lean_object*, lean_object*); +lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_readRequestAs___at_Lean_Server_Watchdog_initAndRunWatchdog___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams_match__1(lean_object*, lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__36; @@ -352,7 +350,6 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_ha lean_object* l_Lean_Server_Watchdog_shutdown(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_handleCancelRequest___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__5___closed__2; -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__7(lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_handleRequest___spec__11(lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -383,7 +380,6 @@ lean_object* lean_io_process_child_wait(lean_object*, lean_object*, lean_object* uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_parseParams___at_Lean_Server_Watchdog_handleNotification___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_Watchdog_handleRequest___spec__13(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Std_RBNode_isRed___rarg(lean_object*); extern lean_object* l_Lean_JsonRpc_instToJsonErrorCode___closed__32; lean_object* l___private_Lean_Data_Lsp_TextSync_0__Lean_Lsp_toJsonDidChangeTextDocumentParams____x40_Lean_Data_Lsp_TextSync___hyg_275_(lean_object*); @@ -416,7 +412,6 @@ lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_ha lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleRequest___spec__38___closed__2; lean_object* l_Lean_Json_mkObj(lean_object*); -lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_getBuiltinSearchPath___closed__4; extern lean_object* l_Lean_JsonRpc_instToJsonMessage___closed__11; lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleDidChange___spec__6___boxed(lean_object*, lean_object*, lean_object*); @@ -521,11 +516,11 @@ lean_object* l_Lean_Server_Watchdog_shutdown_match__4___rarg(lean_object*); lean_object* lean_task_pure(lean_object*); lean_object* l_Lean_Server_Watchdog_handleNotification_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_Stream_writeLspResponse___at_Lean_Server_Watchdog_mainLoop___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_handleRequest___spec__35___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_findFileWorker(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleRequest_match__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1(size_t, size_t, lean_object*); lean_object* l_Lean_Server_Watchdog_tryWriteMessage___at_Lean_Server_Watchdog_handleCancelRequest___spec__5___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Server_Watchdog_handleCancelRequest_match__3___rarg(lean_object*); lean_object* l_Lean_Server_Watchdog_handleDidChange___lambda__1___closed__2; @@ -7503,40 +7498,7 @@ lean_dec(x_1); return x_2; } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; -x_4 = x_2 < x_1; -if (x_4 == 0) -{ -lean_object* x_5; -x_5 = x_3; -return x_5; -} -else -{ -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; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; -x_6 = lean_array_uget(x_3, x_2); -x_7 = lean_unsigned_to_nat(0u); -x_8 = lean_array_uset(x_3, x_2, x_7); -x_9 = x_6; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -lean_dec(x_9); -x_11 = l_Lean_Name_toString___closed__1; -x_12 = l_Lean_Name_toStringWithSep(x_11, x_10); -x_13 = 1; -x_14 = x_2 + x_13; -x_15 = x_12; -x_16 = lean_array_uset(x_8, x_2, x_15); -x_2 = x_14; -x_3 = x_16; -goto _start; -} -} -} -lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -7561,7 +7523,7 @@ return x_8; } } } -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4(lean_object* x_1) { +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__3(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -7576,7 +7538,7 @@ lean_ctor_set(x_5, 0, x_4); return x_5; } } -lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__2(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; @@ -7587,7 +7549,7 @@ lean_inc(x_5); x_6 = lean_ctor_get(x_2, 2); lean_inc(x_6); lean_dec(x_2); -x_7 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__4(x_6); +x_7 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__3(x_6); x_8 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_8, 0, x_4); lean_ctor_set(x_8, 1, x_5); @@ -7597,7 +7559,7 @@ lean_dec(x_8); return x_9; } } -lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__7(lean_object* x_1) { +lean_object* l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; @@ -7612,7 +7574,7 @@ lean_ctor_set(x_5, 0, x_4); return x_5; } } -lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(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; @@ -7621,7 +7583,7 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_dec(x_2); -x_6 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__7(x_5); +x_6 = l_Lean_Json_toStructured_x3f___at_Lean_Server_Watchdog_startFileWorker___spec__6(x_5); x_7 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_7, 0, x_4); lean_ctor_set(x_7, 1, x_6); @@ -7630,12 +7592,12 @@ lean_dec(x_7); return x_8; } } -lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; x_4 = l_Lean_Server_Watchdog_FileWorker_stdin(x_1); -x_5 = l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__6(x_4, x_2, x_3); +x_5 = l_IO_FS_Stream_writeLspNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(x_4, x_2, x_3); return x_5; } } @@ -7701,7 +7663,7 @@ lean_inc(x_7); x_8 = l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_parseHeaderAst(x_7, x_3); if (lean_obj_tag(x_8) == 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; size_t x_17; size_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_object* x_25; 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_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; lean_object* x_20; lean_object* x_21; lean_object* x_22; x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); x_10 = lean_ctor_get(x_8, 1); @@ -7709,281 +7671,255 @@ lean_inc(x_10); lean_dec(x_8); x_11 = lean_ctor_get(x_2, 6); lean_inc(x_11); -x_12 = l_Lean_Elab_headerToImports(x_9); +x_12 = lean_ctor_get(x_2, 3); +lean_inc(x_12); x_13 = l_List_redLength___rarg(x_12); x_14 = lean_mk_empty_array_with_capacity(x_13); lean_dec(x_13); x_15 = l_List_toArrayAux___rarg(x_12, x_14); -x_16 = lean_array_get_size(x_15); -x_17 = lean_usize_of_nat(x_16); -lean_dec(x_16); -x_18 = 0; -x_19 = x_15; -x_20 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1(x_17, x_18, x_19); -x_21 = x_20; -x_22 = l_Lean_Server_Watchdog_startFileWorker___closed__2; -x_23 = l_Array_append___rarg(x_22, x_21); -lean_dec(x_21); -x_24 = lean_ctor_get(x_2, 3); +x_16 = l_Lean_Server_Watchdog_startFileWorker___closed__2; +x_17 = l_Array_append___rarg(x_16, x_15); +lean_dec(x_15); +x_18 = lean_box(0); +x_19 = l_Lean_Server_Watchdog_workerCfg; +x_20 = l_Array_empty___closed__1; +x_21 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_11); +lean_ctor_set(x_21, 2, x_17); +lean_ctor_set(x_21, 3, x_18); +lean_ctor_set(x_21, 4, x_20); +x_22 = lean_io_process_spawn(x_21, x_10); +if (lean_obj_tag(x_22) == 0) +{ +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; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -x_25 = l_List_redLength___rarg(x_24); -x_26 = lean_mk_empty_array_with_capacity(x_25); -lean_dec(x_25); -x_27 = l_List_toArrayAux___rarg(x_24, x_26); -x_28 = l_Array_append___rarg(x_23, x_27); -lean_dec(x_27); -x_29 = lean_box(0); -x_30 = l_Lean_Server_Watchdog_workerCfg; -x_31 = l_Array_empty___closed__1; +lean_dec(x_22); +x_25 = lean_box(0); +x_26 = l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1(x_25, x_2, x_24); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_9); +x_30 = l_Lean_Server_Watchdog_startFileWorker___closed__3; +x_31 = lean_box(1); +lean_inc(x_27); +lean_inc(x_23); +lean_inc(x_29); x_32 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_11); -lean_ctor_set(x_32, 2, x_28); -lean_ctor_set(x_32, 3, x_29); -lean_ctor_set(x_32, 4, x_31); -x_33 = lean_io_process_spawn(x_32, x_10); +lean_ctor_set(x_32, 0, x_29); +lean_ctor_set(x_32, 1, x_23); +lean_ctor_set(x_32, 2, x_30); +lean_ctor_set(x_32, 3, x_31); +lean_ctor_set(x_32, 4, x_27); +lean_inc(x_2); +x_33 = l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages(x_32, x_2, x_28); if (lean_obj_tag(x_33) == 0) { -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_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; x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); x_35 = lean_ctor_get(x_33, 1); lean_inc(x_35); lean_dec(x_33); -x_36 = lean_box(0); -x_37 = l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2(x_36, x_2, x_35); -x_38 = lean_ctor_get(x_37, 0); +x_36 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_36, 0, x_29); +lean_ctor_set(x_36, 1, x_23); +lean_ctor_set(x_36, 2, x_34); +lean_ctor_set(x_36, 3, x_31); +lean_ctor_set(x_36, 4, x_27); +lean_inc(x_36); +x_37 = l_Lean_Server_Watchdog_FileWorker_stdin(x_36); +x_38 = lean_ctor_get(x_2, 5); lean_inc(x_38); -x_39 = lean_ctor_get(x_37, 1); -lean_inc(x_39); -lean_dec(x_37); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_1); -lean_ctor_set(x_40, 1, x_9); -x_41 = l_Lean_Server_Watchdog_startFileWorker___closed__3; -x_42 = lean_box(1); -lean_inc(x_38); -lean_inc(x_34); -lean_inc(x_40); -x_43 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_43, 0, x_40); -lean_ctor_set(x_43, 1, x_34); -lean_ctor_set(x_43, 2, x_41); -lean_ctor_set(x_43, 3, x_42); -lean_ctor_set(x_43, 4, x_38); -lean_inc(x_2); -x_44 = l___private_Lean_Server_Watchdog_0__Lean_Server_Watchdog_forwardMessages(x_43, x_2, x_39); -if (lean_obj_tag(x_44) == 0) +x_39 = l_Lean_Server_Watchdog_startFileWorker___closed__4; +x_40 = l_Lean_Parser_Command_initialize___elambda__1___closed__1; +x_41 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_38); +x_42 = l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__2(x_37, x_41, x_35); +if (lean_obj_tag(x_42) == 0) { -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; lean_object* x_53; -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_47, 0, x_40); -lean_ctor_set(x_47, 1, x_34); -lean_ctor_set(x_47, 2, x_45); -lean_ctor_set(x_47, 3, x_42); -lean_ctor_set(x_47, 4, x_38); -lean_inc(x_47); -x_48 = l_Lean_Server_Watchdog_FileWorker_stdin(x_47); -x_49 = lean_ctor_get(x_2, 5); +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_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +lean_dec(x_42); +x_44 = l_Lean_getBuiltinSearchPath___closed__4; +x_45 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_45, 0, x_4); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_45, 2, x_5); +lean_ctor_set(x_45, 3, x_7); +x_46 = l_Lean_Server_Watchdog_startFileWorker___closed__5; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_45); +lean_inc(x_36); +x_48 = l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__4(x_36, x_47, x_43); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; +x_49 = lean_ctor_get(x_48, 1); lean_inc(x_49); -x_50 = l_Lean_Server_Watchdog_startFileWorker___closed__4; -x_51 = l_Lean_Parser_Command_initialize___elambda__1___closed__1; -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_49); -x_53 = l_IO_FS_Stream_writeLspRequest___at_Lean_Server_Watchdog_startFileWorker___spec__3(x_48, x_52, x_46); -if (lean_obj_tag(x_53) == 0) +lean_dec(x_48); +x_50 = l_Lean_Server_Watchdog_updateFileWorkers(x_36, x_2, x_49); +lean_dec(x_2); +return x_50; +} +else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -lean_dec(x_53); -x_55 = l_Lean_getBuiltinSearchPath___closed__4; -x_56 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_56, 0, x_4); -lean_ctor_set(x_56, 1, x_55); -lean_ctor_set(x_56, 2, x_5); -lean_ctor_set(x_56, 3, x_7); -x_57 = l_Lean_Server_Watchdog_startFileWorker___closed__5; -x_58 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -lean_inc(x_47); -x_59 = l_Lean_Server_Watchdog_FileWorker_writeNotification___at_Lean_Server_Watchdog_startFileWorker___spec__5(x_47, x_58, x_54); -if (lean_obj_tag(x_59) == 0) +uint8_t x_51; +lean_dec(x_36); +lean_dec(x_2); +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) { -lean_object* x_60; lean_object* x_61; -x_60 = lean_ctor_get(x_59, 1); +return x_48; +} +else +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_52 = lean_ctor_get(x_48, 0); +x_53 = lean_ctor_get(x_48, 1); +lean_inc(x_53); +lean_inc(x_52); +lean_dec(x_48); +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_55; +lean_dec(x_36); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_55 = !lean_is_exclusive(x_42); +if (x_55 == 0) +{ +return x_42; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_42, 0); +x_57 = lean_ctor_get(x_42, 1); +lean_inc(x_57); +lean_inc(x_56); +lean_dec(x_42); +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(x_29); +lean_dec(x_27); +lean_dec(x_23); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_59 = !lean_is_exclusive(x_33); +if (x_59 == 0) +{ +return x_33; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_33, 0); +x_61 = lean_ctor_get(x_33, 1); +lean_inc(x_61); lean_inc(x_60); -lean_dec(x_59); -x_61 = l_Lean_Server_Watchdog_updateFileWorkers(x_47, x_2, x_60); -lean_dec(x_2); -return x_61; -} -else -{ -uint8_t x_62; -lean_dec(x_47); -lean_dec(x_2); -x_62 = !lean_is_exclusive(x_59); -if (x_62 == 0) -{ -return x_59; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_59, 0); -x_64 = lean_ctor_get(x_59, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_59); -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_dec(x_33); +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_66; -lean_dec(x_47); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_53); -if (x_66 == 0) -{ -return x_53; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_53, 0); -x_68 = lean_ctor_get(x_53, 1); -lean_inc(x_68); -lean_inc(x_67); -lean_dec(x_53); -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; -} -} -} -else -{ -uint8_t x_70; -lean_dec(x_40); -lean_dec(x_38); -lean_dec(x_34); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_70 = !lean_is_exclusive(x_44); -if (x_70 == 0) -{ -return x_44; -} -else -{ -lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_71 = lean_ctor_get(x_44, 0); -x_72 = lean_ctor_get(x_44, 1); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_44); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -return x_73; -} -} -} -else -{ -uint8_t x_74; +uint8_t x_63; lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_74 = !lean_is_exclusive(x_33); -if (x_74 == 0) +x_63 = !lean_is_exclusive(x_22); +if (x_63 == 0) { -return x_33; +return x_22; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_75 = lean_ctor_get(x_33, 0); -x_76 = lean_ctor_get(x_33, 1); -lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_33); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -return x_77; +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_22, 0); +x_65 = lean_ctor_get(x_22, 1); +lean_inc(x_65); +lean_inc(x_64); +lean_dec(x_22); +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; } } } else { -uint8_t x_78; +uint8_t x_67; lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_78 = !lean_is_exclusive(x_8); -if (x_78 == 0) +x_67 = !lean_is_exclusive(x_8); +if (x_67 == 0) { return x_8; } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_8, 0); -x_80 = lean_ctor_get(x_8, 1); -lean_inc(x_80); -lean_inc(x_79); +lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_68 = lean_ctor_get(x_8, 0); +x_69 = lean_ctor_get(x_8, 1); +lean_inc(x_69); +lean_inc(x_68); lean_dec(x_8); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; +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; } } } } -lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -size_t x_4; size_t x_5; lean_object* x_6; -x_4 = lean_unbox_usize(x_1); -lean_dec(x_1); -x_5 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_6 = l_Array_mapMUnsafe_map___at_Lean_Server_Watchdog_startFileWorker___spec__1(x_4, x_5, x_3); -return x_6; -} -} -lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__2(x_1, x_2, x_3); +x_4 = l_IO_mkRef___at_Lean_Server_Watchdog_startFileWorker___spec__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; }